diff options
author | 2021-12-20 19:30:48 +0800 | |
---|---|---|
committer | 2021-12-21 15:35:48 -0800 | |
commit | 0dd668d2080c46cf914e131f341fa114a34c5a20 (patch) | |
tree | 517c7fec6a7f96131428e820f97d87bbaca37f98 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | selftests/bpf: Correct the INDEX address in vmtest.sh (diff) | |
download | wireguard-linux-0dd668d2080c46cf914e131f341fa114a34c5a20.tar.xz wireguard-linux-0dd668d2080c46cf914e131f341fa114a34c5a20.zip |
bpf: Use struct_size() helper
In an effort to avoid open-coded arithmetic in the kernel, use the
struct_size() helper instead of open-coded calculation.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://github.com/KSPP/linux/issues/160
Link: https://lore.kernel.org/bpf/20211220113048.2859-1-xiujianfeng@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions