The show_task function invoked by sysrq-t et al displays the pid and parent's pid of each task. It seems more useful to show the actual process hierarchy here than who is using ptrace on each process.
Unified · Split
| @@ -4918,7 +4918,7 @@ static void show_task(struct task_struct *p) · 4917 unmodified lines | |||
| 4918 | } | 4918 | } |
| 4919 | #endif | 4919 | #endif |
| 4920 | printk(KERN_CONT "%5lu %5d %6d\n", free, | 4920 | printk(KERN_CONT "%5lu %5d %6d\n", free, |
| 4921 | task_pid_nr(p), task_pid_nr(p->parent)); | 4921 | task_pid_nr(p), task_pid_nr(p->real_parent)); |
| 4922 | 4922 | ||
| 4923 | if (state != TASK_RUNNING) | 4923 | if (state != TASK_RUNNING) |
| 4924 | show_stack(p, NULL); | 4924 | show_stack(p, NULL); |