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