forked from luck/tmp_suning_uos_patched
521fe8bb58
Fix perf to include libbpf header files with the bpf/ prefix, to be consistent with external users of the library. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/157952560797.1683545.7685921032671386301.stgit@toke.dk
11 lines
213 B
C
11 lines
213 B
C
// SPDX-License-Identifier: LGPL-2.1
|
|
|
|
#include <bpf/bpf.h>
|
|
|
|
static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;
|
|
|
|
static pid_t getpid(void)
|
|
{
|
|
return bpf_get_current_pid_tgid();
|
|
}
|