From fdb4af102796c056de5c1d7361a57bf9779788d1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 20 Mar 2012 14:13:54 -0400 Subject: [PATCH] Document LTTNG_UST_DEBUG_VALGRIND compilation flag Signed-off-by: Mathieu Desnoyers --- README | 4 ++++ libringbuffer/getcpu.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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. -- 2.34.1