| /samples/bpf/ |
| A D | offwaketime.bpf.c | 66 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 D | trace_output.bpf.c | 16 u64 pid; in bpf_prog1() member 20 data.pid = bpf_get_current_pid_tgid(); in bpf_prog1()
|
| A D | tracex6_user.c | 77 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 D | trace_event_user.c | 21 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 D | test_lru_dist.c | 218 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 D | trace_output_user.c | 25 __u64 pid; in print_bpf_output() member 31 e->pid, e->cookie, size); in print_bpf_output()
|
| A D | map_perf_test_user.c | 348 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 D | trace_custom_sched.h | 50 __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 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/damon/ |
| A D | wsse.c | 36 static struct pid *target_pidp; 87 target->pid = target_pidp; in damon_sample_wsse_start()
|
| A D | prcl.c | 35 static struct pid *target_pidp; 87 target->pid = target_pidp; in damon_sample_prcl_start()
|
| A D | Kconfig | 11 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 D | mountinfo.c | 215 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 D | ftrace-direct.c | 14 trace_printk("waking up %s-%d\n", p->comm, p->pid); in my_direct_func()
|
| /samples/seccomp/ |
| A D | user-trap.c | 131 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req()
|