MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stack_print_ddb

Function stack_print_ddb

freebsd/kern/subr_stack.c:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void
132stack_print_ddb(const struct stack *st)
133{
134 const char *name;
135 long offset;
136 int i;
137
138 KASSERT(st->depth <= STACK_MAX, ("bogus stack"));
139 for (i = 0; i < st->depth; i++) {
140 stack_symbol_ddb(st->pcs[i], &name, &offset);
141 printf("#%d %p at %s+%#lx\n", i, (void *)st->pcs[i],
142 name, offset);
143 }
144}
145
146#if defined(DDB) || defined(WITNESS)
147void

Callers 5

kmem_showFunction · 0.85
epoch_trace_reportFunction · 0.85
kdb_backtraceFunction · 0.85
kdb_backtrace_threadFunction · 0.85
redzone_checkFunction · 0.85

Calls 2

stack_symbol_ddbFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected