1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2023 Red Hat, Inc. */
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
7 char _license[] SEC("license") = "GPL";
9 /* Dummy fentry bpf prog for testing fentry attachment chains. It's going to be
10 * a start of the chain.
12 SEC("fentry/bpf_testmod_fentry_test1")
13 int BPF_PROG(test1, int a)
18 /* Dummy bpf prog for testing attach_btf presence when attaching an fentry
21 SEC("raw_tp/sys_enter")
22 int BPF_PROG(fentry_target, struct pt_regs *regs, long id)