• Home
  • Raw
  • Download

Lines Matching refs:tool

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