btf, scripts: Exclude Rust CUs with pahole
[linux-block.git] / scripts / pahole-flags.sh
index 0d99ef17e4a52876a895295b16320646344ad0e8..1f1f1d397c399afe868089cdae540769f8e63ee8 100755 (executable)
@@ -19,5 +19,9 @@ fi
 if [ "${pahole_ver}" -ge "122" ]; then
        extra_paholeopt="${extra_paholeopt} -j"
 fi
+if [ "${pahole_ver}" -ge "124" ]; then
+       # see PAHOLE_HAS_LANG_EXCLUDE
+       extra_paholeopt="${extra_paholeopt} --lang_exclude=rust"
+fi
 
 echo ${extra_paholeopt}