]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: emit processing progress and add quiet mode to veristat
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Sep 2022 17:59:12 +0000 (10:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 24 Sep 2022 01:14:45 +0000 (18:14 -0700)
commit7d9417fbd2b762c2a3e0d9da003fe33f579d4545
tree0458774b9b620eba6f1ec81fc478a9e14677538e
parent9b0d11f3ce2277bae98e0336ac6895209b413119
selftests/bpf: emit processing progress and add quiet mode to veristat

Emit "Processing <filepath>..." for each BPF object file to be
processed, to show progress. But also add -q (--quiet) flag to silence
such messages. Doing something more clever (like overwriting same output
line) is to cumbersome and easily breakable if there is any other
console output (e.g., errors from libbpf).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220923175913.3272430-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/veristat.c