summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/struct_ops_arena_attach.c
blob: 081a770307e5345d0c16461b62d4b7a845e267af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>

SEC("fentry")
int BPF_PROG(fentry_test_arena, unsigned long long *st_ops_ctx)
{
	return 0;
}

SEC("fexit")
int BPF_PROG(fexit_test_arena, unsigned long long *st_ops_ctx, int ret)
{
	return 0;
}

SEC("freplace")
int freplace_test_arena(unsigned long long *st_ops_ctx)
{
	return 0;
}

char _license[] SEC("license") = "GPL";