diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 05:30:20 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:39:28 -0500 |
commit | 45694aa7702bc44d538a3bcb51bb2bb96cf190c0 (patch) | |
tree | 81bc1f449f55984556d89b63c461dcf181dc97e5 /tools/perf/util/header.h | |
parent | 743eb868657bdb1b26c7b24077ca21c67c82c777 (diff) |
perf tools: Rename perf_event_ops to perf_tool
To better reflect that it became the base class for all tools, that must
be in each tool struct and where common stuff will be put.
Cc: David Ahern <dsahern@gmail.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>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-qgpc4msetqlwr8y2k7537cxe@git.kernel.org
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.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index a604962fc431..09365b32098e 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -97,35 +97,35 @@ int build_id_cache__add_s(const char *sbuild_id, const char *debugdir, | |||
97 | const char *name, bool is_kallsyms); | 97 | const char *name, bool is_kallsyms); |
98 | int build_id_cache__remove_s(const char *sbuild_id, const char *debugdir); | 98 | int build_id_cache__remove_s(const char *sbuild_id, const char *debugdir); |
99 | 99 | ||
100 | int perf_event__synthesize_attr(struct perf_event_ops *ops, | 100 | int perf_event__synthesize_attr(struct perf_tool *tool, |
101 | struct perf_event_attr *attr, u16 ids, u64 *id, | 101 | struct perf_event_attr *attr, u16 ids, u64 *id, |
102 | perf_event__handler_t process); | 102 | perf_event__handler_t process); |
103 | int perf_event__synthesize_attrs(struct perf_event_ops *ops, | 103 | int perf_event__synthesize_attrs(struct perf_tool *tool, |
104 | struct perf_session *session, | 104 | struct perf_session *session, |
105 | perf_event__handler_t process); | 105 | perf_event__handler_t process); |
106 | int perf_event__process_attr(union perf_event *event, struct perf_evlist **pevlist); | 106 | int perf_event__process_attr(union perf_event *event, struct perf_evlist **pevlist); |
107 | 107 | ||
108 | int perf_event__synthesize_event_type(struct perf_event_ops *ops, | 108 | int perf_event__synthesize_event_type(struct perf_tool *tool, |
109 | u64 event_id, char *name, | 109 | u64 event_id, char *name, |
110 | perf_event__handler_t process, | 110 | perf_event__handler_t process, |
111 | struct machine *machine); | 111 | struct machine *machine); |
112 | int perf_event__synthesize_event_types(struct perf_event_ops *ops, | 112 | int perf_event__synthesize_event_types(struct perf_tool *tool, |
113 | perf_event__handler_t process, | 113 | perf_event__handler_t process, |
114 | struct machine *machine); | 114 | struct machine *machine); |
115 | int perf_event__process_event_type(struct perf_event_ops *ops, | 115 | int perf_event__process_event_type(struct perf_tool *tool, |
116 | union perf_event *event); | 116 | union perf_event *event); |
117 | 117 | ||
118 | int perf_event__synthesize_tracing_data(struct perf_event_ops *ops, | 118 | int perf_event__synthesize_tracing_data(struct perf_tool *tool, |
119 | int fd, struct perf_evlist *evlist, | 119 | int fd, struct perf_evlist *evlist, |
120 | perf_event__handler_t process); | 120 | perf_event__handler_t process); |
121 | int perf_event__process_tracing_data(union perf_event *event, | 121 | int perf_event__process_tracing_data(union perf_event *event, |
122 | struct perf_session *session); | 122 | struct perf_session *session); |
123 | 123 | ||
124 | int perf_event__synthesize_build_id(struct perf_event_ops *ops, | 124 | int perf_event__synthesize_build_id(struct perf_tool *tool, |
125 | struct dso *pos, u16 misc, | 125 | struct dso *pos, u16 misc, |
126 | perf_event__handler_t process, | 126 | perf_event__handler_t process, |
127 | struct machine *machine); | 127 | struct machine *machine); |
128 | int perf_event__process_build_id(struct perf_event_ops *ops, | 128 | int perf_event__process_build_id(struct perf_tool *tool, |
129 | union perf_event *event, | 129 | union perf_event *event, |
130 | struct perf_session *session); | 130 | struct perf_session *session); |
131 | 131 | ||