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

Function kdb_backtrace_thread

freebsd/kern/subr_kdb.c:452–469  ·  view source on GitHub ↗

* Similar to kdb_backtrace() except that it prints a backtrace of an * arbitrary thread rather than the calling thread. */

Source from the content-addressed store, hash-verified

450 * arbitrary thread rather than the calling thread.
451 */
452void
453kdb_backtrace_thread(struct thread *td)
454{
455
456 if (kdb_dbbe != NULL && kdb_dbbe->dbbe_trace_thread != NULL) {
457 printf("KDB: stack backtrace of thread %d:\n", td->td_tid);
458 kdb_dbbe->dbbe_trace_thread(td);
459 }
460#ifdef STACK
461 else {
462 struct stack st;
463
464 printf("KDB: stack backtrace of thread %d:\n", td->td_tid);
465 if (stack_save_td(&st, td) == 0)
466 stack_print_ddb(&st);
467 }
468#endif
469}
470
471/*
472 * Set/change the current backend.

Callers 1

propagate_priorityFunction · 0.85

Calls 3

stack_print_ddbFunction · 0.85
printfFunction · 0.70
stack_save_tdFunction · 0.50

Tested by

no test coverage detected