From 555ed59077eac99312e706f9b39e681c51200ba3 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 20 Aug 2020 19:40:52 -0400 Subject: [PATCH] Ifdef util function implementations if tracing is disabled Signed-off-by: Christophe Bedard --- tracetools/src/utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tracetools/src/utils.cpp b/tracetools/src/utils.cpp index 8622476..8b5389e 100644 --- a/tracetools/src/utils.cpp +++ b/tracetools/src/utils.cpp @@ -14,6 +14,8 @@ #include "tracetools/config.h" +#ifndef TRACETOOLS_DISABLED + #ifdef TRACETOOLS_LTTNG_ENABLED #include #include @@ -48,3 +50,5 @@ const char * _get_symbol_funcptr(void * funcptr) return "DISABLED__get_symbol_funcptr"; #endif } + +#endif // TRACETOOLS_DISABLED