forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
0331ee0cf4
commit
85b99952cc
|
@ -773,10 +773,10 @@ int __perf_session__process_events(struct perf_session *session,
|
||||||
err = -errno;
|
err = -errno;
|
||||||
goto out_err;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
ui_progress__update(progress, file_offset);
|
||||||
|
|
||||||
more:
|
more:
|
||||||
event = (event_t *)(buf + head);
|
event = (event_t *)(buf + head);
|
||||||
ui_progress__update(progress, file_offset);
|
|
||||||
|
|
||||||
if (session->header.needs_swap)
|
if (session->header.needs_swap)
|
||||||
perf_event_header__bswap(&event->header);
|
perf_event_header__bswap(&event->header);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user