diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-08 05:51:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-08 05:51:31 -0400 |
commit | 429eb051011a580beae2dc9f8caed5dade9591dc (patch) | |
tree | b777c5d032e34c634aa19bf9fc0833390b37d7f1 /tools/perf/util/session.c | |
parent | b7af41a1bc255c0098c37a4bcf5c7e5e168ce875 (diff) | |
parent | 1651d120baddf68846188bcdf0ef5350068436cf (diff) |
Merge branch 'perf/urgent' into tools/perf/build
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 211b325791ad..b97f468af955 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -256,6 +256,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool) | |||
256 | tool->sample = process_event_sample_stub; | 256 | tool->sample = process_event_sample_stub; |
257 | if (tool->mmap == NULL) | 257 | if (tool->mmap == NULL) |
258 | tool->mmap = process_event_stub; | 258 | tool->mmap = process_event_stub; |
259 | if (tool->mmap2 == NULL) | ||
260 | tool->mmap2 = process_event_stub; | ||
259 | if (tool->comm == NULL) | 261 | if (tool->comm == NULL) |
260 | tool->comm = process_event_stub; | 262 | tool->comm = process_event_stub; |
261 | if (tool->fork == NULL) | 263 | if (tool->fork == NULL) |
@@ -1313,7 +1315,7 @@ int __perf_session__process_events(struct perf_session *session, | |||
1313 | file_offset = page_offset; | 1315 | file_offset = page_offset; |
1314 | head = data_offset - page_offset; | 1316 | head = data_offset - page_offset; |
1315 | 1317 | ||
1316 | if (data_offset + data_size < file_size) | 1318 | if (data_size && (data_offset + data_size < file_size)) |
1317 | file_size = data_offset + data_size; | 1319 | file_size = data_offset + data_size; |
1318 | 1320 | ||
1319 | progress_next = file_size / 16; | 1321 | progress_next = file_size / 16; |