1 // SPDX-License-Identifier: GPL-2.0 2 #include "vmlinux.h" 3 #include <bpf/bpf_helpers.h> 4 #include <bpf/bpf_tracing.h> 5 #include "../bpf_testmod/bpf_testmod_kfunc.h" 6 7 char _license[] SEC("license") = "GPL"; 8 9 /* 10 * No tests in here, just to trigger 'bpf_fentry_test*' 11 * through tracing test_run 12 */ 13 SEC("fentry/bpf_modify_return_test") 14 int BPF_PROG(trigger) 15 { 16 return 0; 17 } 18 19 SEC("kprobe/bpf_fentry_test1") 20 int test1(struct pt_regs *ctx) 21 { 22 bpf_kfunc_common_test(); 23 return 0; 24 } 25 26 SEC("kprobe/bpf_kfunc_common_test") 27 int test2(struct pt_regs *ctx) 28 { 29 return 0; 30 } 31
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.