From 85b99952ccd3d84707661d8ae103c710daca1c8a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 30 Nov 2010 17:49:41 +0000 Subject: [PATCH] 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 Cc: Peter Zijlstra Cc: Frederic Weisbecker LKML-Reference: <20101130163820.094836523@linutronix.de> Signed-off-by: Thomas Gleixner Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: err = -errno; goto out_err; } + ui_progress__update(progress, file_offset); more: event = (event_t *)(buf + head); - ui_progress__update(progress, file_offset); if (session->header.needs_swap) perf_event_header__bswap(&event->header); -- 2.39.5