diff --git a/tools/xref7 b/tools/xref7 index e26c756..44ad984 100755 --- a/tools/xref7 +++ b/tools/xref7 @@ -111,6 +111,7 @@ foreach my $file (@ARGV) { #print Dumper(\%Label); print_output(); +print_callgraph(); exit(0); sub parse_file { @@ -226,3 +227,28 @@ sub print_output { print("\n\n"); } } + +# Print a graphview call graph file +sub print_callgraph { + open(my $OUT, ">", "kernel_calls.gv") + || die("Can't write kernel_calls.gv: $!\n"); + print $OUT < { \"$calls\" ; }\n"); + } + } + print($OUT "}\n"); + close($OUT); +}