summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2013-09-03 16:55:07 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-09-05 21:17:25 +0200
commit20c5f10eb5d1767087dd8eccfe4efe325e61cded (patch)
tree6c95872e07005d0937949b854c388df5e5af4a26 /tools
parentMerge branch 'x86-spinlocks-for-linus' of git://git.kernel.org/pub/scm/linux/... (diff)
downloadlinux-20c5f10eb5d1767087dd8eccfe4efe325e61cded.tar.xz
linux-20c5f10eb5d1767087dd8eccfe4efe325e61cded.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-trace.c3
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;
}
}