diff options
| author | luoliang <luoliang@kylinos.cn> | 2026-07-02 09:23:11 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-07-02 09:25:45 -0700 |
| commit | bb4e90e91ba19b598cbdd9a2161b893b86a3f637 (patch) | |
| tree | bb8dd260d7d0a742bc6d36b2b3efaeadba444c69 /tools/perf/scripts/python | |
| parent | 0b58988cacfc91604c4b5be2c3295f8aac0ee3d0 (diff) | |
bpftool: Use btf_vlen()/btf_kind()/btf_kflag() helpers consistently
The btf_vlen(), btf_kind() and btf_kflag() inline helpers defined in
tools/lib/bpf/btf.h are thin wrappers around the BTF_INFO_VLEN(),
BTF_INFO_KIND() and BTF_INFO_KFLAG() UAPI macros - each one simply
returns the corresponding macro applied to t->info.
bpftool already uses these helpers in most places, but 13 call sites
in btf.c and btf_dumper.c still open-code the raw macros. Use the
helpers consistently, matching the rest of bpftool as well as libbpf.
No functional change.
Signed-off-by: Liang Luo <luoliang@kylinos.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20260702012311.2265001-1-luoliang@kylinos.cn
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
