linux_dsm_epyc7002/tools/perf/scripts/perl
Jiri Olsa b22e79395c perf perl scripts: Fix SIGALRM and pipe read race for rwtop
Fixing rwtop script race. The issue is caused by rwtop script triggering
SIGALRM and underneath pipe reading layer reporting error when
interrupted.

Fixing this by setting SA_RESTART for rwtop SIGALRM handler, which
avoids interruption of the pipe reading layer.

The discussion for this issue & fix is here:
https://lkml.org/lkml/2012/9/18/123

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Original-patch-by: Andrew Jones <drjones@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1360080351-3246-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-02-06 18:09:27 -03:00
..
bin perf script: Remove workqueue-stats script 2013-01-24 16:40:53 -03:00
Perf-Trace-Util perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
check-perf-trace.pl perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
failed-syscalls.pl perf/trace/scripting: failed-syscalls script cleanup 2010-05-10 19:50:54 -03:00
rw-by-file.pl perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
rw-by-pid.pl perf/trace/scripting: rw-by-pid script cleanup 2010-05-10 19:50:55 -03:00
rwtop.pl perf perl scripts: Fix SIGALRM and pipe read race for rwtop 2013-02-06 18:09:27 -03:00
wakeup-latency.pl perf/trace/scripting: wakeup-latency script cleanup 2010-05-10 19:50:57 -03:00