aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h77
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
280void perf_event__print_totals(void); 280void perf_event__print_totals(void);
281 281
282struct perf_tool;
283struct perf_thread_map;
284struct perf_cpu_map; 282struct perf_cpu_map;
283struct perf_record_stat_config;
285struct perf_stat_config; 284struct perf_stat_config;
286struct perf_counts_values; 285struct perf_tool;
287
288typedef 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
293int 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);
297int 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);
301int 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);
305int 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);
309int perf_event__synthesize_kernel_mmap(struct perf_tool *tool,
310 perf_event__handler_t process,
311 struct machine *machine);
312int 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);
316void perf_event__read_stat_config(struct perf_stat_config *config, 287void perf_event__read_stat_config(struct perf_stat_config *config,
317 struct perf_record_stat_config *event); 288 struct perf_record_stat_config *event);
318int 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);
323int perf_event__synthesize_stat_round(struct perf_tool *tool,
324 u64 time, u64 type,
325 perf_event__handler_t process,
326 struct machine *machine);
327int perf_event__synthesize_modules(struct perf_tool *tool,
328 perf_event__handler_t process,
329 struct machine *machine);
330 289
331int perf_event__process_comm(struct perf_tool *tool, 290int 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);
383int perf_tool__process_synth_event(struct perf_tool *tool,
384 union perf_event *event,
385 struct machine *machine,
386 perf_event__handler_t process);
387int perf_event__process(struct perf_tool *tool, 342int 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
406const char *perf_event__name(unsigned int id); 361const char *perf_event__name(unsigned int id);
407 362
408size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type,
409 u64 read_format);
410int perf_event__synthesize_sample(union perf_event *event, u64 type,
411 u64 read_format,
412 const struct perf_sample *sample);
413
414pid_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
419int 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
425int 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
432int perf_event__synthesize_extra_kmaps(struct perf_tool *tool,
433 perf_event__handler_t process,
434 struct machine *machine);
435
436size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp); 363size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp);
437size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp); 364size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp);
438size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp); 365size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp);