xref: /linux/tools/testing/selftests/bpf/progs/fentry_recursive.c (revision eed4edda910fe34dfae8c6bfbcf57f4593a54295)
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