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