perf symbols: Pass the offset to perf_header__read_build_ids()
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <1258396365-29217-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
8216416167
commit
84fe8488ad
@@ -70,11 +70,10 @@ process_event(event_t *event, unsigned long offset, unsigned long head)
|
||||
}
|
||||
}
|
||||
|
||||
int perf_header__read_build_ids(int input, off_t size)
|
||||
int perf_header__read_build_ids(int input, off_t offset, off_t size)
|
||||
{
|
||||
struct build_id_event bev;
|
||||
char filename[PATH_MAX];
|
||||
off_t offset = lseek(input, 0, SEEK_CUR);
|
||||
off_t limit = offset + size;
|
||||
int err = -1;
|
||||
|
||||
|
Reference in New Issue
Block a user