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

Function stack_print_short_ddb

freebsd/kern/subr_stack.c:147–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146#if defined(DDB) || defined(WITNESS)
147void
148stack_print_short_ddb(const struct stack *st)
149{
150 const char *name;
151 long offset;
152 int i;
153
154 KASSERT(st->depth <= STACK_MAX, ("bogus stack"));
155 for (i = 0; i < st->depth; i++) {
156 if (i > 0)
157 printf(" ");
158 if (stack_symbol_ddb(st->pcs[i], &name, &offset) == 0)
159 printf("%s+%#lx", name, offset);
160 else
161 printf("%p", (void *)st->pcs[i]);
162 }
163 printf("\n");
164}
165#endif
166
167/*

Callers

nothing calls this directly

Calls 2

stack_symbol_ddbFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected