]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e5cdebe94068535fafaad6acce813fba5301277
tree9249f048b3cd2569ffcfae262ef4feb6032cc481
parentbbb075ad8d8a25908d4816bf33bc17c9963a8437
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