aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem_mheap.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-06-17 08:28:16 -0400
committerDamjan Marion <dmarion@me.com>2019-06-17 20:26:50 +0000
commit4d0c663c0a63d3be6789185d6f60a4b4d1e7d207 (patch)
tree04065bfd6ca5016443b826c21a077835a31d036a /src/vppinfra/mem_mheap.c
parent33052bfd8c95054aceba4ec0d23c8cda9108644b (diff)
vlib: cherry-pick "memory-trace stats-segment"
and "leak-check { <debug-cli-cmd> }" Ticket: VPP-1703 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
*