selftests/bpf: Use producer_cnt to allocate local counter array
authorHou Tao <houtao1@huawei.com>
Tue, 13 Jun 2023 08:09:17 +0000 (16:09 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 19 Jun 2023 20:26:42 +0000 (13:26 -0700)
commit8ad663d3dfac95cbcc4121d0655bd18ad9de826f
tree76edfed9d45caad1fab0c87d62ac7122a1c4fa19
parente2fa5c2068fbea59e648d1637040ba8494f45104
selftests/bpf: Use producer_cnt to allocate local counter array

For count-local benchmark, use producer_cnt instead of consumer_cnt when
allocating local counter array.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20230613080921.1623219-2-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/benchs/bench_count.c