Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350065
b: refs/heads/master
c: b22e793
h: refs/heads/master
i:
  350063: d72c83e
v: v3
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed Feb 6, 2013
1 parent 569032d commit 13b60fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 0c5268bf2218144469dde3228f14898fadbbcdcd
refs/heads/master: b22e79395c0fe4c86dd35745a929366034386ccc
6 changes: 5 additions & 1 deletion trunk/tools/perf/scripts/perl/rwtop.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use lib "./Perf-Trace-Util/lib";
use Perf::Trace::Core;
use Perf::Trace::Util;
use POSIX qw/SIGALRM SA_RESTART/;

my $default_interval = 3;
my $nlines = 20;
Expand Down Expand Up @@ -90,7 +91,10 @@ sub syscalls::sys_enter_write

sub trace_begin
{
$SIG{ALRM} = \&set_print_pending;
my $sa = POSIX::SigAction->new(\&set_print_pending);
$sa->flags(SA_RESTART);
$sa->safe(1);
POSIX::sigaction(SIGALRM, $sa) or die "Can't set SIGALRM handler: $!\n";
alarm 1;
}

Expand Down

0 comments on commit 13b60fa

Please sign in to comment.