Lines Matching full:pid
7 # USAGE: runqlat [-h] [-T] [-m] [-P] [-L] [-p PID] [interval] [count]
37 ./runqlat -P # show each PID separately
38 ./runqlat -p 185 # trace PID 185 only
50 # PID options are --pid and --pids, so namespaces should be --pidns (not done
53 help="print a histogram per PID namespace")
56 parser.add_argument("-p", "--pid",
57 help="trace this PID only")
91 static int trace_enqueue(u32 tgid, u32 pid)
93 if (FILTER || pid == 0)
96 start.update(&pid, &ts);
104 return trace_enqueue(p->tgid, p->pid);
110 return trace_enqueue(p->tgid, p->pid);
116 u32 pid, tgid;
121 pid = prev->pid;
122 if (!(FILTER || pid == 0)) {
124 start.update(&pid, &ts);
129 pid = bpf_get_current_pid_tgid();
130 if (FILTER || pid == 0)
135 tsp = start.lookup(&pid);
145 start.delete(&pid);
155 return trace_enqueue(p->tgid, p->pid);
162 return trace_enqueue(p->tgid, p->pid);
170 u32 pid, tgid;
175 pid = prev->pid;
176 if (!(FILTER || pid == 0)) {
178 start.update(&pid, &ts);
183 pid = next->pid;
184 if (FILTER || pid == 0)
189 tsp = start.lookup(&pid);
199 start.delete(&pid);
211 if args.pid:
212 # pid from userspace point of view is thread group from kernel pov
213 bpf_text = bpf_text.replace('FILTER', 'tgid != %s' % args.pid)
223 section = "pid"
224 pid = "tgid" variable
226 pid = "pid" variable
231 'pid_key_t key = {.id = ' + pid + ', .slot = bpf_log2l(delta)}; ' +