提交 2e01d179 编写于 作者: I Ingo Molnar

perf tools: Seek to the end of the header area

Leave the input fd at the data area.

It does not matter right now - but seeking at the end of it
certainly did not make sense.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 8886f42d
...@@ -237,7 +237,7 @@ struct perf_header *perf_header__read(int fd) ...@@ -237,7 +237,7 @@ struct perf_header *perf_header__read(int fd)
self->data_offset = f_header.data.offset; self->data_offset = f_header.data.offset;
self->data_size = f_header.data.size; self->data_size = f_header.data.size;
lseek(fd, self->data_offset + self->data_size, SEEK_SET); lseek(fd, self->data_offset, SEEK_SET);
self->frozen = 1; self->frozen = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册