Lines Matching refs:tool
24 #include "tool.h"
100 struct perf_tool *tool,
183 session->tool, event->file_offset);
187 bool repipe, struct perf_tool *tool)
196 session->tool = tool;
257 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps &&
258 tool->ordered_events && !evlist__sample_id_all(session->evlist)) {
260 tool->ordered_events = false;
316 static int process_event_synth_attr_stub(struct perf_tool *tool __maybe_unused,
325 static int process_event_synth_event_update_stub(struct perf_tool *tool __maybe_unused,
337 static int process_event_sample_stub(struct perf_tool *tool __maybe_unused,
347 static int process_event_stub(struct perf_tool *tool __maybe_unused,
356 static int process_finished_round_stub(struct perf_tool *tool __maybe_unused,
364 static int process_finished_round(struct perf_tool *tool,
461 void perf_tool__fill_defaults(struct perf_tool *tool)
463 if (tool->sample == NULL)
464 tool->sample = process_event_sample_stub;
465 if (tool->mmap == NULL)
466 tool->mmap = process_event_stub;
467 if (tool->mmap2 == NULL)
468 tool->mmap2 = process_event_stub;
469 if (tool->comm == NULL)
470 tool->comm = process_event_stub;
471 if (tool->namespaces == NULL)
472 tool->namespaces = process_event_stub;
473 if (tool->cgroup == NULL)
474 tool->cgroup = process_event_stub;
475 if (tool->fork == NULL)
476 tool->fork = process_event_stub;
477 if (tool->exit == NULL)
478 tool->exit = process_event_stub;
479 if (tool->lost == NULL)
480 tool->lost = perf_event__process_lost;
481 if (tool->lost_samples == NULL)
482 tool->lost_samples = perf_event__process_lost_samples;
483 if (tool->aux == NULL)
484 tool->aux = perf_event__process_aux;
485 if (tool->itrace_start == NULL)
486 tool->itrace_start = perf_event__process_itrace_start;
487 if (tool->context_switch == NULL)
488 tool->context_switch = perf_event__process_switch;
489 if (tool->ksymbol == NULL)
490 tool->ksymbol = perf_event__process_ksymbol;
491 if (tool->bpf == NULL)
492 tool->bpf = perf_event__process_bpf;
493 if (tool->text_poke == NULL)
494 tool->text_poke = perf_event__process_text_poke;
495 if (tool->read == NULL)
496 tool->read = process_event_sample_stub;
497 if (tool->throttle == NULL)
498 tool->throttle = process_event_stub;
499 if (tool->unthrottle == NULL)
500 tool->unthrottle = process_event_stub;
501 if (tool->attr == NULL)
502 tool->attr = process_event_synth_attr_stub;
503 if (tool->event_update == NULL)
504 tool->event_update = process_event_synth_event_update_stub;
505 if (tool->tracing_data == NULL)
506 tool->tracing_data = process_event_synth_tracing_data_stub;
507 if (tool->build_id == NULL)
508 tool->build_id = process_event_op2_stub;
509 if (tool->finished_round == NULL) {
510 if (tool->ordered_events)
511 tool->finished_round = process_finished_round;
513 tool->finished_round = process_finished_round_stub;
515 if (tool->id_index == NULL)
516 tool->id_index = process_event_op2_stub;
517 if (tool->auxtrace_info == NULL)
518 tool->auxtrace_info = process_event_op2_stub;
519 if (tool->auxtrace == NULL)
520 tool->auxtrace = process_event_auxtrace_stub;
521 if (tool->auxtrace_error == NULL)
522 tool->auxtrace_error = process_event_op2_stub;
523 if (tool->thread_map == NULL)
524 tool->thread_map = process_event_thread_map_stub;
525 if (tool->cpu_map == NULL)
526 tool->cpu_map = process_event_cpu_map_stub;
527 if (tool->stat_config == NULL)
528 tool->stat_config = process_event_stat_config_stub;
529 if (tool->stat == NULL)
530 tool->stat = process_stat_stub;
531 if (tool->stat_round == NULL)
532 tool->stat_round = process_stat_round_stub;
533 if (tool->time_conv == NULL)
534 tool->time_conv = process_event_op2_stub;
535 if (tool->feature == NULL)
536 tool->feature = process_event_op2_stub;
537 if (tool->compressed == NULL)
538 tool->compressed = perf_session__process_compressed_event;
1040 static int process_finished_round(struct perf_tool *tool __maybe_unused,
1374 struct perf_tool *tool,
1402 return tool->sample(tool, event, sample, evsel, machine);
1406 struct perf_tool *tool,
1415 ret = deliver_sample_value(evlist, tool, event, sample,
1427 struct perf_tool *tool,
1439 return tool->sample(tool, event, sample, evsel, machine);
1443 return deliver_sample_group(evlist, tool, event, sample,
1446 return deliver_sample_value(evlist, tool, event, sample,
1454 struct perf_tool *tool, u64 file_offset)
1476 return perf_evlist__deliver_sample(evlist, tool, event, sample, evsel, machine);
1478 return tool->mmap(tool, event, sample, machine);
1482 return tool->mmap2(tool, event, sample, machine);
1484 return tool->comm(tool, event, sample, machine);
1486 return tool->namespaces(tool, event, sample, machine);
1488 return tool->cgroup(tool, event, sample, machine);
1490 return tool->fork(tool, event, sample, machine);
1492 return tool->exit(tool, event, sample, machine);
1494 if (tool->lost == perf_event__process_lost)
1496 return tool->lost(tool, event, sample, machine);
1498 if (tool->lost_samples == perf_event__process_lost_samples)
1500 return tool->lost_samples(tool, event, sample, machine);
1503 return tool->read(tool, event, sample, evsel, machine);
1505 return tool->throttle(tool, event, sample, machine);
1507 return tool->unthrottle(tool, event, sample, machine);
1509 if (tool->aux == perf_event__process_aux) {
1515 return tool->aux(tool, event, sample, machine);
1517 return tool->itrace_start(tool, event, sample, machine);
1520 return tool->context_switch(tool, event, sample, machine);
1522 return tool->ksymbol(tool, event, sample, machine);
1524 return tool->bpf(tool, event, sample, machine);
1526 return tool->text_poke(tool, event, sample, machine);
1535 struct perf_tool *tool,
1547 ret = auxtrace__process_event(session, event, &sample, tool);
1554 event, &sample, tool, file_offset);
1567 struct perf_tool *tool = session->tool;
1573 tool->compressed == perf_session__process_compressed_event_stub)
1579 err = tool->attr(tool, event, &session->evlist);
1586 return tool->event_update(tool, event, &session->evlist);
1601 return tool->tracing_data(session, event);
1603 return tool->build_id(session, event);
1605 return tool->finished_round(tool, event, oe);
1607 return tool->id_index(session, event);
1609 return tool->auxtrace_info(session, event);
1613 return tool->auxtrace(session, event);
1616 return tool->auxtrace_error(session, event);
1618 return tool->thread_map(session, event);
1620 return tool->cpu_map(session, event);
1622 return tool->stat_config(session, event);
1624 return tool->stat(session, event);
1626 return tool->stat_round(session, event);
1629 return tool->time_conv(session, event);
1631 return tool->feature(session, event);
1633 err = tool->compressed(session, event, file_offset);
1647 struct perf_tool *tool = session->tool;
1654 return machines__deliver_event(&session->machines, evlist, event, sample, tool, 0);
1754 struct perf_tool *tool = session->tool;
1768 if (tool->ordered_events) {
1780 return perf_session__deliver_event(session, event, tool, file_offset);
1845 if (session->tool->lost == perf_event__process_lost &&
1853 if (session->tool->lost_samples == perf_event__process_lost_samples) {
1865 if (session->tool->aux == perf_event__process_aux &&
1872 if (session->tool->aux == perf_event__process_aux &&
1891 "Is this an older tool processing a perf.data "
1892 "file generated by a more recent tool?\n\n"
1953 struct perf_tool *tool = session->tool;
1963 perf_tool__fill_defaults(tool);
2041 err = auxtrace__flush_events(session, tool);
2047 if (!tool->no_warn)
2283 struct perf_tool *tool = session->tool;
2287 perf_tool__fill_defaults(tool);
2301 err = auxtrace__flush_events(session, tool);
2307 if (!tool->no_warn)