On the call, it was requested that I start a thread listing compile options that I use, so others can chime in, allowing everyone to learn from each other.

Here's my standard list:

CFLAGS=-O0 -g -gdwarf-2 -Werror

cmake options:

-DUSE_LTTNG=ON
        This allows using lttng to get tracepoints from Ganesha.  It
        allows high speed tracing, so that debug-like information can
        can be extracted even during stress tests.  It requires explicit
        tracepoints added to the code.  Currently, MDCACHE has many
        tracepoints, SAL, NFSv4, and FSAL_MEM have a few.  It requires
        external tools to use.

-DSANITIZE_ADDRESS=ON
        This turns on the built-in address sanitizer in GCC/Clang.  It
        enables much of the functionality of valgrind (use-after-free,
        buffer overrun, leak checking) with a much much lower overhead.
        It does not require any external tools; reports are printed to
        STDOUT at the end of the run.  It can be used in conjunction
        with gdb.

-DUSE_DBUS=ON
        Enables run-time configuration of Ganesha via DBUS.


Daniel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to