diff options
| author | 2026-07-02 09:23:11 +0800 | |
|---|---|---|
| committer | 2026-07-02 09:25:45 -0700 | |
| commit | bb4e90e91ba19b598cbdd9a2161b893b86a3f637 (patch) | |
| tree | bb8dd260d7d0a742bc6d36b2b3efaeadba444c69 /scripts/Makefile.thinlto | |
| parent | Documentation/bpf: make it clear that kfuncs should be non-static (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
