Print the tid of curthread in "show pcpu" in ddb.

It was remarkably hard to trace all current threads.  "show pcpu" only
showed the pid, and there was nothing (?) better than searching ps output
to find the tids on CPUs.  This change simplifies the search, but you
still have to trace the tid for each CPU manually.
This commit is contained in:
Bruce Evans 2016-08-14 15:52:00 +00:00
parent 2b7a7ace9e
commit 99061149a3

View File

@ -354,8 +354,8 @@ show_pcpu(struct pcpu *pc)
db_printf("curthread = ");
td = pc->pc_curthread;
if (td != NULL)
db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid,
td->td_name);
db_printf("%p: pid %d tid %d \"%s\"\n", td, td->td_proc->p_pid,
td->td_tid, td->td_name);
else
db_printf("none\n");
db_printf("curpcb = %p\n", pc->pc_curpcb);