Lines Matching full:pid
10 # USAGE: runqslower [-p PID] [min_us]
42 ./runqslower -p 123 # trace pid 123 only
48 parser.add_argument("-p", "--pid", type=int, metavar="PID", dest="pid",
49 help="trace this PID only")
70 u32 pid;
78 static int trace_enqueue(u32 tgid, u32 pid)
80 if (FILTER_PID || pid == 0)
83 start.update(&pid, &ts);
91 return trace_enqueue(p->tgid, p->pid);
97 return trace_enqueue(p->tgid, p->pid);
103 u32 pid, tgid;
108 pid = prev->pid;
109 if (!(FILTER_PID || pid == 0)) {
111 start.update(&pid, &ts);
116 pid = bpf_get_current_pid_tgid();
121 tsp = start.lookup(&pid);
131 data.pid = pid;
138 start.delete(&pid);
148 return trace_enqueue(p->tgid, p->pid);
155 u32 tgid, pid;
158 bpf_probe_read(&pid, sizeof(pid), &p->pid);
159 return trace_enqueue(tgid, pid);
167 u32 pid, tgid;
174 bpf_probe_read(&pid, sizeof(prev->pid), &prev->pid);
175 if (!(FILTER_PID || pid == 0)) {
177 start.update(&pid, &ts);
182 bpf_probe_read(&pid, sizeof(next->pid), &next->pid);
187 tsp = start.lookup(&pid);
197 data.pid = pid;
204 start.delete(&pid);
220 if args.pid:
221 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % args.pid)
234 ("pid", ct.c_uint),
242 print("%-8s %-16s %-6s %14s" % (strftime("%H:%M:%S"), event.task, event.pid, event.delta_us))
252 print("%-8s %-16s %-6s %14s" % ("TIME", "COMM", "PID", "LAT(us)"))