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

Function stack_print_short

freebsd/kern/subr_stack.c:111–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void
112stack_print_short(const struct stack *st)
113{
114 char namebuf[64];
115 long offset;
116 int i;
117
118 KASSERT(st->depth <= STACK_MAX, ("bogus stack"));
119 for (i = 0; i < st->depth; i++) {
120 if (i > 0)
121 printf(" ");
122 if (stack_symbol(st->pcs[i], namebuf, sizeof(namebuf),
123 &offset, M_WAITOK) == 0)
124 printf("%s+%#lx", namebuf, offset);
125 else
126 printf("%p", (void *)st->pcs[i]);
127 }
128 printf("\n");
129}
130
131void
132stack_print_ddb(const struct stack *st)

Callers

nothing calls this directly

Calls 2

stack_symbolFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected