diff options
| author | Robert Richter <robert.richter@amd.com> | 2010-06-04 05:33:10 -0400 |
|---|---|---|
| committer | Robert Richter <robert.richter@amd.com> | 2010-06-04 05:33:10 -0400 |
| commit | d8a382d2662822248a97ce9d670b90e68aefbd3a (patch) | |
| tree | 4f5bbd5d0a5881ed42de611402ea4ac2c6d6ff48 /tools/perf/scripts/perl/failed-syscalls.pl | |
| parent | 45c34e05c4e3d36e7c44e790241ea11a1d90d54e (diff) | |
| parent | c6df8d5ab87a246942d138321e1721edbb69f6e1 (diff) | |
Merge remote branch 'tip/perf/urgent' into oprofile/urgent
Diffstat (limited to 'tools/perf/scripts/perl/failed-syscalls.pl')
| -rw-r--r-- | tools/perf/scripts/perl/failed-syscalls.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/failed-syscalls.pl b/tools/perf/scripts/perl/failed-syscalls.pl index c18e7e27a84b..94bc25a347eb 100644 --- a/tools/perf/scripts/perl/failed-syscalls.pl +++ b/tools/perf/scripts/perl/failed-syscalls.pl | |||
| @@ -11,6 +11,8 @@ use Perf::Trace::Core; | |||
| 11 | use Perf::Trace::Context; | 11 | use Perf::Trace::Context; |
| 12 | use Perf::Trace::Util; | 12 | use Perf::Trace::Util; |
| 13 | 13 | ||
| 14 | my $for_comm = shift; | ||
| 15 | |||
| 14 | my %failed_syscalls; | 16 | my %failed_syscalls; |
| 15 | 17 | ||
| 16 | sub raw_syscalls::sys_exit | 18 | sub raw_syscalls::sys_exit |
| @@ -33,6 +35,8 @@ sub trace_end | |||
| 33 | 35 | ||
| 34 | foreach my $comm (sort {$failed_syscalls{$b} <=> $failed_syscalls{$a}} | 36 | foreach my $comm (sort {$failed_syscalls{$b} <=> $failed_syscalls{$a}} |
| 35 | keys %failed_syscalls) { | 37 | keys %failed_syscalls) { |
| 36 | printf("%-20s %10s\n", $comm, $failed_syscalls{$comm}); | 38 | next if ($for_comm && $comm ne $for_comm); |
| 39 | |||
| 40 | printf("%-20s %10s\n", $comm, $failed_syscalls{$comm}); | ||
| 37 | } | 41 | } |
| 38 | } | 42 | } |
