From: Mathieu Desnoyers Date: Tue, 20 Mar 2012 18:13:54 +0000 (-0400) Subject: Document LTTNG_UST_DEBUG_VALGRIND compilation flag X-Git-Tag: v2.0.0-rc4~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fdb4af102796c056de5c1d7361a57bf9779788d1;p=lttng-ust.git Document LTTNG_UST_DEBUG_VALGRIND compilation flag Signed-off-by: Mathieu Desnoyers --- diff --git a/README b/README index ad9acd77..78160a30 100644 --- a/README +++ b/README @@ -113,6 +113,10 @@ ENVIRONMENT VARIABLES: recommended for applications with time constraints on the process startup time. + - The compilation flag "-DLTTNG_UST_DEBUG_VALGRIND" should be enabled + at build time to allow liblttng-ust to be used with valgrind + (side-effect: disables per-cpu buffering). + TRACE VIEWER: diff --git a/libringbuffer/getcpu.h b/libringbuffer/getcpu.h index 104ba760..44d0d559 100644 --- a/libringbuffer/getcpu.h +++ b/libringbuffer/getcpu.h @@ -22,7 +22,7 @@ #include #include -#ifdef UST_VALGRIND +#ifdef LTTNG_UST_DEBUG_VALGRIND /* * Fallback on cpu 0 if liblttng-ust is build with Valgrind support.