diff options
author | Andrii Nakryiko <[email protected]> | 2023-11-17 19:46:21 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-11-18 11:39:59 -0800 |
commit | 1db747d75b1dbe17bf4283ed87bd3b7a92010f34 (patch) | |
tree | d266e1595982f440d336448b39d0a3c26974ea6a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 0c95c9fdb696f35c7864785ba84cb9a50152daff (diff) |
bpf: omit default off=0 and imm=0 in register state log
Simplify BPF verifier log further by omitting default (and frequently
irrelevant) off=0 and imm=0 parts for non-SCALAR_VALUE registers. As can
be seen from fixed tests, this is often a visual noise for PTR_TO_CTX
register and even for PTR_TO_PACKET registers.
Omitting default values follows the rest of register state logic: we
omit default values to keep verifier log succinct and to highlight
interesting state that deviates from default one. E.g., we do the same
for var_off, when it's unknown, which gives no additional information.
Acked-by: Eduard Zingerman <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions