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)
commitc511d009ceb8cd980e4a823b7ca74abbdc7cdccc
tree0458774b9b620eba6f1ec81fc478a9e14677538e
parent518fee8bfaf2c628007909c0fc5336930b9b6ee4
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