ctfdwdiff: Don't ask for variables and inline expansions in pfunct
As we won't find them in CTF land... I also have to add a new pfunct cmdline option to ask for inline functions not to be printed, as they aren't on the symtab. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6afe884c16
commit
a94b511f6c
10
ctfdwdiff
10
ctfdwdiff
|
@ -8,14 +8,14 @@ diff_tool() {
|
||||||
local ctf_options=$3
|
local ctf_options=$3
|
||||||
local obj=$4
|
local obj=$4
|
||||||
|
|
||||||
diff=$results_dir/$obj.diff
|
diff=$results_dir/$obj.$tool.diff
|
||||||
ctf=$results_dir/$obj.ctf.c
|
ctf=$results_dir/$obj.$tool.ctf.c
|
||||||
dwarf=$results_dir/$obj.dwarf.c
|
dwarf=$results_dir/$obj.$tool.dwarf.c
|
||||||
$tool -F ctf $ctf_options $obj > $ctf
|
$tool -F ctf $ctf_options $obj > $ctf
|
||||||
$tool -F dwarf $dwarf_options $obj > $dwarf
|
$tool -F dwarf $dwarf_options $obj > $dwarf
|
||||||
diff -up $dwarf $ctf > $diff
|
diff -up $dwarf $ctf > $diff
|
||||||
if [ -s $diff ] ; then
|
if [ -s $diff ] ; then
|
||||||
[ $# -gt 4 ] && vim $results_dir/$obj.diff
|
[ $# -gt 4 ] && vim $diff
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
rm -f $diff $ctf $dwarf
|
rm -f $diff $ctf $dwarf
|
||||||
|
@ -25,7 +25,7 @@ diff_tool() {
|
||||||
diff_one() {
|
diff_one() {
|
||||||
local obj=$1
|
local obj=$1
|
||||||
diff_tool "pahole" "--flat_arrays --show_private_classes --fixup_silly_bitfields" " " $obj $2
|
diff_tool "pahole" "--flat_arrays --show_private_classes --fixup_silly_bitfields" " " $obj $2
|
||||||
diff_tool "pfunct" "-TVi --no_parm_names" "-TVi" $obj $2
|
diff_tool "pfunct" "-V --no_parm_names" "-V" $obj $2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue