Lines Matching full:task
4 # task & thread tools
43 for task in task_lists():
44 if int(task['pid']) == pid:
45 return task
50 """Find Linux task by PID and return the task_struct variable.
59 task = get_task_by_pid(pid)
60 if task:
61 return task.dereference()
63 raise gdb.GdbError("No task of PID " + str(pid))
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
77 for task in task_lists():
79 task.format_string().split()[0],
80 task["pid"].format_string(),
81 task["comm"].string()))
92 def get_thread_info(task): argument
98 thread_info_addr = task.address + ia64_task_size
101 if task.type.fields()[0].type == thread_info_type.get_type():
102 return task['thread_info']
103 thread_info = task['stack'].cast(thread_info_ptr_type)
108 """Calculate Linux thread_info from task variable.
110 $lx_thread_info(TASK): Given TASK, return the corresponding thread_info
116 def invoke(self, task): argument
117 return get_thread_info(task)
124 """Calculate Linux thread_info from task variable found by pid
133 task = get_task_by_pid(pid)
134 if task:
135 return get_thread_info(task.dereference())
137 raise gdb.GdbError("No task of PID " + str(pid))