/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
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()
|
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()
|
D | cgrp_ls_sleepable.c | 18 __s32 target_pid; variable 64 if (task->pid != target_pid) in cgrp1_no_rcu_lock() 83 if (task->pid != target_pid) in no_rcu_lock() 99 if (task->pid != target_pid) in yes_rcu_lock()
|
D | read_vsyscall.c | 9 int target_pid = 0; variable 25 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_probe_read() 43 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_copy_from_user()
|
D | task_local_storage.c | 19 pid_t target_pid = 0; variable 31 if (task->pid != target_pid) in BPF_PROG() 52 if (task->pid != target_pid) in BPF_PROG()
|
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()
|
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()
|
D | iters_task_vma.c | 9 pid_t target_pid = 0; variable 24 if (task->pid != target_pid) in iter_task_vma_for_each()
|
D | strncmp_test.c | 14 int target_pid = 0; variable 25 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_strncmp()
|
D | test_cgroup1_hierarchy.c | 11 int target_pid, target_hid; variable 29 if (task->pid != target_pid) in bpf_link_create_verify()
|
D | iters_css.c | 12 pid_t target_pid; variable 30 if (cur_task->pid != target_pid) in iter_css_for_each()
|
D | rcu_read_lock.c | 19 __u32 user_data, key_serial, target_pid; variable 36 if (task->pid != target_pid) in get_cgroup_id() 58 if (task->pid != target_pid) in task_succ()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
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() 228 skel->bss->target_pid = getpid(); in subtest_css_task_iters() 273 skel->bss->target_pid = getpid(); in subtest_css_iters()
|
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()
|
D | rcu_read_lock.c | 24 skel->bss->target_pid = syscall(SYS_gettid); in test_success() 61 skel->bss->target_pid = syscall(SYS_gettid); in test_rcuptr_acquire()
|
D | cgrp_local_storage.c | 66 skel->bss->target_pid = syscall(SYS_gettid); in test_tp_btf() 75 skel->bss->target_pid = 0; in test_tp_btf() 227 skel->bss->target_pid = syscall(SYS_gettid); in test_yes_rcu_lock()
|
D | read_vsyscall.c | 43 skel->bss->target_pid = getpid(); in test_read_vsyscall()
|
D | test_strncmp.c | 63 skel->bss->target_pid = getpid(); in test_strncmp_ret()
|
D | cgroup1_hierarchy.c | 79 skel->bss->target_pid = getpid(); in test_cgroup1_hierarchy()
|
D | task_local_storage.c | 26 skel->bss->target_pid = syscall(SYS_gettid); in test_sys_enter_exit()
|
D | cgroup_iter.c | 286 skel->bss->target_pid = getpid(); in test_walk_self_only_css_task()
|
/linux-6.12.1/kernel/ |
D | auditsc.c | 99 pid_t target_pid[AUDIT_AUX_PIDS]; member 1017 ctx->target_pid = 0; in audit_reset_context() 1779 if (audit_log_pid_context(context, axs->target_pid[i], in audit_log_exit() 1788 if (context->target_pid && in audit_log_exit() 1789 audit_log_pid_context(context, context->target_pid, in audit_log_exit() 2728 context->target_pid = task_tgid_nr(t); in __audit_ptrace() 2754 if (!ctx->target_pid) { in audit_signal_info_syscall() 2755 ctx->target_pid = task_tgid_nr(t); in audit_signal_info_syscall() 2776 axp->target_pid[axp->pid_count] = task_tgid_nr(t); in audit_signal_info_syscall()
|
D | audit.h | 142 pid_t target_pid; member
|
/linux-6.12.1/Documentation/bpf/ |
D | bpf_iterators.rst | 429 int target_pid = 0; 435 if (task->tgid != target_pid) /* Check task->pid instead to check thread IDs */ 453 skel->bss->target_pid = getpid(); /* process ID. For thread id, use gettid() */ 461 ``target_pid`` is a global variable in the BPF program. The user space program
|