aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem_mheap.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-06-15 12:46:13 -0400
committerDave Barach <dave@barachs.net>2019-06-16 10:24:43 -0400
commitd67a428b3b2183cd78d7fca82e8afe2f26387810 (patch)
treef5209028aa2cfb222f35bb0c970685b8d2d777d8 /src/vppinfra/mem_mheap.c
parentc898a4f5bae84148ddec462a9510dee99e3da67d (diff)
vlib: add "memory-trace stats-segment"
Type: feature Change-Id: Ie020fd7e2618284a63efbeb9895068f27c0fb9ab Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/mem_mheap.c')
-rw-r--r--src/vppinfra/mem_mheap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/mem_mheap.c b/src/vppinfra/mem_mheap.c
index 4077bf279fd..3046bd22d0a 100644
--- a/src/vppinfra/mem_mheap.c
+++ b/src/vppinfra/mem_mheap.c
@@ -148,6 +148,12 @@ clib_mem_trace (int enable)
mheap_trace (clib_mem_get_heap (), enable);
}
+int
+clib_mem_is_traced (void)
+{
+ return mheap_is_traced (clib_mem_get_heap ());
+}
+
/*
* fd.io coding-style-patch-verification: ON
*