summaryrefslogtreecommitdiffstats
path: root/lib/memory.c
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/memory.c
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/memory.c')
-rw-r--r--lib/memory.c4
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) {