Skip to content

Commit

Permalink
perf session: Move ui_progress_update in __perf_session__process_even…
Browse files Browse the repository at this point in the history
…ts()

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>
  • Loading branch information
Thomas Gleixner authored and Arnaldo Carvalho de Melo committed Nov 30, 2010
1 parent 0331ee0 commit 85b9995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ int __perf_session__process_events(struct perf_session *session,
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);
Expand Down

0 comments on commit 85b9995

Please sign in to comment.