diff options
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 77 |
1 files changed, 2 insertions, 75 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 47ad81d47b1a..a0a0c91cde4a 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -279,54 +279,13 @@ enum { | |||
279 | 279 | ||
280 | void perf_event__print_totals(void); | 280 | void perf_event__print_totals(void); |
281 | 281 | ||
282 | struct perf_tool; | ||
283 | struct perf_thread_map; | ||
284 | struct perf_cpu_map; | 282 | struct perf_cpu_map; |
283 | struct perf_record_stat_config; | ||
285 | struct perf_stat_config; | 284 | struct perf_stat_config; |
286 | struct perf_counts_values; | 285 | struct perf_tool; |
287 | |||
288 | typedef int (*perf_event__handler_t)(struct perf_tool *tool, | ||
289 | union perf_event *event, | ||
290 | struct perf_sample *sample, | ||
291 | struct machine *machine); | ||
292 | 286 | ||
293 | int perf_event__synthesize_thread_map(struct perf_tool *tool, | ||
294 | struct perf_thread_map *threads, | ||
295 | perf_event__handler_t process, | ||
296 | struct machine *machine, bool mmap_data); | ||
297 | int perf_event__synthesize_thread_map2(struct perf_tool *tool, | ||
298 | struct perf_thread_map *threads, | ||
299 | perf_event__handler_t process, | ||
300 | struct machine *machine); | ||
301 | int perf_event__synthesize_cpu_map(struct perf_tool *tool, | ||
302 | struct perf_cpu_map *cpus, | ||
303 | perf_event__handler_t process, | ||
304 | struct machine *machine); | ||
305 | int perf_event__synthesize_threads(struct perf_tool *tool, | ||
306 | perf_event__handler_t process, | ||
307 | struct machine *machine, bool mmap_data, | ||
308 | unsigned int nr_threads_synthesize); | ||
309 | int perf_event__synthesize_kernel_mmap(struct perf_tool *tool, | ||
310 | perf_event__handler_t process, | ||
311 | struct machine *machine); | ||
312 | int perf_event__synthesize_stat_config(struct perf_tool *tool, | ||
313 | struct perf_stat_config *config, | ||
314 | perf_event__handler_t process, | ||
315 | struct machine *machine); | ||
316 | void perf_event__read_stat_config(struct perf_stat_config *config, | 287 | void perf_event__read_stat_config(struct perf_stat_config *config, |
317 | struct perf_record_stat_config *event); | 288 | struct perf_record_stat_config *event); |
318 | int perf_event__synthesize_stat(struct perf_tool *tool, | ||
319 | u32 cpu, u32 thread, u64 id, | ||
320 | struct perf_counts_values *count, | ||
321 | perf_event__handler_t process, | ||
322 | struct machine *machine); | ||
323 | int perf_event__synthesize_stat_round(struct perf_tool *tool, | ||
324 | u64 time, u64 type, | ||
325 | perf_event__handler_t process, | ||
326 | struct machine *machine); | ||
327 | int perf_event__synthesize_modules(struct perf_tool *tool, | ||
328 | perf_event__handler_t process, | ||
329 | struct machine *machine); | ||
330 | 289 | ||
331 | int perf_event__process_comm(struct perf_tool *tool, | 290 | int perf_event__process_comm(struct perf_tool *tool, |
332 | union perf_event *event, | 291 | union perf_event *event, |
@@ -380,10 +339,6 @@ int perf_event__process_bpf(struct perf_tool *tool, | |||
380 | union perf_event *event, | 339 | union perf_event *event, |
381 | struct perf_sample *sample, | 340 | struct perf_sample *sample, |
382 | struct machine *machine); | 341 | struct machine *machine); |
383 | int perf_tool__process_synth_event(struct perf_tool *tool, | ||
384 | union perf_event *event, | ||
385 | struct machine *machine, | ||
386 | perf_event__handler_t process); | ||
387 | int perf_event__process(struct perf_tool *tool, | 342 | int perf_event__process(struct perf_tool *tool, |
388 | union perf_event *event, | 343 | union perf_event *event, |
389 | struct perf_sample *sample, | 344 | struct perf_sample *sample, |
@@ -405,34 +360,6 @@ void thread__resolve(struct thread *thread, struct addr_location *al, | |||
405 | 360 | ||
406 | const char *perf_event__name(unsigned int id); | 361 | const char *perf_event__name(unsigned int id); |
407 | 362 | ||
408 | size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type, | ||
409 | u64 read_format); | ||
410 | int perf_event__synthesize_sample(union perf_event *event, u64 type, | ||
411 | u64 read_format, | ||
412 | const struct perf_sample *sample); | ||
413 | |||
414 | pid_t perf_event__synthesize_comm(struct perf_tool *tool, | ||
415 | union perf_event *event, pid_t pid, | ||
416 | perf_event__handler_t process, | ||
417 | struct machine *machine); | ||
418 | |||
419 | int perf_event__synthesize_namespaces(struct perf_tool *tool, | ||
420 | union perf_event *event, | ||
421 | pid_t pid, pid_t tgid, | ||
422 | perf_event__handler_t process, | ||
423 | struct machine *machine); | ||
424 | |||
425 | int perf_event__synthesize_mmap_events(struct perf_tool *tool, | ||
426 | union perf_event *event, | ||
427 | pid_t pid, pid_t tgid, | ||
428 | perf_event__handler_t process, | ||
429 | struct machine *machine, | ||
430 | bool mmap_data); | ||
431 | |||
432 | int perf_event__synthesize_extra_kmaps(struct perf_tool *tool, | ||
433 | perf_event__handler_t process, | ||
434 | struct machine *machine); | ||
435 | |||
436 | size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp); | 363 | size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp); |
437 | size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp); | 364 | size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp); |
438 | size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp); | 365 | size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp); |