btfdiff: Use diff's -p option to show the struct/union

To help in looking up the change and figure out its reason.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-01-17 10:07:13 -03:00
parent 1182664d6a
commit 278b64c3ee
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ dwarf_output=$(mktemp /tmp/btfdiff.XXXXXX)
pahole -F dwarf --flat_arrays $file > $dwarf_output
pahole -F btf $file > $btf_output
diff -u $dwarf_output $btf_output
diff -up $dwarf_output $btf_output
rm -f $btf_output $dwarf_output
exit 0