Home
last modified time | relevance | path

Searched refs:pid_tgid (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
A Dtest_core_reloc_module.c45 __u64 pid_tgid = bpf_get_current_pid_tgid(); in BPF_PROG() local
46 __s32 real_tgid = (__s32)(pid_tgid >> 32); in BPF_PROG()
47 __s32 real_pid = (__s32)pid_tgid; in BPF_PROG()
49 if (data.my_pid_tgid != pid_tgid) in BPF_PROG()
79 __u64 pid_tgid = bpf_get_current_pid_tgid(); in BPF_PROG() local
80 __s32 real_tgid = (__s32)(pid_tgid >> 32); in BPF_PROG()
81 __s32 real_pid = (__s32)pid_tgid; in BPF_PROG()
83 if (data.my_pid_tgid != pid_tgid) in BPF_PROG()
A Dtest_core_reloc_kernel.c55 uint64_t pid_tgid = bpf_get_current_pid_tgid(); in test_core_kernel() local
56 int32_t real_tgid = (int32_t)pid_tgid; in test_core_kernel()
59 if (data.my_pid_tgid != pid_tgid) in test_core_kernel()
67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel()
A Dpyperf.h224 uint64_t pid_tgid = bpf_get_current_pid_tgid(); local
225 pid_t pid = (pid_t)(pid_tgid >> 32);
237 event->tid = (pid_t)pid_tgid;

Completed in 6 milliseconds