49 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.multi/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 32SEC("kprobe/bpf_kfunc_common_test")33int test3(struct pt_regs *ctx)34{35 return 0;36}37 38SEC("kprobe/bpf_kfunc_common_test")39int test4(struct pt_regs *ctx)40{41 return 0;42}43 44SEC("kprobe.multi/bpf_kfunc_common_test")45int test5(struct pt_regs *ctx)46{47 return 0;48}49