[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cd5bb286-506b-5cdb-f721-0464a58659db@fb.com>
Date: Wed, 18 May 2022 08:43:54 -0700
From: Yonghong Song <yhs@...com>
To: Feng zhou <zhoufeng.zf@...edance.com>, shuah@...nel.org,
ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
kafai@...com, songliubraving@...com, john.fastabend@...il.com,
kpsingh@...nel.org, rostedt@...dmis.org, mingo@...hat.com,
jolsa@...nel.org, davemarchevsky@...com, joannekoong@...com,
geliang.tang@...e.com
Cc: linux-kselftest@...r.kernel.org, netdev@...r.kernel.org,
bpf@...r.kernel.org, linux-kernel@...r.kernel.org,
duanxiongchun@...edance.com, songmuchun@...edance.com,
wangdongdong.6@...edance.com, cong.wang@...edance.com,
zhouchengming@...edance.com, yosryahmed@...gle.com
Subject: Re: [PATCH bpf-next v2] selftests/bpf: fix some bugs in
map_lookup_percpu_elem testcase
On 5/17/22 7:50 PM, Feng zhou wrote:
> From: Feng Zhou <zhoufeng.zf@...edance.com>
>
> comments from Andrii Nakryiko, details in here:
> https://lore.kernel.org/lkml/20220511093854.411-1-zhoufeng.zf@bytedance.com/T/
>
> use /* */ instead of //
> use libbpf_num_possible_cpus() instead of sysconf(_SC_NPROCESSORS_ONLN)
> use 8 bytes for value size
> fix memory leak
> use ASSERT_EQ instead of ASSERT_OK
> add bpf_loop to fetch values on each possible CPU
>
> Fixes: ed7c13776e20c74486b0939a3c1de984c5efb6aa ("selftests/bpf: add test case for bpf_map_lookup_percpu_elem")
> Signed-off-by: Feng Zhou <zhoufeng.zf@...edance.com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists