aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/bench.h
diff options
context:
space:
mode:
authorAnton Protopopov <aspsk@isovalent.com>2023-02-13 09:15:17 +0000
committerAndrii Nakryiko <andrii@kernel.org>2023-02-15 16:29:31 -0800
commit90c22503cd8910c54a8cd4bfe5bb6873d9ba8e0b (patch)
treee9ab008d11aacbce8c1794c29abec2131f317448 /tools/testing/selftests/bpf/bench.h
parentselftest/bpf/benchs: Remove an unused header (diff)
downloadwireguard-linux-90c22503cd8910c54a8cd4bfe5bb6873d9ba8e0b.tar.xz
wireguard-linux-90c22503cd8910c54a8cd4bfe5bb6873d9ba8e0b.zip
selftest/bpf/benchs: Make quiet option common
The "local-storage-tasks-trace" benchmark has a `--quiet` option. Move it to the list of common options, so that the main code and other benchmarks can use (new) env.quiet variable. Patch the run_bench_local_storage_rcu_tasks_trace.sh helper script accordingly. Signed-off-by: Anton Protopopov <aspsk@isovalent.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230213091519.1202813-6-aspsk@isovalent.com
Diffstat (limited to 'tools/testing/selftests/bpf/bench.h')
-rw-r--r--tools/testing/selftests/bpf/bench.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bench.h b/tools/testing/selftests/bpf/bench.h
index 3c8afa0131a3..402729c6a3ac 100644
--- a/tools/testing/selftests/bpf/bench.h
+++ b/tools/testing/selftests/bpf/bench.h
@@ -24,6 +24,7 @@ struct env {
bool verbose;
bool list;
bool affinity;
+ bool quiet;
int consumer_cnt;
int producer_cnt;
struct cpu_set prod_cpus;