MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_stack_frames

Function get_stack_frames

mem/mem.c:747–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745#ifndef COMDB2MA_OMIT_DEBUG
746#include <walkback.h>
747static void get_stack_frames(void **fp, mspace m)
748{
749 unsigned int n = 0;
750 stack_pc_getlist(NULL, fp + 1, COMDB2MA_NFRAMES, &n);
751 *fp = (void *)(uintptr_t)n;
752}
753#else
754#define get_stack_frames(fp, m)
755#endif

Callers 4

comdb2_mallocFunction · 0.85
comdb2_callocFunction · 0.85
comdb2_realloc_intFunction · 0.85
comdb2_resizeFunction · 0.85

Calls 1

stack_pc_getlistFunction · 0.85

Tested by

no test coverage detected