Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191335
b: refs/heads/master
c: c3f5fd2
h: refs/heads/master
i:
  191333: e0b58a6
  191331: 184c013
  191327: cfb369d
v: v3
  • Loading branch information
Tom Zanussi authored and Arnaldo Carvalho de Melo committed May 10, 2010
1 parent 1f86377 commit 39e80bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fefb0b94bbab858be0909a7eb5ef357e0f996a79
refs/heads/master: c3f5fd287aa897f710f3305367a1d256c9cf3e83
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/failed-syscalls-report
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# description: system-wide failed syscalls
# args: [comm]
if [ $# -gt 0 ] ; then
if ! expr match "$1" "-" ; then
if ! expr match "$1" "-" > /dev/null ; then
comm=$1
shift
fi
Expand Down
6 changes: 5 additions & 1 deletion trunk/tools/perf/scripts/perl/failed-syscalls.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Perf::Trace::Context;
use Perf::Trace::Util;

my $for_comm = shift;

my %failed_syscalls;

sub raw_syscalls::sys_exit
Expand All @@ -33,6 +35,8 @@ sub trace_end

foreach my $comm (sort {$failed_syscalls{$b} <=> $failed_syscalls{$a}}
keys %failed_syscalls) {
printf("%-20s %10s\n", $comm, $failed_syscalls{$comm});
next if ($for_comm && $comm ne $for_comm);

printf("%-20s %10s\n", $comm, $failed_syscalls{$comm});
}
}

0 comments on commit 39e80bf

Please sign in to comment.