Lines Matching full:pid
42 def get_task_by_pid(pid): argument
44 if int(task['pid']) == pid:
50 """Find Linux task by PID and return the task_struct variable.
52 $lx_task_by_pid(PID): Given PID, iterate over all tasks of the target and
53 return that task_struct variable which PID matches."""
58 def invoke(self, pid): argument
59 task = get_task_by_pid(pid)
63 raise gdb.GdbError("No task of PID " + str(pid))
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
80 task["pid"].format_string(),
124 """Calculate Linux thread_info from task variable found by pid
126 $lx_thread_info_by_pid(PID): Given PID, return the corresponding thread_info
132 def invoke(self, pid): argument
133 task = get_task_by_pid(pid)
137 raise gdb.GdbError("No task of PID " + str(pid))