summaryrefslogtreecommitdiffstats
path: root/lib/libfrr_trace.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-09-29 00:13:27 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-23 21:13:51 +0200
commitc7bb4f006b22592d3c57bd7d84d521485c278567 (patch)
treed408a8338e0c47173277f05267f73e02d53ffaab /lib/libfrr_trace.h
parentlib: add trace.h, frrtrace(), support for USDT (diff)
downloadfrr-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.h13
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_ */