diff options
Diffstat (limited to 'tools/testing/selftests/bpf/progs/tracing_struct.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/tracing_struct.c | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/tracing_struct.c b/tools/testing/selftests/bpf/progs/tracing_struct.c index e718f0ebee7d..c435a3a8328a 100644 --- a/tools/testing/selftests/bpf/progs/tracing_struct.c +++ b/tools/testing/selftests/bpf/progs/tracing_struct.c @@ -13,12 +13,18 @@ struct bpf_testmod_struct_arg_2 {  	long b;  }; +struct bpf_testmod_struct_arg_3 { +	int a; +	int b[]; +}; +  long t1_a_a, t1_a_b, t1_b, t1_c, t1_ret, t1_nregs;  __u64 t1_reg0, t1_reg1, t1_reg2, t1_reg3;  long t2_a, t2_b_a, t2_b_b, t2_c, t2_ret;  long t3_a, t3_b, t3_c_a, t3_c_b, t3_ret;  long t4_a_a, t4_b, t4_c, t4_d, t4_e_a, t4_e_b, t4_ret;  long t5_ret; +int t6;  SEC("fentry/bpf_testmod_test_struct_arg_1")  int BPF_PROG2(test_struct_arg_1, struct bpf_testmod_struct_arg_2, a, int, b, int, c) @@ -117,4 +123,11 @@ int BPF_PROG2(test_struct_arg_10, int, ret)  	return 0;  } +SEC("fentry/bpf_testmod_test_struct_arg_6") +int BPF_PROG2(test_struct_arg_11, struct bpf_testmod_struct_arg_3 *, a) +{ +	t6 = a->b[0]; +	return 0; +} +  char _license[] SEC("license") = "GPL";  | 
