| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | iters_task.c | 12 pid_t target_pid; variable 24 if (cur_task->pid != target_pid) in iter_task_for_each_sleep() 40 if (pos->pid == target_pid) in iter_task_for_each_sleep() 47 if (pos->tgid == target_pid) in iter_task_for_each_sleep()
|
| H A D | iters_css_task.c | 17 pid_t target_pid; variable 30 if (cur_task->pid != target_pid) in BPF_PROG() 42 if (task->pid == target_pid) in BPF_PROG() 78 if (task->pid == target_pid) in cgroup_id_printer()
|
| H A D | read_vsyscall.c | 9 int target_pid = 0; variable 27 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_probe_read() 45 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_copy_from_user()
|
| H A D | task_local_storage.c | 21 pid_t target_pid = 0; 34 if (task->pid != target_pid) in BPF_PROG() 55 if (task->pid != target_pid) in BPF_PROG() 76 if (task->pid != target_pid) 19 pid_t target_pid = 0; global() variable
|
| H A D | find_vma.c | 16 pid_t target_pid = 0; variable 43 if (task->pid != target_pid) in handle_getpid() 59 if (task->pid != target_pid) in handle_pe()
|
| H A D | cgrp_ls_tp_btf.c | 26 pid_t target_pid = 0; variable 73 if (task->pid != target_pid) in BPF_PROG() 111 if (task->pid != target_pid) in BPF_PROG()
|
| H A D | iters_task_vma.c | 9 pid_t target_pid = 0; variable 24 if (task->pid != target_pid) in iter_task_vma_for_each()
|
| H A D | strncmp_test.c | 14 int target_pid = 0; variable 25 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_strncmp()
|
| H A D | read_cgroupfs_xattr.c | 12 pid_t target_pid = 0; variable 28 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in BPF_PROG()
|
| H A D | test_cgroup1_hierarchy.c | 11 int target_pid, target_hid; variable 29 if (task->pid != target_pid) in bpf_link_create_verify()
|
| H A D | ksock_lsm.c | 15 int target_pid; variable 57 if (ret || pid != target_pid) in BPF_PROG()
|
| H A D | iters_css.c | 12 pid_t target_pid; variable 29 if (cur_task->pid != target_pid) in iter_css_for_each()
|
| H A D | icmp_send.c | 15 int target_pid = -1; variable 82 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in recursion()
|
| H A D | rcu_read_lock.c | 29 __u32 user_data, target_pid; variable 47 if (task->pid != target_pid) in get_cgroup_id() 69 if (task->pid != target_pid) in task_succ()
|
| /linux/samples/damon/ |
| H A D | wsse.c | 20 static int target_pid __read_mostly; 21 module_param(target_pid, int, 0600); 82 target_pidp = find_get_pid(target_pid); in damon_sample_wsse_start()
|
| H A D | prcl.c | 19 static int target_pid __read_mostly; 20 module_param(target_pid, int, 0600); 82 target_pidp = find_get_pid(target_pid); in damon_sample_prcl_start()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | iters.c | 119 skel->bss->target_pid = getpid(); in subtest_task_vma_iters() 125 getpgid(skel->bss->target_pid); in subtest_task_vma_iters() 183 skel->bss->target_pid = getpid(); in subtest_task_iters() 226 skel->bss->target_pid = getpid(); in subtest_css_task_iters() 276 skel->bss->target_pid = getpid(); in subtest_css_iters()
|
| H A D | find_vma.c | 88 getpgid(skel->bss->target_pid); in test_find_vma_kprobe() 118 skel->bss->target_pid = getpid(); in serial_test_find_vma()
|
| H A D | ksock.c | 100 skel->bss->target_pid = getpid(); in test_ksock_lsm() 102 skel->bss->target_pid = 0; in test_ksock_lsm()
|
| H A D | rcu_read_lock.c | 24 skel->bss->target_pid = sys_gettid(); in test_success() 64 skel->bss->target_pid = sys_gettid(); in test_rcuptr_acquire()
|
| H A D | cgrp_local_storage.c | 66 skel->bss->target_pid = sys_gettid(); in test_tp_btf() 75 skel->bss->target_pid = 0; in test_tp_btf() 211 skel->bss->target_pid = sys_gettid(); in test_cgroup_iter_sleepable() 216 skel->bss->target_pid = 0; in test_cgroup_iter_sleepable() 240 skel->bss->target_pid = sys_gettid(); in test_yes_rcu_lock()
|
| H A D | read_vsyscall.c | 44 skel->bss->target_pid = getpid(); in test_read_vsyscall()
|
| H A D | cgroup_xattr.c | 47 skel->bss->target_pid = sys_gettid(); in test_read_cgroup_xattr()
|
| H A D | task_local_storage.c | 39 /* Set target_pid after attach so that syscalls made during in test_sys_enter_exit() 42 skel->bss->target_pid = pid; in test_sys_enter_exit() 47 skel->bss->target_pid = 0; in test_sys_enter_exit() 321 skel->bss->target_pid = child_pid; in test_uptr_basic() 330 skel->bss->target_pid = my_tid; in test_uptr_basic()
|
| H A D | test_strncmp.c | 63 skel->bss->target_pid = getpid(); in test_strncmp_ret()
|