diff options
Diffstat (limited to 'tools/perf/examples/bpf/empty.c')
-rw-r--r-- | tools/perf/examples/bpf/empty.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/perf/examples/bpf/empty.c b/tools/perf/examples/bpf/empty.c new file mode 100644 index 000000000..3e296c0c5 --- /dev/null +++ b/tools/perf/examples/bpf/empty.c @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +#include <linux/bpf.h> +#include <bpf/bpf_helpers.h> + +struct syscall_enter_args; + +SEC("raw_syscalls:sys_enter") +int sys_enter(struct syscall_enter_args *args) +{ + return 0; +} +char _license[] SEC("license") = "GPL"; |