Lines Matching defs:tool

8 #include "tool.h"
16 static int perf_session__process_compressed_event(const struct perf_tool *tool __maybe_unused,
132 static int process_event_synth_tracing_data_stub(const struct perf_tool *tool __maybe_unused,
140 static int process_event_synth_attr_stub(const struct perf_tool *tool __maybe_unused,
148 static int process_event_synth_event_update_stub(const struct perf_tool *tool __maybe_unused,
159 int process_event_sample_stub(const struct perf_tool *tool __maybe_unused,
168 static int process_event_stub(const struct perf_tool *tool __maybe_unused,
177 static int process_finished_round_stub(const struct perf_tool *tool __maybe_unused,
200 static s64 process_event_auxtrace_stub(const struct perf_tool *tool __maybe_unused,
210 static int process_event_op2_stub(const struct perf_tool *tool __maybe_unused,
220 int process_event_thread_map_stub(const struct perf_tool *tool __maybe_unused,
232 int process_event_cpu_map_stub(const struct perf_tool *tool __maybe_unused,
244 int process_event_stat_config_stub(const struct perf_tool *tool __maybe_unused,
255 static int process_stat_stub(const struct perf_tool *tool __maybe_unused,
266 static int process_stat_round_stub(const struct perf_tool *tool __maybe_unused,
277 static int process_event_time_conv_stub(const struct perf_tool *tool __maybe_unused,
288 static int perf_session__process_compressed_event_stub(const struct perf_tool *tool __maybe_unused,
298 static int perf_event__process_bpf_metadata_stub(const struct perf_tool *tool __maybe_unused,
307 static int process_schedstat_cpu_stub(const struct perf_tool *tool __maybe_unused,
317 static int process_schedstat_domain_stub(const struct perf_tool *tool __maybe_unused,
327 void perf_tool__init(struct perf_tool *tool, bool ordered_events)
329 tool->ordered_events = ordered_events;
330 tool->ordering_requires_timestamps = false;
331 tool->namespace_events = false;
332 tool->cgroup_events = false;
333 tool->no_warn = false;
334 tool->show_feat_hdr = SHOW_FEAT_NO_HEADER;
335 tool->merge_deferred_callchains = true;
336 tool->dont_split_sample_group = false;
338 tool->sample = process_event_sample_stub;
339 tool->mmap = process_event_stub;
340 tool->mmap2 = process_event_stub;
341 tool->comm = process_event_stub;
342 tool->namespaces = process_event_stub;
343 tool->cgroup = process_event_stub;
344 tool->fork = process_event_stub;
345 tool->exit = process_event_stub;
346 tool->lost = perf_event__process_lost;
347 tool->lost_samples = perf_event__process_lost_samples;
348 tool->aux = perf_event__process_aux;
349 tool->itrace_start = perf_event__process_itrace_start;
350 tool->context_switch = perf_event__process_switch;
351 tool->ksymbol = perf_event__process_ksymbol;
352 tool->bpf = perf_event__process_bpf;
353 tool->text_poke = perf_event__process_text_poke;
354 tool->aux_output_hw_id = perf_event__process_aux_output_hw_id;
355 tool->read = process_event_sample_stub;
356 tool->throttle = process_event_stub;
357 tool->unthrottle = process_event_stub;
358 tool->callchain_deferred = process_event_sample_stub;
359 tool->attr = process_event_synth_attr_stub;
360 tool->event_update = process_event_synth_event_update_stub;
361 tool->tracing_data = process_event_synth_tracing_data_stub;
362 tool->build_id = process_event_op2_stub;
365 tool->finished_round = perf_event__process_finished_round;
367 tool->finished_round = process_finished_round_stub;
369 tool->id_index = process_event_op2_stub;
370 tool->auxtrace_info = process_event_op2_stub;
371 tool->auxtrace = process_event_auxtrace_stub;
372 tool->auxtrace_error = process_event_op2_stub;
373 tool->thread_map = process_event_thread_map_stub;
374 tool->cpu_map = process_event_cpu_map_stub;
375 tool->stat_config = process_event_stat_config_stub;
376 tool->stat = process_stat_stub;
377 tool->stat_round = process_stat_round_stub;
378 tool->time_conv = process_event_time_conv_stub;
379 tool->feature = process_event_op2_stub;
381 tool->compressed = perf_session__process_compressed_event;
383 tool->compressed = perf_session__process_compressed_event_stub;
385 tool->finished_init = process_event_op2_stub;
386 tool->bpf_metadata = perf_event__process_bpf_metadata_stub;
387 tool->schedstat_cpu = process_schedstat_cpu_stub;
388 tool->schedstat_domain = process_schedstat_domain_stub;
391 bool perf_tool__compressed_is_stub(const struct perf_tool *tool)
393 return tool->compressed == perf_session__process_compressed_event_stub;
397 static int delegate_ ## name(const struct perf_tool *tool, \
402 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
411 static int delegate_ ## name(const struct perf_tool *tool, \
415 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
423 static int delegate_ ## name(const struct perf_tool *tool, \
427 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
434 static int delegate_ ## name(const struct perf_tool *tool, \
439 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
463 static int delegate_ ## name(const struct perf_tool *tool, \
467 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
489 static s64 delegate_ ## name(const struct perf_tool *tool, \
493 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
500 static int delegate_ ## name(const struct perf_tool *tool, \
506 struct delegate_tool *del_tool = container_of(tool, struct delegate_tool, tool); \
512 void delegate_tool__init(struct delegate_tool *tool, struct perf_tool *delegate)
514 tool->delegate = delegate;
516 tool->tool.ordered_events = delegate->ordered_events;
517 tool->tool.ordering_requires_timestamps = delegate->ordering_requires_timestamps;
518 tool->tool.namespace_events = delegate->namespace_events;
519 tool->tool.cgroup_events = delegate->cgroup_events;
520 tool->tool.no_warn = delegate->no_warn;
521 tool->tool.show_feat_hdr = delegate->show_feat_hdr;
522 tool->tool.merge_deferred_callchains = delegate->merge_deferred_callchains;
523 tool->tool.dont_split_sample_group = delegate->dont_split_sample_group;
525 tool->tool.sample = delegate_sample;
526 tool->tool.read = delegate_read;
528 tool->tool.mmap = delegate_mmap;
529 tool->tool.mmap2 = delegate_mmap2;
530 tool->tool.comm = delegate_comm;
531 tool->tool.namespaces = delegate_namespaces;
532 tool->tool.cgroup = delegate_cgroup;
533 tool->tool.fork = delegate_fork;
534 tool->tool.exit = delegate_exit;
535 tool->tool.lost = delegate_lost;
536 tool->tool.lost_samples = delegate_lost_samples;
537 tool->tool.aux = delegate_aux;
538 tool->tool.itrace_start = delegate_itrace_start;
539 tool->tool.aux_output_hw_id = delegate_aux_output_hw_id;
540 tool->tool.context_switch = delegate_context_switch;
541 tool->tool.throttle = delegate_throttle;
542 tool->tool.unthrottle = delegate_unthrottle;
543 tool->tool.ksymbol = delegate_ksymbol;
544 tool->tool.bpf = delegate_bpf;
545 tool->tool.text_poke = delegate_text_poke;
546 tool->tool.callchain_deferred = delegate_callchain_deferred;
548 tool->tool.attr = delegate_attr;
549 tool->tool.event_update = delegate_event_update;
551 tool->tool.tracing_data = delegate_tracing_data;
553 tool->tool.finished_round = delegate_finished_round;
555 tool->tool.build_id = delegate_build_id;
556 tool->tool.id_index = delegate_id_index;
557 tool->tool.auxtrace_info = delegate_auxtrace_info;
558 tool->tool.auxtrace_error = delegate_auxtrace_error;
559 tool->tool.time_conv = delegate_time_conv;
560 tool->tool.thread_map = delegate_thread_map;
561 tool->tool.cpu_map = delegate_cpu_map;
562 tool->tool.stat_config = delegate_stat_config;
563 tool->tool.stat = delegate_stat;
564 tool->tool.stat_round = delegate_stat_round;
565 tool->tool.feature = delegate_feature;
566 tool->tool.finished_init = delegate_finished_init;
567 tool->tool.bpf_metadata = delegate_bpf_metadata;
568 tool->tool.compressed = delegate_compressed;
569 tool->tool.auxtrace = delegate_auxtrace;
570 tool->tool.schedstat_cpu = delegate_schedstat_cpu;
571 tool->tool.schedstat_domain = delegate_schedstat_domain;