summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/bench.c
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2023-06-13 11:09:20 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-06-19 23:26:43 +0300
commit970308a7b544fa1c7ee98a2721faba3765be8dd8 (patch)
treecb7756ee7f27382354d2559321306a3ccb4df87b /tools/testing/selftests/bpf/bench.c
parentda77ae2b27ec73a644624a6d4bffc206e2df6bb8 (diff)
downloadlinux-970308a7b544fa1c7ee98a2721faba3765be8dd8.tar.xz
selftests/bpf: Set the default value of consumer_cnt as 0
Considering that only bench_ringbufs.c supports consumer, just set the default value of consumer_cnt as 0. After that, update the validity check of consumer_cnt, remove unused consumer_thread code snippets and set consumer_cnt as 1 in run_bench_ringbufs.sh accordingly. Signed-off-by: Hou Tao <houtao1@huawei.com> Link: https://lore.kernel.org/r/20230613080921.1623219-5-houtao@huaweicloud.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/bench.c')
-rw-r--r--tools/testing/selftests/bpf/bench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/bench.c b/tools/testing/selftests/bpf/bench.c
index 56f1c166a57b..41fe5a82b88b 100644
--- a/tools/testing/selftests/bpf/bench.c
+++ b/tools/testing/selftests/bpf/bench.c
@@ -17,7 +17,7 @@ struct env env = {
.duration_sec = 5,
.affinity = false,
.quiet = false,
- .consumer_cnt = 1,
+ .consumer_cnt = 0,
.producer_cnt = 1,
};