diff options
author | Quentin Young <qlyoung@nvidia.com> | 2020-09-29 00:13:27 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2020-10-23 21:13:51 +0200 |
commit | c7bb4f006b22592d3c57bd7d84d521485c278567 (patch) | |
tree | d408a8338e0c47173277f05267f73e02d53ffaab /lib/libfrr_trace.h | |
parent | lib: add trace.h, frrtrace(), support for USDT (diff) | |
download | frr-c7bb4f006b22592d3c57bd7d84d521485c278567.tar.xz frr-c7bb4f006b22592d3c57bd7d84d521485c278567.zip |
lib, bgpd: convert lttng tracepoints to frrtrace()
- tracepoint() -> frrtrace()
- tracelog() -> frrtracelog()
- tracepoint_enabled() -> frrtrace_enabled()
Also removes copypasta'd #ifdefs for those LTTng macros, those are
handled in lib/trace.h
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/libfrr_trace.h')
-rw-r--r-- | lib/libfrr_trace.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libfrr_trace.h b/lib/libfrr_trace.h index 337360852..7215007ff 100644 --- a/lib/libfrr_trace.h +++ b/lib/libfrr_trace.h @@ -21,9 +21,7 @@ #if !defined(_LIBFRR_TRACE_H_) || defined(TRACEPOINT_HEADER_MULTI_READ) #define _LIBFRR_TRACE_H_ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif /* HAVE_CONFIG_H */ +#include "trace.h" #ifdef HAVE_LTTNG @@ -237,13 +235,6 @@ TRACEPOINT_EVENT( #include <lttng/tracepoint-event.h> #include <lttng/tracelog.h> -#else /* HAVE_LTTNG */ - -#define tracepoint(...) -#define tracef(...) -#define tracelog(...) -#define tracepoint_enabled(...) true - #endif /* HAVE_LTTNG */ -#endif /* _TRACE_H */ +#endif /* _LIBFRR_TRACE_H_ */ |