xref: /linux/tools/testing/selftests/bpf/progs/test_trampoline_count.c (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdbool.h>
3 #include <stddef.h>
4 #include <linux/bpf.h>
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
7 
8 struct task_struct;
9 
10 SEC("fentry/__set_task_comm")
11 int BPF_PROG(prog1, struct task_struct *tsk, const char *buf, bool exec)
12 {
13 	return 0;
14 }
15 
16 SEC("fexit/__set_task_comm")
17 int BPF_PROG(prog2, struct task_struct *tsk, const char *buf, bool exec)
18 {
19 	return 0;
20 }
21 
22 char _license[] SEC("license") = "GPL";
23