For pahole v1.26 and later, --btf_features is used to specify BTF features for encoding. Since it tolerates unknown features, no further version checking will be needed when adding new features. Add crc, kind_layout features. Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx> --- scripts/pahole-flags.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh index 728d55190d97..30a3e270308b 100755 --- a/scripts/pahole-flags.sh +++ b/scripts/pahole-flags.sh @@ -26,5 +26,8 @@ fi if [ "${pahole_ver}" -ge "125" ]; then extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_inconsistent_proto --btf_gen_optimized" fi +if [ "${pahole_ver}" -ge "126" ]; then + extra_paholeopt="-j --lang_exclude=rust --btf_features=encode_force,var,float,decl_tag,type_tag,enum64,optimized_func,consistent_func,crc,kind_layout" +fi echo ${extra_paholeopt} -- 2.31.1