You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'perf/urgent' into tools/perf/build
This commit is contained in:
@@ -256,6 +256,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool)
|
||||
tool->sample = process_event_sample_stub;
|
||||
if (tool->mmap == NULL)
|
||||
tool->mmap = process_event_stub;
|
||||
if (tool->mmap2 == NULL)
|
||||
tool->mmap2 = process_event_stub;
|
||||
if (tool->comm == NULL)
|
||||
tool->comm = process_event_stub;
|
||||
if (tool->fork == NULL)
|
||||
@@ -1313,7 +1315,7 @@ int __perf_session__process_events(struct perf_session *session,
|
||||
file_offset = page_offset;
|
||||
head = data_offset - page_offset;
|
||||
|
||||
if (data_offset + data_size < file_size)
|
||||
if (data_size && (data_offset + data_size < file_size))
|
||||
file_size = data_offset + data_size;
|
||||
|
||||
progress_next = file_size / 16;
|
||||
|
||||
Reference in New Issue
Block a user