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 /bgpd/bgp_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 'bgpd/bgp_trace.h')
-rw-r--r-- | bgpd/bgp_trace.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/bgpd/bgp_trace.h b/bgpd/bgp_trace.h index 4b79155ef..bd26c8de8 100644 --- a/bgpd/bgp_trace.h +++ b/bgpd/bgp_trace.h @@ -21,9 +21,7 @@ #if !defined(_BGP_TRACE_H) || defined(TRACEPOINT_HEADER_MULTI_READ) #define _BGP_TRACE_H -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include "lib/trace.h" #ifdef HAVE_LTTNG @@ -122,13 +120,6 @@ TRACEPOINT_LOGLEVEL(frr_bgp, output_filter, TRACE_INFO) #include <lttng/tracepoint-event.h> -#else /* HAVE_LTTNG */ - -#define tracepoint(...) -#define tracef(...) -#define tracelog(...) -#define tracepoint_enabled(...) true - #endif /* HAVE_LTTNG */ #endif /* _BGP_TRACE_H */ |