aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-11-25 16:28:50 +0100
committerDamjan Marion <dmarion@me.com>2019-11-26 09:46:12 +0000
commit30cca512ce3818a9b2c56140f7859bd544bc825d (patch)
tree667108d05d637bc7e75a02ce0adce46e787e64db /src/vppinfra/mem.h
parent42bde459b66f100adc77787ba1afd14c004c846d (diff)
build: remove valgrind leftovers
Valgrind never really worked well with VPP. Remove the partial support. Type: refactor Change-Id: Ic09773fd85f904fdd2240bc161e23a4c2b196cf6 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r--src/vppinfra/mem.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index e565757ed3e..14b2761c881 100644
--- a/src/vppinfra/mem.h
+++ b/src/vppinfra/mem.h
@@ -53,7 +53,6 @@
#include <vppinfra/os.h>
#include <vppinfra/string.h> /* memcpy, clib_memset */
-#include <vppinfra/valgrind.h>
#define CLIB_MAX_MHEAPS 256
@@ -124,9 +123,6 @@ clib_mem_alloc_aligned_at_offset (uword size, uword align, uword align_offset,
if (offset != ~0)
{
p = heap + offset;
-#if CLIB_DEBUG > 0
- VALGRIND_MALLOCLIKE_BLOCK (p, mheap_data_bytes (heap, offset), 0, 0);
-#endif
return p;
}
else
@@ -235,10 +231,6 @@ clib_mem_free (void *p)
#else
mspace_put (heap, p);
#endif
-
-#if CLIB_DEBUG > 0
- VALGRIND_FREELIKE_BLOCK (p, 0);
-#endif
}
always_inline void *