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

Function stack_print

freebsd/kern/subr_stack.c:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void
96stack_print(const struct stack *st)
97{
98 char namebuf[64];
99 long offset;
100 int i;
101
102 KASSERT(st->depth <= STACK_MAX, ("bogus stack"));
103 for (i = 0; i < st->depth; i++) {
104 (void)stack_symbol(st->pcs[i], namebuf, sizeof(namebuf),
105 &offset, M_WAITOK);
106 printf("#%d %p at %s+%#lx\n", i, (void *)st->pcs[i],
107 namebuf, offset);
108 }
109}
110
111void
112stack_print_short(const struct stack *st)

Callers

nothing calls this directly

Calls 2

stack_symbolFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected