1 // SPDX-License-Identifier: GPL-2.0
5 #include <uapi/linux/bpf.h>
7 #define SEC(NAME) __attribute__((section(NAME), used))
9 #define probe(function, vars) \
10 SEC(#function "=" #function " " #vars) function
12 #define syscall_enter(name) \
13 SEC("syscalls:sys_enter_" #name) syscall_enter_ ## name
15 #define license(name) \
16 char _license[] SEC("license") = #name; \
17 int _version SEC("version") = LINUX_VERSION_CODE;
19 #endif /* _PERF_BPF_H */