During development it's convenient to be able to specify custom location of pahole binary, built locally. E.g.: $ PAHOLE=~/local/pahole/build/pahole ./btfdiff /tmp/vmlinux4 Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> --- btfdiff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/btfdiff b/btfdiff index 2b7ae33..6289a42 100755 --- a/btfdiff +++ b/btfdiff @@ -14,9 +14,10 @@ fi file=$1 btf_output=$(mktemp /tmp/btfdiff.btf.XXXXXX) dwarf_output=$(mktemp /tmp/btfdiff.dwarf.XXXXXX) +pahole_bin=${PAHOLE-"pahole"} -pahole -F dwarf --flat_arrays --show_private_classes $file > $dwarf_output -pahole -F btf $file > $btf_output +${pahole_bin} -F dwarf --flat_arrays --show_private_classes $file > $dwarf_output +${pahole_bin} -F btf $file > $btf_output diff -up $dwarf_output $btf_output -- 2.17.1