Lines Matching full:pid
38 def get_task_by_pid(pid): argument
40 if int(task['pid']) == pid:
46 """Find Linux task by PID and return the task_struct variable.
48 $lx_task_by_pid(PID): Given PID, iterate over all tasks of the target and
49 return that task_struct variable which PID matches."""
54 def invoke(self, pid): argument
55 task = get_task_by_pid(pid)
59 raise gdb.GdbError("No task of PID " + str(pid))
72 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
76 task["pid"].format_string(),
111 """Calculate Linux thread_info from task variable found by pid
113 $lx_thread_info_by_pid(PID): Given PID, return the corresponding thread_info
119 def invoke(self, pid): argument
120 task = get_task_by_pid(pid)
124 raise gdb.GdbError("No task of PID " + str(pid))