2
#uml-task-info current_task
3
#it will dump info about it
5
set $tstate = "Unknown"
21
printf "PID(ext): %d(%d)\tState: %s UID(E): %d(%d) \tCmd: %10s @ 0x%x\n", $arg0->pid, $arg0->thread.extern_pid, $tstate, \
22
$arg0->uid, $arg0->euid, $arg0->comm, $arg0
25
#dump out the info for the files the task has open
27
set $files = $arg0->files
28
set $max = $files->max_fds
34
if $files->fd_array[$i] != 0
35
printf " File fd = %d Name: %s\n", $i, $files->fd_array[$i]->f_dentry.d_iname
41
#walk though the task list and print info about them
43
uml-task-info current_task
44
set $p = current_task.next_task
45
while $p != current_task
50
set $p = $p->next_task
55
#Vars depend on how much info we dump
56
#$uml_task = (* ) always dump some info
57
#$uml_task = (> 0) dump open files