提交 dd5f5fd1 编写于 作者: F Frederic Weisbecker

perf tools: Remove junk code in mmap size handling

size is overriden later and used only then. Those
lines are only junk, probably a leftover.
Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
上级 eac9eace
...@@ -1018,9 +1018,6 @@ int __perf_session__process_events(struct perf_session *session, ...@@ -1018,9 +1018,6 @@ int __perf_session__process_events(struct perf_session *session,
if (session->header.needs_swap) if (session->header.needs_swap)
perf_event_header__bswap(&event->header); perf_event_header__bswap(&event->header);
size = event->header.size;
if (size == 0)
size = 8;
if (head + event->header.size > mmap_size) { if (head + event->header.size > mmap_size) {
if (mmaps[map_idx]) { if (mmaps[map_idx]) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册