Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtask_local_storage.c19 pid_t target_pid = 0; variable
31 if (task->pid != target_pid) in BPF_PROG()
52 if (task->pid != target_pid) in BPF_PROG()
H A Dfind_vma.c16 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 Dcgrp_ls_sleepable.c18 __u32 target_pid; variable
48 if (task->pid != target_pid) in no_rcu_lock()
68 if (task->pid != target_pid) in yes_rcu_lock()
H A Dcgrp_ls_tp_btf.c26 pid_t target_pid = 0; variable
39 if (task->pid != target_pid) in BPF_PROG()
76 if (task->pid != target_pid) in BPF_PROG()
H A Dstrncmp_test.c14 int target_pid = 0; variable
25 if ((bpf_get_current_pid_tgid() >> 32) != target_pid) in do_strncmp()
H A Drcu_read_lock.c19 __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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfind_vma.c88 getpgid(skel->bss->target_pid); in test_find_vma_kprobe()
118 skel->bss->target_pid = getpid(); in serial_test_find_vma()
H A Drcu_read_lock.c24 skel->bss->target_pid = syscall(SYS_gettid); in test_success()
57 skel->bss->target_pid = syscall(SYS_gettid); in test_rcuptr_acquire()
H A Dcgrp_local_storage.c49 skel->bss->target_pid = syscall(SYS_gettid); in test_tp_btf()
58 skel->bss->target_pid = 0; in test_tp_btf()
205 skel->bss->target_pid = syscall(SYS_gettid); in test_yes_rcu_lock()
H A Dtest_strncmp.c63 skel->bss->target_pid = getpid(); in test_strncmp_ret()
H A Dtask_local_storage.c26 skel->bss->target_pid = syscall(SYS_gettid); in test_sys_enter_exit()
/openbmc/linux/kernel/
H A Dauditsc.c99 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()
H A Daudit.h142 pid_t target_pid; member
/openbmc/linux/Documentation/bpf/
H A Dbpf_iterators.rst429 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