Commit 20c5f10eb5d1767087dd8eccfe4efe325e61cded

Authored by Arnaldo Carvalho de Melo
1 parent 816434ec4a

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 <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-9jdbu937curvb35cfzbyss4g@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

tools/perf/builtin-trace.c
... ... @@ -994,6 +994,9 @@
994 994  
995 995 handler = evsel->handler.func;
996 996 handler(trace, evsel, &sample);
  997 +
  998 + if (done)
  999 + goto out_unmap_evlist;
997 1000 }
998 1001 }
999 1002