aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-11-28 05:30:20 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-11-28 07:39:28 -0500
commit45694aa7702bc44d538a3bcb51bb2bb96cf190c0 (patch)
tree81bc1f449f55984556d89b63c461dcf181dc97e5 /tools/perf/util/event.h
parent743eb868657bdb1b26c7b24077ca21c67c82c777 (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.h22
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
142void perf_event__print_totals(void); 142void perf_event__print_totals(void);
143 143
144struct perf_event_ops; 144struct perf_tool;
145struct thread_map; 145struct thread_map;
146 146
147typedef int (*perf_event__handler_t)(struct perf_event_ops *ops, 147typedef 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
152int perf_event__synthesize_thread_map(struct perf_event_ops *ops, 152int 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);
156int perf_event__synthesize_threads(struct perf_event_ops *ops, 156int 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);
159int perf_event__synthesize_kernel_mmap(struct perf_event_ops *ops, 159int 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
164int perf_event__synthesize_modules(struct perf_event_ops *ops, 164int 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
168int perf_event__process_comm(struct perf_event_ops *ops, 168int 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);
172int perf_event__process_lost(struct perf_event_ops *ops, 172int 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);
176int perf_event__process_mmap(struct perf_event_ops *ops, 176int 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);
180int perf_event__process_task(struct perf_event_ops *ops, 180int 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);
184int perf_event__process(struct perf_event_ops *ops, 184int 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);