diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-09-23 20:59:11 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-24 04:14:45 +0300 |
commit | 518fee8bfaf2c628007909c0fc5336930b9b6ee4 (patch) | |
tree | bec5351da6be6d4c6faaafe20a4953cd56b2e09f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c2488d70ceee352611e55943c25abf30117e3b67 (diff) | |
download | linux-518fee8bfaf2c628007909c0fc5336930b9b6ee4.tar.xz |
selftests/bpf: make veristat skip non-BPF and failing-to-open BPF objects
Make veristat ignore non-BPF object files. This allows simpler
mass-verification (e.g., `sudo ./veristat *.bpf.o` in selftests/bpf
directory). Note that `sudo ./veristat *.o` would also work, but with
selftests's multiple copies of BPF object files (.bpf.o and
.bpf.linked{1,2,3}.o) it's 4x slower.
Also, given some of BPF object files could be incomplete in the sense
that they are meant to be statically linked into final BPF object file
(like linked_maps, linked_funcs, linked_vars), note such instances in
stderr, but proceed anyways. This seems like a better trade off between
completely silently ignoring BPF object file and aborting
mass-verification altogether.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220923175913.3272430-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions