xref: /linux/tools/testing/selftests/bpf/progs/struct_ops_arena_attach.c (revision 9d19ca5d0e8b4a3f4b2eaa14e86a25f1c93ff35b)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
3 #include <linux/bpf.h>
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
6 
7 SEC("fentry")
8 int BPF_PROG(fentry_test_arena, unsigned long long *st_ops_ctx)
9 {
10 	return 0;
11 }
12 
13 SEC("fexit")
14 int BPF_PROG(fexit_test_arena, unsigned long long *st_ops_ctx, int ret)
15 {
16 	return 0;
17 }
18 
19 SEC("freplace")
20 int freplace_test_arena(unsigned long long *st_ops_ctx)
21 {
22 	return 0;
23 }
24 
25 char _license[] SEC("license") = "GPL";
26