aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r--tools/perf/util/session.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 8cdd23239c90..ce6f51162386 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -1375,15 +1375,13 @@ int __perf_session__process_events(struct perf_session *session,
1375{ 1375{
1376 u64 head, page_offset, file_offset, file_pos, progress_next; 1376 u64 head, page_offset, file_offset, file_pos, progress_next;
1377 int err, mmap_prot, mmap_flags, map_idx = 0; 1377 int err, mmap_prot, mmap_flags, map_idx = 0;
1378 size_t page_size, mmap_size; 1378 size_t mmap_size;
1379 char *buf, *mmaps[8]; 1379 char *buf, *mmaps[8];
1380 union perf_event *event; 1380 union perf_event *event;
1381 uint32_t size; 1381 uint32_t size;
1382 1382
1383 perf_tool__fill_defaults(tool); 1383 perf_tool__fill_defaults(tool);
1384 1384
1385 page_size = sysconf(_SC_PAGESIZE);
1386
1387 page_offset = page_size * (data_offset / page_size); 1385 page_offset = page_size * (data_offset / page_size);
1388 file_offset = page_offset; 1386 file_offset = page_offset;
1389 head = data_offset - page_offset; 1387 head = data_offset - page_offset;
@@ -1460,6 +1458,7 @@ more:
1460 session->ordered_samples.next_flush = ULLONG_MAX; 1458 session->ordered_samples.next_flush = ULLONG_MAX;
1461 err = flush_sample_queue(session, tool); 1459 err = flush_sample_queue(session, tool);
1462out_err: 1460out_err:
1461 ui_progress__finish();
1463 perf_session__warn_about_errors(session, tool); 1462 perf_session__warn_about_errors(session, tool);
1464 perf_session_free_sample_buffers(session); 1463 perf_session_free_sample_buffers(session);
1465 return err; 1464 return err;