diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2013-09-03 11:55:07 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-09-05 16:17:25 -0300 |
commit | 20c5f10eb5d1767087dd8eccfe4efe325e61cded (patch) | |
tree | 6c95872e07005d0937949b854c388df5e5af4a26 | |
parent | 816434ec4a674fcdb3c2221a6dffdc8f34020550 (diff) |
perf trace: Check control+C more often
We were checking for it only after processing all events in the buffer,
delaying processing the termination request for long periods.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/perf/builtin-trace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index b6f0725068bd..6016112e801a 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -994,6 +994,9 @@ again: handler = evsel->handler.func; handler(trace, evsel, &sample); + + if (done) + goto out_unmap_evlist; } } |