diff mbox series

[bpf-next,v3,1/2] kbuild: bpf: Tell pahole to DECL_TAG kfuncs

Message ID 09085a7207265b153d0c81eee30906009c66cb82.1715625447.git.dxu@dxuuu.xyz (mailing list archive)
State New
Headers show
Series bpf: bpftool: Support dumping kfunc prototypes from BTF | expand

Commit Message

Daniel Xu May 13, 2024, 6:38 p.m. UTC
With [0], pahole can now discover kfuncs and inject DECL_TAG
into BTF. With this commit, we will start shipping said DECL_TAGs
to downstream consumers if pahole supports it.

This is useful for feature probing kfuncs as well as generating
compilable prototypes. This is particularly important as kfuncs
do not have stable ABI.

[0]: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?h=next&id=72e88f29c6f7e14201756e65bd66157427a61aaf

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
---
 scripts/Makefile.btf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
index 2d6e5ed9081e..d9ec6c85ffa7 100644
--- a/scripts/Makefile.btf
+++ b/scripts/Makefile.btf
@@ -21,7 +21,7 @@  endif
 else
 
 # Switch to using --btf_features for v1.26 and later.
-pahole-flags-$(call test-ge, $(pahole-ver), 126)  = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func
+pahole-flags-$(call test-ge, $(pahole-ver), 126)  = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,decl_tag_kfuncs
 
 endif