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/event.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/event.h')
-rw-r--r-- | tools/perf/util/event.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 1564877e8703..d8499e7cf641 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -141,47 +141,47 @@ union perf_event { | |||
141 | 141 | ||
142 | void perf_event__print_totals(void); | 142 | void perf_event__print_totals(void); |
143 | 143 | ||
144 | struct perf_event_ops; | 144 | struct perf_tool; |
145 | struct thread_map; | 145 | struct thread_map; |
146 | 146 | ||
147 | typedef int (*perf_event__handler_t)(struct perf_event_ops *ops, | 147 | typedef int (*perf_event__handler_t)(struct perf_tool *tool, |
148 | union perf_event *event, | 148 | union perf_event *event, |
149 | struct perf_sample *sample, | 149 | struct perf_sample *sample, |
150 | struct machine *machine); | 150 | struct machine *machine); |
151 | 151 | ||
152 | int perf_event__synthesize_thread_map(struct perf_event_ops *ops, | 152 | int perf_event__synthesize_thread_map(struct perf_tool *tool, |
153 | struct thread_map *threads, | 153 | struct thread_map *threads, |
154 | perf_event__handler_t process, | 154 | perf_event__handler_t process, |
155 | struct machine *machine); | 155 | struct machine *machine); |
156 | int perf_event__synthesize_threads(struct perf_event_ops *ops, | 156 | int perf_event__synthesize_threads(struct perf_tool *tool, |
157 | perf_event__handler_t process, | 157 | perf_event__handler_t process, |
158 | struct machine *machine); | 158 | struct machine *machine); |
159 | int perf_event__synthesize_kernel_mmap(struct perf_event_ops *ops, | 159 | int perf_event__synthesize_kernel_mmap(struct perf_tool *tool, |
160 | perf_event__handler_t process, | 160 | perf_event__handler_t process, |
161 | struct machine *machine, | 161 | struct machine *machine, |
162 | const char *symbol_name); | 162 | const char *symbol_name); |
163 | 163 | ||
164 | int perf_event__synthesize_modules(struct perf_event_ops *ops, | 164 | int perf_event__synthesize_modules(struct perf_tool *tool, |
165 | perf_event__handler_t process, | 165 | perf_event__handler_t process, |
166 | struct machine *machine); | 166 | struct machine *machine); |
167 | 167 | ||
168 | int perf_event__process_comm(struct perf_event_ops *ops, | 168 | int perf_event__process_comm(struct perf_tool *tool, |
169 | union perf_event *event, | 169 | union perf_event *event, |
170 | struct perf_sample *sample, | 170 | struct perf_sample *sample, |
171 | struct machine *machine); | 171 | struct machine *machine); |
172 | int perf_event__process_lost(struct perf_event_ops *ops, | 172 | int perf_event__process_lost(struct perf_tool *tool, |
173 | union perf_event *event, | 173 | union perf_event *event, |
174 | struct perf_sample *sample, | 174 | struct perf_sample *sample, |
175 | struct machine *machine); | 175 | struct machine *machine); |
176 | int perf_event__process_mmap(struct perf_event_ops *ops, | 176 | int perf_event__process_mmap(struct perf_tool *tool, |
177 | union perf_event *event, | 177 | union perf_event *event, |
178 | struct perf_sample *sample, | 178 | struct perf_sample *sample, |
179 | struct machine *machine); | 179 | struct machine *machine); |
180 | int perf_event__process_task(struct perf_event_ops *ops, | 180 | int perf_event__process_task(struct perf_tool *tool, |
181 | union perf_event *event, | 181 | union perf_event *event, |
182 | struct perf_sample *sample, | 182 | struct perf_sample *sample, |
183 | struct machine *machine); | 183 | struct machine *machine); |
184 | int perf_event__process(struct perf_event_ops *ops, | 184 | int perf_event__process(struct perf_tool *tool, |
185 | union perf_event *event, | 185 | union perf_event *event, |
186 | struct perf_sample *sample, | 186 | struct perf_sample *sample, |
187 | struct machine *machine); | 187 | struct machine *machine); |