perf trace: Check control+C more often
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 3 Sep 2013 14:55:07 +0000 (11:55 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 5 Sep 2013 19:17:25 +0000 (16:17 -0300)
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]>
tools/perf/builtin-trace.c

index b6f0725068bda07d46d43f52c8097003d7375bb7..6016112e801ab3c5b99e82c6edc7fa8459e22475 100644 (file)
@@ -994,6 +994,9 @@ again:
 
                        handler = evsel->handler.func;
                        handler(trace, evsel, &sample);
+
+                       if (done)
+                               goto out_unmap_evlist;
                }
        }