diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-12-19 07:04:24 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-24 14:40:13 -0500 |
commit | 34ba5122bf198c9cdfcbecc9b23eaa414244a3f6 (patch) | |
tree | 7793918dad08b64157ae66d605a3e5bd2b3abb1f /tools/perf/util/session.h | |
parent | 09ecbb07a5c9fa31dc72ee8fb1c3fbd1145448dd (diff) |
perf machine: Simplify accessing the host machine
It is always there, no sense in calling a function named
"perf_session__find_host_machine".
Also no sense in checking if that function return is NULL, so ditch
needless error handling.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-a6a3zx3afbrxo8p2zqm5mxo8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index de4e68716626..b5c0847edfa9 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -75,12 +75,6 @@ void perf_session__set_id_hdr_size(struct perf_session *session); | |||
75 | void perf_session__remove_thread(struct perf_session *self, struct thread *th); | 75 | void perf_session__remove_thread(struct perf_session *self, struct thread *th); |
76 | 76 | ||
77 | static inline | 77 | static inline |
78 | struct machine *perf_session__find_host_machine(struct perf_session *self) | ||
79 | { | ||
80 | return &self->machines.host; | ||
81 | } | ||
82 | |||
83 | static inline | ||
84 | struct machine *perf_session__find_machine(struct perf_session *self, pid_t pid) | 78 | struct machine *perf_session__find_machine(struct perf_session *self, pid_t pid) |
85 | { | 79 | { |
86 | return machines__find(&self->machines, pid); | 80 | return machines__find(&self->machines, pid); |