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

Function stack_sbuf_print_ddb

freebsd/kern/subr_stack.c:210–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209#if defined(DDB) || defined(WITNESS)
210void
211stack_sbuf_print_ddb(struct sbuf *sb, const struct stack *st)
212{
213 const char *name;
214 long offset;
215 int i;
216
217 KASSERT(st->depth <= STACK_MAX, ("bogus stack"));
218 for (i = 0; i < st->depth; i++) {
219 (void)stack_symbol_ddb(st->pcs[i], &name, &offset);
220 sbuf_printf(sb, "#%d %p at %s+%#lx\n", i, (void *)st->pcs[i],
221 name, offset);
222 }
223}
224#endif
225
226#ifdef KTR

Callers 1

witness_debuggerFunction · 0.85

Calls 2

stack_symbol_ddbFunction · 0.85
sbuf_printfFunction · 0.85

Tested by

no test coverage detected