selftest/bpf/benchs: Print less if the quiet option is set
authorAnton Protopopov <aspsk@isovalent.com>
Mon, 13 Feb 2023 09:15:18 +0000 (09:15 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Feb 2023 00:29:31 +0000 (16:29 -0800)
commita237dda05e9101404a634ac53ee65c8f8c8fce58
treefe6a5bc3f38610434e067675cd39882021349ed1
parent90c22503cd8910c54a8cd4bfe5bb6873d9ba8e0b
selftest/bpf/benchs: Print less if the quiet option is set

The bench utility will print

    Setting up benchmark '<bench-name>'...
    Benchmark '<bench-name>' started.

on startup to stdout. Suppress this output if --quiet option if given. This
makes it simpler to parse benchmark output by a script.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230213091519.1202813-7-aspsk@isovalent.com
tools/testing/selftests/bpf/bench.c