aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2024-10-08 16:43:12 +0200
committerBeno�t Ganne <bganne@cisco.com>2024-11-13 13:02:30 +0000
commit661fb34a90a131658abd726f4faebdc566230cd8 (patch)
tree3b681985edfde1734fb891c49101df77eba9de9f /src/vppinfra/mem.h
parent34083c41b2aea74a82775ce4b74f5bfa8c434106 (diff)
vlib: add clib_stack_frame_get_raw()
clib_stack_frame_get() is getting the backtrace for all threads and does symbol resolution which is too slow for certain features (eg. memory traces). clib_stack_frame_get_raw() only gets the local backtrace and defer symbol resolution only when displaying results. Type: improvement Change-Id: Ia374d86e9175b6648a39ed5aaa676ceb7235e877 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r--src/vppinfra/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index ab9c5da30ec..6211bb51f0a 100644
--- a/src/vppinfra/mem.h
+++ b/src/vppinfra/mem.h
@@ -302,7 +302,7 @@ void clib_mem_exit (void);
typedef struct
{
/* Address of callers: outer first, inner last. */
- uword callers[12];
+ void *callers[12];
/* Count of allocations with this traceback. */
u32 n_allocations;