Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 15 of 15) sorted by relevance

/samples/bpf/
A Doffwaketime.bpf.c66 u32 pid = BPF_CORE_READ(p, pid); in waker() local
72 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker()
87 woke = bpf_map_lookup_elem(&wokeby, &pid); in update_counts()
91 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
111 u32 pid = ctx->prev_pid; local
118 u32 pid = BPF_CORE_READ(p, pid);
123 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY);
126 pid = bpf_get_current_pid_tgid();
127 tsp = bpf_map_lookup_elem(&start, &pid);
133 bpf_map_delete_elem(&start, &pid);
[all …]
A Dtrace_output.bpf.c16 u64 pid; in bpf_prog1() member
20 data.pid = bpf_get_current_pid_tgid(); in bpf_prog1()
A Dtracex6_user.c77 pid_t pid[nr_cpus]; in test_perf_event_array() local
83 pid[i] = fork(); in test_perf_event_array()
84 assert(pid[i] >= 0); in test_perf_event_array()
85 if (pid[i] == 0) { in test_perf_event_array()
92 assert(waitpid(pid[i], &status, 0) == pid[i]); in test_perf_event_array()
A Dtrace_event_user.c21 static int pid; variable
96 kill(pid, SIGKILL); in err_exit()
337 pid = fork(); in main()
338 if (pid == 0) { in main()
341 } else if (pid == -1) { in main()
A Dtest_lru_dist.c218 static int sched_next_online(int pid, int next_to_try) in sched_next_online() argument
228 if (!sched_setaffinity(pid, sizeof(cpuset), &cpuset)) in sched_next_online()
239 pid_t pid[tasks]; in run_parallel() local
243 pid[i] = fork(); in run_parallel()
244 if (pid[i] == 0) { in run_parallel()
248 } else if (pid[i] == -1) { in run_parallel()
256 next_sched_cpu = sched_next_online(pid[i], next_sched_cpu); in run_parallel()
261 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_parallel()
A Dtrace_output_user.c25 __u64 pid; in print_bpf_output() member
31 e->pid, e->cookie, size); in print_bpf_output()
A Dmap_perf_test_user.c348 pid_t pid[tasks]; in run_perf_test() local
354 pid[i] = fork(); in run_perf_test()
355 if (pid[i] == 0) { in run_perf_test()
358 } else if (pid[i] == -1) { in run_perf_test()
366 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_perf_test()
/samples/trace_events/
A Dtrace_custom_sched.h50 __entry->next_pid = next->pid;
66 __field( pid_t, pid )
71 __entry->pid = p->pid;
75 TP_printk("pid=%d prio=%d", __entry->pid, __entry->prio)
/samples/pidfd/
A Dpidfd-metadata.c52 static int pidfd_metadata_fd(pid_t pid, int pidfd) in pidfd_metadata_fd() argument
57 snprintf(path, sizeof(path), "/proc/%d", pid); in pidfd_metadata_fd()
88 pid_t pid; in main() local
92 pid = pidfd_clone(CLONE_PIDFD, &pidfd); in main()
93 if (pid < 0) in main()
100 procfd = pidfd_metadata_fd(pid, pidfd); in main()
/samples/damon/
A Dwsse.c36 static struct pid *target_pidp;
87 target->pid = target_pidp; in damon_sample_wsse_start()
A Dprcl.c35 static struct pid *target_pidp;
87 target->pid = target_pidp; in damon_sample_prcl_start()
A DKconfig11 The module receives a pid, monitor access to the virtual address
24 The module receives a pid, monitor access to the virtual address
/samples/vfs/
A Dmountinfo.c215 pid_t pid = getpid(); in main() local
227 pid = atoi(optarg); in main()
236 pidfd = syscall(__NR_pidfd_open, pid, 0); in main()
/samples/ftrace/
A Dftrace-direct.c14 trace_printk("waking up %s-%d\n", p->comm, p->pid); in my_direct_func()
/samples/seccomp/
A Duser-trap.c131 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req()

Completed in 17 milliseconds