1// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2
3struct S {
4 int a;
5 int b;
6 int c;
7};
8
9union U {
10 int a;
11 int b;
12 int c;
13};
14
15struct S1 {
16 int a;
17 int b;
18 int c;
19};
20
21union U1 {
22 int a;
23 int b;
24 int c;
25};
26
27typedef int T;
28typedef int S;
29typedef int U;
30typedef int T1;
31typedef int S1;
32typedef int U1;
33
34struct root_struct {
35 S m_1;
36 T m_2;
37 U m_3;
38 S1 m_4;
39 T1 m_5;
40 U1 m_6;
41 struct S m_7;
42 struct S1 m_8;
43 union U m_9;
44 union U1 m_10;
45};
46
47int func(struct root_struct *root)
48{
49 return 0;
50}
51

source code of linux/tools/testing/selftests/bpf/progs/btf_data.c