summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-07-17 19:49:42 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-17 21:46:17 +0200
commit75211dbfabf1de3a42703f4d3cd6f6e047289d40 (patch)
treea7e3506d8e59353bbc9b88340cbf876961f26522 /tools/perf/util
parentperf session: Use session->fd instead of passing fd as argument (diff)
downloadlinux-75211dbfabf1de3a42703f4d3cd6f6e047289d40.tar.xz
linux-75211dbfabf1de3a42703f4d3cd6f6e047289d40.zip
perf header: Remove data_offset seek as it's not needed
Removing data_offset seek as it's not needed, because data are not read by syscall but mmaped instead. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1374083403-14591-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/header.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index b3f253f2841e..035efe764286 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -2794,8 +2794,6 @@ int perf_session__read_header(struct perf_session *session)
perf_header__process_sections(header, fd, &session->pevent,
perf_file_section__process);
- lseek(fd, header->data_offset, SEEK_SET);
-
if (perf_evlist__prepare_tracepoint_events(session->evlist,
session->pevent))
goto out_delete_evlist;