Home
last modified time | relevance | path

Searched refs:bpf_get_current_pid_tgid (Results 1 – 25 of 73) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_map_ops.c43 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_update()
56 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_delete()
69 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_push()
82 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_pop()
95 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_peek()
111 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_pass()
129 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_fail()
H A Datomics.c26 if (pid != (bpf_get_current_pid_tgid() >> 32)) in add()
52 if (pid != (bpf_get_current_pid_tgid() >> 32)) in sub()
76 if (pid != (bpf_get_current_pid_tgid() >> 32)) in and()
97 if (pid != (bpf_get_current_pid_tgid() >> 32)) in or()
117 if (pid != (bpf_get_current_pid_tgid() >> 32)) in xor()
138 if (pid != (bpf_get_current_pid_tgid() >> 32)) in cmpxchg()
159 if (pid != (bpf_get_current_pid_tgid() >> 32)) in xchg()
H A Dtest_urandom_usdt.c16 if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
31 if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
46 if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
61 if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
H A Dbpf_loop.c70 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_prog()
86 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_null_ctx()
99 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_invalid_flags()
112 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_nested_calls()
141 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_non_constant_callback()
205 if (bpf_get_current_pid_tgid() >> 32 != pid) in stack_check()
H A Dtest_varlen.c45 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_unsigned()
75 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_signed()
101 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_unsigned()
129 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_signed()
H A Ddynptr_success.c43 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_read_write()
76 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_dynptr_data()
142 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_ringbuf()
220 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_adjust()
272 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_adjust_err()
329 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_zero_size_dynptr()
379 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_dynptr_is_null()
H A Dtest_usdt.c20 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in usdt0()
43 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in usdt3()
73 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
H A Dfexit_sleep.c17 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fentry()
27 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fexit()
H A Dlocal_storage.c64 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
141 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
187 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
210 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
H A Dbpf_syscall_macro.c36 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KPROBE()
71 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KSYSCALL()
95 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KSYSCALL()
H A Dtest_global_map_resize.c37 if (pid != (bpf_get_current_pid_tgid() >> 32)) in bss_array_sum()
52 if (pid != (bpf_get_current_pid_tgid() >> 32)) in data_array_sum()
H A Dtest_legacy_printk.c36 cur_pid = bpf_get_current_pid_tgid() >> 32; in handle_legacy()
61 cur_pid = bpf_get_current_pid_tgid() >> 32; in handle_modern()
H A Dtest_d_path.c25 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
46 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
H A Dtest_uprobe_autoattach.c94 int pid = bpf_get_current_pid_tgid() >> 32; in BPF_UPROBE()
107 int pid = bpf_get_current_pid_tgid() >> 32; in BPF_URETPROBE()
H A Dima.c33 pid = bpf_get_current_pid_tgid() >> 32; in ima_test_common()
59 pid = bpf_get_current_pid_tgid() >> 32; in ima_test_deny()
H A Dtest_bpf_cookie.c25 if (my_tid != (u32)bpf_get_current_pid_tgid()) in update()
115 if (my_tid != (u32)bpf_get_current_pid_tgid()) in BPF_PROG()
H A Dtest_core_reloc_module.c45 __u64 pid_tgid = bpf_get_current_pid_tgid(); in BPF_PROG()
79 __u64 pid_tgid = bpf_get_current_pid_tgid(); in BPF_PROG()
H A Dkprobe_multi.c41 if (bpf_get_current_pid_tgid() >> 32 != pid) in kprobe_multi_check()
128 if (bpf_get_current_pid_tgid() >> 32 != pid) in kprobe_multi_testmod_check()
H A Dtest_usdt_multispec.c21 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
H A Dtest_probe_read_user_str.c17 if (pid != (bpf_get_current_pid_tgid() >> 32)) in on_write()
H A Dlsm.c95 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
112 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
H A Dtest_stack_var_off.c21 if ((bpf_get_current_pid_tgid() >> 32) != test_pid) in probe()
/openbmc/linux/tools/perf/util/bpf_skel/
H A Dbperf_follower.bpf.c49 filter_key = bpf_get_current_pid_tgid() & 0xffffffff; in BPF_PROG()
52 filter_key = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
H A Dfunc_latency.bpf.c52 key = bpf_get_current_pid_tgid(); in BPF_PROG()
89 tid = bpf_get_current_pid_tgid(); in BPF_PROG()
/openbmc/linux/samples/bpf/
H A Dmap_perf_test.bpf.c106 u32 key = bpf_get_current_pid_tgid(); in BPF_KSYSCALL()
124 u32 key = bpf_get_current_pid_tgid(); in BPF_KSYSCALL()
141 u32 key = bpf_get_current_pid_tgid(); in BPF_KSYSCALL()
158 u32 key = bpf_get_current_pid_tgid(); in BPF_KSYSCALL()

123