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/memory.c | |
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/memory.c')
-rw-r--r-- | lib/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memory.c b/lib/memory.c index 6bc46b2f3..f715044ea 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -78,7 +78,7 @@ static inline void mt_count_alloc(struct memtype *mt, size_t size, void *ptr) static inline void mt_count_free(struct memtype *mt, void *ptr) { - tracepoint(frr_libfrr, memfree, mt, ptr); + frrtrace(2, frr_libfrr, memfree, mt, ptr); assert(mt->n_alloc); atomic_fetch_sub_explicit(&mt->n_alloc, 1, memory_order_relaxed); @@ -92,7 +92,7 @@ static inline void mt_count_free(struct memtype *mt, void *ptr) static inline void *mt_checkalloc(struct memtype *mt, void *ptr, size_t size) { - tracepoint(frr_libfrr, memalloc, mt, ptr, size); + frrtrace(3, frr_libfrr, memalloc, mt, ptr, size); if (__builtin_expect(ptr == NULL, 0)) { if (size) { |