/samples/bpf/ |
D | offwaketime_kern.c | 65 u32 pid; in waker() local 67 pid = _(p->pid); in waker() 72 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker() 76 static inline int update_counts(void *ctx, u32 pid, u64 delta) in update_counts() argument 87 woke = bpf_map_lookup_elem(&wokeby, &pid); in update_counts() 91 bpf_map_delete_elem(&wokeby, &pid); in update_counts() 121 u32 pid = ctx->prev_pid; local 128 u32 pid = _(p->pid); 133 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY); 136 pid = bpf_get_current_pid_tgid(); [all …]
|
D | test_overhead_kprobe_kern.c | 22 u32 pid; in prog() local 26 pid = _(tsk->pid); in prog()
|
D | test_overhead_user.c | 97 pid_t pid[tasks]; in run_perf_test() local 101 pid[i] = fork(); in run_perf_test() 102 if (pid[i] == 0) { in run_perf_test() 105 } else if (pid[i] == -1) { in run_perf_test() 113 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_perf_test()
|
D | tracex6_user.c | 76 pid_t pid[nr_cpus]; in test_perf_event_array() local 82 pid[i] = fork(); in test_perf_event_array() 83 assert(pid[i] >= 0); in test_perf_event_array() 84 if (pid[i] == 0) { in test_perf_event_array() 91 assert(waitpid(pid[i], &status, 0) == pid[i]); in test_perf_event_array()
|
D | trace_output_kern.c | 17 u64 pid; in bpf_prog1() member 21 data.pid = bpf_get_current_pid_tgid(); in bpf_prog1()
|
D | test_current_task_under_cgroup_kern.c | 32 u64 pid = bpf_get_current_pid_tgid(); in bpf_prog1() local 38 bpf_map_update_elem(&perf_map, &idx, &pid, BPF_ANY); in bpf_prog1()
|
D | trace_output_user.c | 38 __u64 pid; in print_bpf_output() member 44 e->pid, e->cookie, size); in print_bpf_output()
|
D | test_lru_dist.c | 221 static int sched_next_online(int pid, int next_to_try) in sched_next_online() argument 231 if (!sched_setaffinity(pid, sizeof(cpuset), &cpuset)) in sched_next_online() 242 pid_t pid[tasks]; in run_parallel() local 246 pid[i] = fork(); in run_parallel() 247 if (pid[i] == 0) { in run_parallel() 251 } else if (pid[i] == -1) { in run_parallel() 259 next_sched_cpu = sched_next_online(pid[i], next_sched_cpu); in run_parallel() 264 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_parallel()
|
D | test_overhead_tp_kern.c | 13 __u32 pid; member
|
D | map_perf_test_user.c | 341 pid_t pid[tasks]; in run_perf_test() local 347 pid[i] = fork(); in run_perf_test() 348 if (pid[i] == 0) { in run_perf_test() 351 } else if (pid[i] == -1) { in run_perf_test() 359 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_perf_test()
|
/samples/pidfd/ |
D | pidfd-metadata.c | 52 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/mic/mpssd/ |
D | mpssd.h | 76 pid_t pid; member
|
D | mpssd.c | 149 pid_t pid; in tap_configure() local 154 pid = fork(); in tap_configure() 155 if (pid == 0) { in tap_configure() 170 if (pid < 0) { in tap_configure() 176 ret = waitpid(pid, NULL, 0); in tap_configure() 185 pid = fork(); in tap_configure() 186 if (pid == 0) { in tap_configure() 202 if (pid < 0) { in tap_configure() 208 ret = waitpid(pid, NULL, 0); in tap_configure() 1494 ret = kill(mic->pid, SIGTERM); in mic_config() [all …]
|
/samples/seccomp/ |
D | user-trap.c | 127 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req()
|