diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-05-13 16:36:42 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-05-13 17:23:57 -0700 |
commit | 9e9b451593b161403aedf15eef8ced62dba65f40 (patch) | |
tree | 9d572702d99bab55880323e53cdc6a87b30dbafa /tools/testing/selftests/bpf/progs/test_static_linked1.c | |
parent | 3f2870989f10ddb276063097d8e44e543277694a (diff) |
selftests/bpf: Validate skeleton gen handles skipped fields
Adjust static_linked selftests to test a mix of global and static variables
and their handling of bpftool's skeleton generation code.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210513233643.194711-1-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_static_linked1.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/test_static_linked1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_static_linked1.c b/tools/testing/selftests/bpf/progs/test_static_linked1.c index cae304045d9c..4f0b612e1661 100644 --- a/tools/testing/selftests/bpf/progs/test_static_linked1.c +++ b/tools/testing/selftests/bpf/progs/test_static_linked1.c @@ -7,7 +7,7 @@ /* 8-byte aligned .data */ static volatile long static_var1 = 2; static volatile int static_var2 = 3; -int var1 = 0; +int var1 = -1; /* 4-byte aligned .rodata */ const volatile int rovar1; |