Home
last modified time | relevance | path

Searched refs:my_pid (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dcore_retro.c9 int err, zero = 0, res, duration = 0, my_pid = getpid(); in test_core_retro() local
17 err = bpf_map_update_elem(bpf_map__fd(skel->maps.exp_tgid_map), &zero, &my_pid, 0); in test_core_retro()
33 CHECK(res != my_pid, "pid_check", "got %d != exp %d\n", res, my_pid); in test_core_retro()
H A Dd_path.c119 bss->my_pid = getpid(); in test_d_path_basic()
121 err = trigger_fstat_events(bss->my_pid); in test_d_path_basic()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dcore_retro.c9 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()
H A Dlegacy_printk.c9 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()
H A Dsk_storage_tracing.c23 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()
H A Dperf_buffer.c49 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()
H A Dd_path.c136 bss->my_pid = getpid(); in test_d_path_basic()
138 err = trigger_fstat_events(bss->my_pid); in test_d_path_basic()
H A Dprog_array_init.c16 skel->rodata->my_pid = getpid(); in test_prog_array_init()
H A Dskc_to_unix_sock.c20 skel->rodata->my_pid = getpid(); in test_skc_to_unix_sock()
H A Dcore_read_macros.c35 bss->my_pid = getpid(); in test_core_read_macros()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_perf_buffer.c25 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()
H A Dtest_legacy_printk.c30 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()
H A Dtest_usdt.c8 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()
H A Dtest_d_path.c10 pid_t my_pid = 0; variable
31 if (pid != my_pid) in BPF_PROG()
52 if (pid != my_pid) in BPF_PROG()
H A Dtest_usdt_multispec.c13 extern int my_pid;
21 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in BPF_USDT()
H A Dtest_prog_array_init.c8 const volatile pid_t my_pid = 0; variable
34 if (pid != my_pid) in entry()
H A Dtest_skc_to_unix_sock.c9 const volatile pid_t my_pid = 0; variable
19 if (pid != my_pid) in BPF_PROG()
H A Dtest_core_read_macros.c28 int my_pid = 0; variable
35 if (my_pid != pid) in handler()
H A Dtest_map_lookup_percpu_elem.c11 const volatile int my_pid; variable
55 if (my_pid != (bpf_get_current_pid_tgid() >> 32)) in sysenter_getuid()
H A Dtest_custom_sec_handlers.c8 const volatile int my_pid; variable
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_d_path.c10 pid_t my_pid = 0; variable
31 if (pid != my_pid) in BPF_PROG()
52 if (pid != my_pid) in BPF_PROG()
/kernel/linux/linux-5.10/drivers/char/agp/
H A Dfrontend.c220 if (curr->my_pid == pid) in agp_find_private()
652 controller = agp_find_controller_by_pid(priv->my_pid); in agp_release()
663 agp_remove_client(priv->my_pid); in agp_release()
690 priv->my_pid = current->pid; in agp_open()
757 controller = agp_find_controller_by_pid(priv->my_pid); in agpioc_acquire_wrap()
762 controller = agp_create_controller(priv->my_pid); in agpioc_acquire_wrap()
974 if (agp_fe.current_controller->pid != curr_priv->my_pid) { in agp_ioctl()
/kernel/linux/linux-6.6/drivers/char/agp/
H A Dfrontend.c222 if (curr->my_pid == pid) in agp_find_private()
654 controller = agp_find_controller_by_pid(priv->my_pid); in agp_release()
665 agp_remove_client(priv->my_pid); in agp_release()
692 priv->my_pid = current->pid; in agp_open()
759 controller = agp_find_controller_by_pid(priv->my_pid); in agpioc_acquire_wrap()
764 controller = agp_create_controller(priv->my_pid); in agpioc_acquire_wrap()
976 if (agp_fe.current_controller->pid != curr_priv->my_pid) { in agp_ioctl()
/kernel/linux/linux-5.10/include/linux/
H A Dagpgart.h115 pid_t my_pid; member
/kernel/linux/linux-6.6/include/linux/
H A Dagpgart.h115 pid_t my_pid; member

Completed in 7 milliseconds

12