1 // SPDX-License-Identifier: GPL-2.0
3 #include <bpf/bpf_helpers.h>
5 extern int bpf_test_modorder_retx(void) __ksym;
6 extern int bpf_test_modorder_rety(void) __ksym;
9 int call_kfunc_xy(struct __sk_buff *skb)
13 ret1 = bpf_test_modorder_retx();
14 ret2 = bpf_test_modorder_rety();
16 return ret1 == 'x' && ret2 == 'y' ? 0 : -1;
20 int call_kfunc_yx(struct __sk_buff *skb)
24 ret1 = bpf_test_modorder_rety();
25 ret2 = bpf_test_modorder_retx();
27 return ret1 == 'y' && ret2 == 'x' ? 0 : -1;
30 char _license[] SEC("license") = "GPL";