aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-11-30 12:49:41 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-11-30 16:57:13 -0500
commit85b99952ccd3d84707661d8ae103c710daca1c8a (patch)
treeb8558cf940363f1349fe6b5ce1b1d3f978312953 /tools/perf/util/session.c
parent0331ee0cf4187dcdc2b184cf701d8b58bf9ff637 (diff)
perf session: Move ui_progress_update in __perf_session__process_events()
The progress bar is changed when the file offset changes. This happens only when the next mmap is done. No need to call ui_progress_update() for every event. Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20101130163820.094836523@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r--tools/perf/util/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 2fdbccf10770..3c140daba63a 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -773,10 +773,10 @@ remap:
773 err = -errno; 773 err = -errno;
774 goto out_err; 774 goto out_err;
775 } 775 }
776 ui_progress__update(progress, file_offset);
776 777
777more: 778more:
778 event = (event_t *)(buf + head); 779 event = (event_t *)(buf + head);
779 ui_progress__update(progress, file_offset);
780 780
781 if (session->header.needs_swap) 781 if (session->header.needs_swap)
782 perf_event_header__bswap(&event->header); 782 perf_event_header__bswap(&event->header);