| /linux/tools/testing/selftests/bpf/progs/ |
| A D | token_lsm.c | 10 int my_pid; variable 17 if (my_pid == 0 || my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_PROG() 27 if (my_pid == 0 || my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_PROG()
|
| A D | test_uprobe.c | 8 pid_t my_pid = 0; variable 20 if (pid != my_pid) in BPF_UPROBE() 32 if (pid != my_pid) in BPF_UPROBE() 44 if (pid != my_pid) in BPF_URETPROBE() 56 if (pid != my_pid) in BPF_UPROBE()
|
| A D | test_perf_buffer.c | 25 int zero = 0, *my_pid, cur_pid; in handle_sys_enter() local 28 my_pid = bpf_map_lookup_elem(&my_pid_map, &zero); in handle_sys_enter() 29 if (!my_pid) in handle_sys_enter() 33 if (cur_pid != *my_pid) in handle_sys_enter()
|
| A D | test_legacy_printk.c | 30 int zero = 0, *my_pid, cur_pid, *my_res; in handle_legacy() local 32 my_pid = bpf_map_lookup_elem(&my_pid_map, &zero); in handle_legacy() 33 if (!my_pid) in handle_legacy() 37 if (cur_pid != *my_pid) in handle_legacy()
|
| A D | test_usdt.c | 8 int my_pid; variable 20 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()
|
| A D | test_d_path.c | 10 pid_t my_pid = 0; variable 31 if (pid != my_pid) in BPF_PROG() 52 if (pid != my_pid) in BPF_PROG()
|
| A D | test_usdt_multispec.c | 13 extern int my_pid; 21 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
|
| A D | test_prog_array_init.c | 8 const volatile pid_t my_pid = 0; variable 34 if (pid != my_pid) in entry()
|
| A D | test_skc_to_unix_sock.c | 9 const volatile pid_t my_pid = 0; variable 19 if (pid != my_pid) in BPF_PROG()
|
| A D | test_core_read_macros.c | 28 int my_pid = 0; variable 35 if (my_pid != pid) in handler()
|
| A D | percpu_alloc_array.c | 74 int my_pid; variable 85 if ((bpf_get_current_pid_tgid() >> 32) != my_pid) in BPF_PROG() 137 if ((bpf_get_current_pid_tgid() >> 32) != my_pid) in BPF_PROG()
|
| A D | test_map_lookup_percpu_elem.c | 11 const volatile int my_pid; variable 55 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in sysenter_getuid()
|
| A D | percpu_alloc_cgrp_local_storage.c | 73 int my_pid; variable 85 if ((bpf_get_current_pid_tgid() >> 32) != my_pid) in BPF_PROG()
|
| A D | test_custom_sec_handlers.c | 8 const volatile int my_pid; variable
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | core_retro.c | 9 int err, zero = 0, res, my_pid = getpid(); in test_core_retro() local 18 &my_pid, sizeof(my_pid), 0); in test_core_retro() 34 ASSERT_EQ(res, my_pid, "pid_check"); in test_core_retro()
|
| A D | legacy_printk.c | 9 int err, zero = 0, my_pid = getpid(), res, map_fd; in execute_one_variant() local 25 err = bpf_map_update_elem(map_fd, &zero, &my_pid, BPF_ANY); in execute_one_variant() 30 skel->bss->my_pid_var = my_pid; in execute_one_variant()
|
| A D | sk_storage_tracing.c | 23 static pid_t my_pid; variable 39 if (!ASSERT_EQ(sk_stg.pid, my_pid, "pid")) in check_sk_stg() 113 my_pid = getpid(); in serial_test_sk_storage_tracing()
|
| A D | percpu_alloc.c | 22 skel->bss->my_pid = getpid(); in test_array() 55 skel->bss->my_pid = getpid(); in test_array_sleepable() 90 skel->bss->my_pid = getpid(); in test_cgrp_local_storage()
|
| A D | perf_buffer.c | 49 int zero = 0, my_pid = getpid(); in serial_test_perf_buffer() local 74 err = bpf_map_update_elem(bpf_map__fd(skel->maps.my_pid_map), &zero, &my_pid, 0); in serial_test_perf_buffer()
|
| A D | prog_array_init.c | 16 skel->rodata->my_pid = getpid(); in test_prog_array_init()
|
| A D | d_path.c | 136 bss->my_pid = getpid(); in test_d_path_basic() 138 err = trigger_fstat_events(bss->my_pid); in test_d_path_basic()
|
| A D | core_read_macros.c | 35 bss->my_pid = getpid(); in test_core_read_macros()
|
| A D | skc_to_unix_sock.c | 20 skel->rodata->my_pid = getpid(); in test_skc_to_unix_sock()
|
| A D | map_lookup_percpu_elem.c | 26 skel->rodata->my_pid = getpid(); in test_map_lookup_percpu_elem()
|
| /linux/include/linux/ |
| A D | agpgart.h | 115 pid_t my_pid; member
|