xref: /linux/tools/testing/selftests/bpf/progs/kfunc_call_race.c (revision 69bfec7548f4c1595bac0e3ddfc0458a5af31f4c)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <vmlinux.h>
3 #include <bpf/bpf_helpers.h>
4 
5 extern void bpf_testmod_test_mod_kfunc(int i) __ksym;
6 
7 SEC("tc")
8 int kfunc_call_fail(struct __sk_buff *ctx)
9 {
10 	bpf_testmod_test_mod_kfunc(0);
11 	return 0;
12 }
13 
14 char _license[] SEC("license") = "GPL";
15