Lines Matching refs:p
22 static void kdb_show_stack(struct task_struct *p, void *addr) in kdb_show_stack() argument
26 if (!addr && kdb_task_has_cpu(p)) { in kdb_show_stack()
30 kdb_dump_stack_on_cpu(kdb_process_cpu(p)); in kdb_show_stack()
33 show_stack(p, addr, KERN_EMERG); in kdb_show_stack()
77 kdb_bt1(struct task_struct *p, const char *mask, bool btaprompt) in kdb_bt1() argument
81 if (kdb_getarea(ch, (unsigned long)p) || in kdb_bt1()
82 kdb_getarea(ch, (unsigned long)(p+1)-1)) in kdb_bt1()
84 if (!kdb_task_state(p, mask)) in kdb_bt1()
86 kdb_printf("Stack traceback for pid %d\n", p->pid); in kdb_bt1()
87 kdb_ps1(p); in kdb_bt1()
88 kdb_show_stack(p, NULL); in kdb_bt1()
139 struct task_struct *g, *p; in kdb_bt() local
147 p = kdb_curr_task(cpu); in kdb_bt()
148 if (kdb_bt1(p, mask, btaprompt)) in kdb_bt()
152 for_each_process_thread(g, p) { in kdb_bt()
155 if (task_curr(p)) in kdb_bt()
157 if (kdb_bt1(p, mask, btaprompt)) in kdb_bt()
161 struct task_struct *p; in kdb_bt() local
168 p = find_task_by_pid_ns(pid, &init_pid_ns); in kdb_bt()
169 if (p) in kdb_bt()
170 return kdb_bt1(p, "A", false); in kdb_bt()