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

Function kdb_backtrace

freebsd/kern/subr_kdb.c:428–446  ·  view source on GitHub ↗

* Print a backtrace of the calling thread. The backtrace is generated by * the selected debugger, provided it supports backtraces. If no debugger * is selected or the current debugger does not support backtraces, this * function silently returns. */

Source from the content-addressed store, hash-verified

426 * function silently returns.
427 */
428void
429kdb_backtrace(void)
430{
431
432 if (kdb_dbbe != NULL && kdb_dbbe->dbbe_trace != NULL) {
433 printf("KDB: stack backtrace:\n");
434 kdb_dbbe->dbbe_trace();
435 }
436#ifdef STACK
437 else {
438 struct stack st;
439
440 printf("KDB: stack backtrace:\n");
441 stack_zero(&st);
442 stack_save(&st);
443 stack_print_ddb(&st);
444 }
445#endif
446}
447
448/*
449 * Similar to kdb_backtrace() except that it prints a backtrace of an

Callers 15

zfs_lookup_internalFunction · 0.85
sdt_probe_stubFunction · 0.85
kdb_reenterFunction · 0.85
watchdog_fireFunction · 0.85
vfs_badlockFunction · 0.85
kassert_panicFunction · 0.85
vpanicFunction · 0.85
adoptFunction · 0.85
_isitmyxFunction · 0.85
kdb_switchFunction · 0.85
malloc_dbgFunction · 0.85
if_freemulti_internalFunction · 0.85

Calls 4

stack_zeroFunction · 0.85
stack_print_ddbFunction · 0.85
printfFunction · 0.70
stack_saveFunction · 0.50

Tested by

no test coverage detected