1
0
Fork 0
linux/tools/testing/selftests/bpf/progs/fentry_recursive_target.c
Daniel Baumann 79d69e5050
Adding upstream version 6.12.33.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 12:14:28 +02:00

25 lines
578 B
C

// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2023 Red Hat, Inc. */
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
char _license[] SEC("license") = "GPL";
/* Dummy fentry bpf prog for testing fentry attachment chains. It's going to be
* a start of the chain.
*/
SEC("fentry/bpf_testmod_fentry_test1")
int BPF_PROG(test1, int a)
{
return 0;
}
/* Dummy bpf prog for testing attach_btf presence when attaching an fentry
* program.
*/
SEC("raw_tp/sys_enter")
int BPF_PROG(fentry_target, struct pt_regs *regs, long id)
{
return 0;
}