31 lines · c
1// SPDX-License-Identifier: GPL-2.02#include "vmlinux.h"3#include <bpf/bpf_helpers.h>4#include <bpf/bpf_tracing.h>5#include "../bpf_testmod/bpf_testmod_kfunc.h"6 7char _license[] SEC("license") = "GPL";8 9/*10 * No tests in here, just to trigger 'bpf_fentry_test*'11 * through tracing test_run12 */13SEC("fentry/bpf_modify_return_test")14int BPF_PROG(trigger)15{16 return 0;17}18 19SEC("kprobe/bpf_fentry_test1")20int test1(struct pt_regs *ctx)21{22 bpf_kfunc_common_test();23 return 0;24}25 26SEC("kprobe/bpf_kfunc_common_test")27int test2(struct pt_regs *ctx)28{29 return 0;30}31