Changeset View
Changeset View
Standalone View
Standalone View
sys/ddb/db_command.c
Show First 20 Lines • Show All 832 Lines • ▼ Show 20 Lines | if (hastid) { | ||||
} | } | ||||
} else | } else | ||||
td = kdb_thread; | td = kdb_thread; | ||||
if (td->td_proc != NULL) | if (td->td_proc != NULL) | ||||
pid = td->td_proc->p_pid; | pid = td->td_proc->p_pid; | ||||
else | else | ||||
pid = -1; | pid = -1; | ||||
db_printf("Tracing pid %d tid %ld td %p\n", pid, (long)td->td_tid, td); | db_printf("Tracing pid %d tid %ld td %p\n", pid, (long)td->td_tid, td); | ||||
if (td->td_proc != NULL && (td->td_proc->p_flag & P_INMEM) == 0) | |||||
db_printf("--- swapped out\n"); | |||||
else | |||||
db_trace_thread(td, count); | db_trace_thread(td, count); | ||||
} | } | ||||
static void | static void | ||||
_db_stack_trace_all(bool active_only) | _db_stack_trace_all(bool active_only) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
struct thread *td; | struct thread *td; | ||||
jmp_buf jb; | jmp_buf jb; | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |