1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
6 #include "../test_kmods/bpf_testmod.h"
8 char _license[] SEC("license") = "GPL";
10 #if defined(__TARGET_ARCH_x86)
11 bool skip __attribute((__section__(".data"))) = false;
16 void bpf_testmod_ops3_call_test_2(void) __ksym;
20 __noinline static int subprog2(int *a, int *b)
22 return val_i + a[10] + b[20];
25 __noinline static int subprog1(int *a)
27 /* stack size 200 bytes */
31 return subprog2(a, b);
38 /* stack size 100 bytes */
43 bpf_testmod_ops3_call_test_2();
50 /* stack size 400 bytes */
59 struct bpf_testmod_ops3 testmod_1 = {
60 .test_1 = (void *)test_1,
61 .test_2 = (void *)test_2,