xref: /linux/tools/testing/selftests/bpf/progs/struct_ops_arena_attach.c (revision 5a8cd539ac19f7a68e68e1d25ef9ca2ff55b8500)
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")
BPF_PROG(fentry_test_arena,unsigned long long * st_ops_ctx)8 int BPF_PROG(fentry_test_arena, unsigned long long *st_ops_ctx)
9 {
10 	return 0;
11 }
12 
13 SEC("fexit")
BPF_PROG(fexit_test_arena,unsigned long long * st_ops_ctx,int ret)14 int BPF_PROG(fexit_test_arena, unsigned long long *st_ops_ctx, int ret)
15 {
16 	return 0;
17 }
18 
19 SEC("freplace")
freplace_test_arena(unsigned long long * st_ops_ctx)20 int freplace_test_arena(unsigned long long *st_ops_ctx)
21 {
22 	return 0;
23 }
24 
25 char _license[] SEC("license") = "GPL";
26