Skip to content

Commit

Permalink
perf tools: Seek to the end of the header area
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed Sep 3, 2009
1 parent 8886f42 commit 2e01d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct perf_header *perf_header__read(int fd)
self->data_offset = f_header.data.offset;
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;

Expand Down

0 comments on commit 2e01d17

Please sign in to comment.