diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-27 20:22:44 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-27 20:22:44 -0400 |
commit | cbf6968098f89d3216d074f06544b5032b344da4 (patch) | |
tree | 842750b609ec0ad6f246be03fc39f7614c98316f /tools/perf/util/session.h | |
parent | d28c62232e50eab202bcd3f19b5c7a25b8b900b6 (diff) |
perf machines: Make the machines class adopt the dsos__fprintf methods
Now those methods don't operate on a global list of dsos, but on lists
of machines, so make this clear by renaming the functions.
Cc: Avi Kivity <avi@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Zhang, Yanmin <yanmin_zhang@linux.intel.com>
LKML-Reference: <new-submission>
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 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 71252723a17d..61ca92e58ad4 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -127,4 +127,17 @@ void perf_session__process_machines(struct perf_session *self, | |||
127 | { | 127 | { |
128 | return machines__process(&self->machines, process, self); | 128 | return machines__process(&self->machines, process, self); |
129 | } | 129 | } |
130 | |||
131 | static inline | ||
132 | size_t perf_session__fprintf_dsos(struct perf_session *self, FILE *fp) | ||
133 | { | ||
134 | return machines__fprintf_dsos(&self->machines, fp); | ||
135 | } | ||
136 | |||
137 | static inline | ||
138 | size_t perf_session__fprintf_dsos_buildid(struct perf_session *self, FILE *fp, | ||
139 | bool with_hits) | ||
140 | { | ||
141 | return machines__fprintf_dsos_buildid(&self->machines, fp, with_hits); | ||
142 | } | ||
130 | #endif /* __PERF_SESSION_H */ | 143 | #endif /* __PERF_SESSION_H */ |