diff options
author | Dave Barach <dave@barachs.net> | 2019-06-17 08:28:16 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2019-06-17 09:21:07 -0400 |
commit | 900dfd33819332a7e0e2b31ff9b30f6cf574b9a8 (patch) | |
tree | 0e45abbb7c71615028c38a7f009502c2a1972027 /src/vppinfra/mem_mheap.c | |
parent | c299470d5ef437ceaed3d010a2d39f7f52e6776c (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.c | 6 |
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 * |