selftests/bpf: Use -O0 instead of -Og in selftests builds
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Apr 2021 18:13:43 +0000 (11:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Apr 2021 21:05:27 +0000 (14:05 -0700)
commit41c472e85b531a228067bee9be59a508900bcd9f
tree9249f048b3cd2569ffcfae262ef4feb6032cc481
parent0a342457b3bd36e6f9b558da3ff520dee35c5363
selftests/bpf: Use -O0 instead of -Og in selftests builds

While -Og is designed to work well with debugger, it's still inferior to -O0
in terms of debuggability experience. It will cause some variables to still be
inlined, it will also prevent single-stepping some statements and otherwise
interfere with debugging experience. So switch to -O0 which turns off any
optimization and provides the best debugging experience.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210423181348.1801389-14-andrii@kernel.org
tools/testing/selftests/bpf/Makefile