diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2019-02-06 16:25:10 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2019-02-06 18:14:23 +0100 |
commit | b1f3797d2969efd59fb58df22a0dda77858fc815 (patch) | |
tree | 3c74d656612ff8d0caedf0a289ba5134bdc34699 /lib | |
parent | 1526670afe3244eb8a025f8b83c828f708b73692 (diff) |
bget: fix nex_ pool building with disabled stats
gen_malloc_reset_stats() and gen_malloc_get_stats()
are only available when BufStats is defined.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libutils/isoc/bget_malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libutils/isoc/bget_malloc.c b/lib/libutils/isoc/bget_malloc.c index 17105dc8..13bdc487 100644 --- a/lib/libutils/isoc/bget_malloc.c +++ b/lib/libutils/isoc/bget_malloc.c @@ -902,6 +902,8 @@ bool nex_malloc_buffer_overlaps_heap(void *buf, size_t len) return gen_malloc_buffer_overlaps_heap(&nex_malloc_ctx, buf, len); } +#ifdef BufStats + void nex_malloc_reset_stats(void) { gen_malloc_reset_stats(&nex_malloc_ctx); @@ -913,3 +915,5 @@ void nex_malloc_get_stats(struct malloc_stats *stats) } #endif + +#endif |