mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-27 16:28:58 -04:00
Emit the bpf_kfunc decl tag for every discovered kfunc, and bpf_fastcall for kfuncs flagged KF_FASTCALL. These were previously produced by pahole under --btf_features=decl_tag_kfuncs. resolve_btfids now discovers kfuncs from the BTF ID sets [1] and becomes the source of truth for their annotations. Drop decl_tag_kfuncs pahole feature flag from scripts/Makefile.btf [1] https://lore.kernel.org/all/20260722233518.778854-1-ihor.solodrai@linux.dev/ Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://patch.msgid.link/20260807032029.78092-5-ihor.solodrai@linux.dev Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
pahole-ver := $(CONFIG_PAHOLE_VERSION)
|
|
pahole-flags-y :=
|
|
|
|
JOBS := $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))
|
|
|
|
ifeq ($(call test-le, $(pahole-ver), 125),y)
|
|
|
|
pahole-flags-y += --btf_gen_floats -j$(JOBS)
|
|
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 125) += --skip_encoding_btf_inconsistent_proto --btf_gen_optimized
|
|
|
|
else
|
|
|
|
# Switch to using --btf_features for v1.26 and later.
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j$(JOBS) --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func
|
|
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 131) += --btf_features=layout
|
|
|
|
endif
|
|
|
|
pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
|
|
|
|
export PAHOLE_FLAGS := $(pahole-flags-y)
|
|
|
|
resolve-btfids-flags-y :=
|
|
resolve-btfids-flags-$(CONFIG_WERROR) += --fatal_warnings
|
|
resolve-btfids-flags-$(if $(KBUILD_EXTMOD),y) += --distill_base
|
|
resolve-btfids-flags-$(if $(KBUILD_VERBOSE),y) += --verbose
|
|
|
|
export RESOLVE_BTFIDS_FLAGS := $(resolve-btfids-flags-y)
|