Lines Matching refs:task
43 for task in task_lists():
44 if int(task['pid']) == pid:
45 return task
59 task = get_task_by_pid(pid)
60 if task:
61 return task.dereference()
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)
116 def invoke(self, task): argument
117 return get_thread_info(task)
133 task = get_task_by_pid(pid)
134 if task:
135 return get_thread_info(task.dereference())