Lines Matching defs:pid
38 int pid;
55 if (child->pid > 0)
56 waitpid(child->pid, &child_status, 0);
80 child.pid = child.tid = fork();
81 if (child.pid < 0) {
88 if (child.pid == 0) {
148 child.pid = getpid();
177 * Disable pid check in bpf program if we are pid filter test,
178 * because the probe should be executed only by child->pid
181 skel->bss->pid = child ? 0 : getpid();
182 skel->bss->expect_pid = child ? child->pid : 0;
216 ASSERT_EQ(skel->bss->child_pid, child->pid, "uprobe_multi_child_pid");
244 pid_t pid = child ? child->pid : -1;
252 skel->links.uprobe = bpf_program__attach_uprobe_multi(skel->progs.uprobe, pid,
258 skel->links.uretprobe = bpf_program__attach_uprobe_multi(skel->progs.uretprobe, pid,
264 skel->links.uprobe_sleep = bpf_program__attach_uprobe_multi(skel->progs.uprobe_sleep, pid,
271 pid, binary, pattern, opts);
282 skel->links.usdt_pid = bpf_program__attach_usdt(skel->progs.usdt_pid, pid, binary,
296 ASSERT_EQ(skel->bss->child_pid_usdt, child->pid, "usdt_multi_child_pid");
308 /* no pid filter */
311 /* pid filter */
318 /* pid filter (thread) */
500 /* wrong pid */
505 .uprobe_multi.pid = -2,
541 opts.uprobe_multi.pid = child ? child->pid : 0;
572 opts.uprobe_multi.pid = 0;
600 /* no pid filter */
603 /* pid filter */
610 /* pid filter (thread) */