VPP API: Memory trace 79/12879/6
authorOle Troan <ot@cisco.com>
Mon, 4 Jun 2018 20:27:49 +0000 (22:27 +0200)
committerDave Barach <openvpp@barachs.net>
Tue, 5 Jun 2018 14:30:01 +0000 (14:30 +0000)
commit73710c7da2f8deaea83dbbbfce8737c9c6cd2949
tree7d9cc75fe38de525a5b78634317e94b83880534a
parent0b061112f73fda45084671120411a6484d9c11d2
VPP API: Memory trace

if you plan to put a hash into shared memory, the key sum and key
equal functions MUST be set to constants such as KEY_FUNC_STRING,
KEY_FUNC_MEM, etc. -lvppinfra is PIC, which means that the process
which set up the hash won't have the same idea where the key sum and
key compare functions live in other processes.

Change-Id: Ib3b5963a0d2fb467b91e1f16274df66ac74009e9
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Ole Troan <ot@cisco.com>
12 files changed:
src/svm/svm.c
src/vlib/cli.c
src/vlibapi/api_common.h
src/vlibapi/api_shared.c
src/vlibmemory/memory_api.c
src/vlibmemory/memory_client.c
src/vpp-api/client/client.c
src/vpp-api/client/test.c
src/vppinfra/hash.c
src/vppinfra/hash.h
src/vppinfra/mheap.c
src/vppinfra/test_macros.c