aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_static_linked2.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-05-13 23:36:42 +0000
committerAlexei Starovoitov <[email protected]>2021-05-14 00:23:57 +0000
commit9e9b451593b161403aedf15eef8ced62dba65f40 (patch)
tree9d572702d99bab55880323e53cdc6a87b30dbafa /tools/testing/selftests/bpf/progs/test_static_linked2.c
parentbpf, arm64: Replace STACK_ALIGN() with round_up() to align stack size (diff)
downloadkernel-9e9b451593b161403aedf15eef8ced62dba65f40.tar.gz
kernel-9e9b451593b161403aedf15eef8ced62dba65f40.zip
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 <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_static_linked2.c')
-rw-r--r--tools/testing/selftests/bpf/progs/test_static_linked2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_static_linked2.c b/tools/testing/selftests/bpf/progs/test_static_linked2.c
index c54c4e865ed8..766ebd502a60 100644
--- a/tools/testing/selftests/bpf/progs/test_static_linked2.c
+++ b/tools/testing/selftests/bpf/progs/test_static_linked2.c
@@ -7,7 +7,7 @@
/* 4-byte aligned .data */
static volatile int static_var1 = 5;
static volatile int static_var2 = 6;
-int var2 = 0;
+int var2 = -1;
/* 8-byte aligned .rodata */
const volatile long rovar2;