Home
last modified time | relevance | path

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

/samples/bpf/
Doffwaketime_kern.c65 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 …]
Dtest_overhead_kprobe_kern.c22 u32 pid; in prog() local
26 pid = _(tsk->pid); in prog()
Dtest_overhead_user.c97 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()
Dtracex6_user.c76 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()
Dtrace_output_kern.c17 u64 pid; in bpf_prog1() member
21 data.pid = bpf_get_current_pid_tgid(); in bpf_prog1()
Dtest_current_task_under_cgroup_kern.c32 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()
Dtrace_output_user.c38 __u64 pid; in print_bpf_output() member
44 e->pid, e->cookie, size); in print_bpf_output()
Dtest_lru_dist.c221 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()
Dtest_overhead_tp_kern.c13 __u32 pid; member
Dmap_perf_test_user.c341 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/
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/mic/mpssd/
Dmpssd.h76 pid_t pid; member
Dmpssd.c149 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/
Duser-trap.c127 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req()