xref: /linux/tools/testing/selftests/bpf/progs/fentry_recursive.c (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2023 Red Hat, Inc. */
3 #include <linux/bpf.h>
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
6 
7 char _license[] SEC("license") = "GPL";
8 
9 /* Dummy fentry bpf prog for testing fentry attachment chains */
10 SEC("fentry/XXX")
11 int BPF_PROG(recursive_attach, int a)
12 {
13 	return 0;
14 }
15