summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-07-17 19:49:41 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-17 21:46:07 +0200
commitd4339569a6f8bb1e703337175dcd4fd4bcd5d891 (patch)
tree298b7b394a9b654328d8659427309544237c383c /tools/perf/util/header.h
parentperf tests: Check proper prev_state size for sched_switch tp (diff)
downloadlinux-d4339569a6f8bb1e703337175dcd4fd4bcd5d891.tar.xz
linux-d4339569a6f8bb1e703337175dcd4fd4bcd5d891.zip
perf session: Use session->fd instead of passing fd as argument
Using session->fd instead of passing fd as argument because it's always session->fd that's passed as fd argument. 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-2-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r--tools/perf/util/header.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index 669fda531da6..0bacb2d6eafa 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -96,7 +96,7 @@ struct perf_header {
struct perf_evlist;
struct perf_session;
-int perf_session__read_header(struct perf_session *session, int fd);
+int perf_session__read_header(struct perf_session *session);
int perf_session__write_header(struct perf_session *session,
struct perf_evlist *evlist,
int fd, bool at_exit);