Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

veristat: Document verifier log dumping capability

`-vl2` is a useful combination of flags to dump the entire
verification log. This is helpful when making changes to the verifier,
as you can see what it thinks program one instruction at a time.

This was more or less a hidden feature before. Document it so others can
discover it.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/d57bbcca81e06ae8dcdadaedb99a48dced67e422.1736466129.git.dxu@dxuuu.xyz

authored by

Daniel Xu and committed by
Andrii Nakryiko
95ad526e defac894

+3 -2
+3 -2
tools/testing/selftests/bpf/veristat.c
··· 216 216 "\n" 217 217 "USAGE: veristat <obj-file> [<obj-file>...]\n" 218 218 " OR: veristat -C <baseline.csv> <comparison.csv>\n" 219 - " OR: veristat -R <results.csv>\n"; 219 + " OR: veristat -R <results.csv>\n" 220 + " OR: veristat -vl2 <to_analyze.bpf.o>\n"; 220 221 221 222 enum { 222 223 OPT_LOG_FIXED = 1000, ··· 229 228 { "version", 'V', NULL, 0, "Print version" }, 230 229 { "verbose", 'v', NULL, 0, "Verbose mode" }, 231 230 { "debug", 'd', NULL, 0, "Debug mode (turns on libbpf debug logging)" }, 232 - { "log-level", 'l', "LEVEL", 0, "Verifier log level (default 0 for normal mode, 1 for verbose mode)" }, 231 + { "log-level", 'l', "LEVEL", 0, "Verifier log level (default 0 for normal mode, 1 for verbose mode, 2 for full verification log)" }, 233 232 { "log-fixed", OPT_LOG_FIXED, NULL, 0, "Disable verifier log rotation" }, 234 233 { "log-size", OPT_LOG_SIZE, "BYTES", 0, "Customize verifier log size (default to 16MB)" }, 235 234 { "top-n", 'n', "N", 0, "Emit only up to first N results." },