Lines Matching refs:tool
111 struct perf_tool *tool) in perf_session__new() argument
150 if (tool && tool->ordering_requires_timestamps && in perf_session__new()
151 tool->ordered_samples && !perf_evlist__sample_id_all(self->evlist)) { in perf_session__new()
153 tool->ordered_samples = false; in perf_session__new()
201 static int process_event_synth_tracing_data_stub(struct perf_tool *tool in process_event_synth_tracing_data_stub()
212 static int process_event_synth_attr_stub(struct perf_tool *tool __maybe_unused, in process_event_synth_attr_stub()
221 static int process_event_sample_stub(struct perf_tool *tool __maybe_unused, in process_event_sample_stub()
231 static int process_event_stub(struct perf_tool *tool __maybe_unused, in process_event_stub()
240 static int process_finished_round_stub(struct perf_tool *tool __maybe_unused, in process_finished_round_stub()
249 static int process_finished_round(struct perf_tool *tool,
253 void perf_tool__fill_defaults(struct perf_tool *tool) in perf_tool__fill_defaults() argument
255 if (tool->sample == NULL) in perf_tool__fill_defaults()
256 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults()
257 if (tool->mmap == NULL) in perf_tool__fill_defaults()
258 tool->mmap = process_event_stub; in perf_tool__fill_defaults()
259 if (tool->mmap2 == NULL) in perf_tool__fill_defaults()
260 tool->mmap2 = process_event_stub; in perf_tool__fill_defaults()
261 if (tool->comm == NULL) in perf_tool__fill_defaults()
262 tool->comm = process_event_stub; in perf_tool__fill_defaults()
263 if (tool->fork == NULL) in perf_tool__fill_defaults()
264 tool->fork = process_event_stub; in perf_tool__fill_defaults()
265 if (tool->exit == NULL) in perf_tool__fill_defaults()
266 tool->exit = process_event_stub; in perf_tool__fill_defaults()
267 if (tool->lost == NULL) in perf_tool__fill_defaults()
268 tool->lost = perf_event__process_lost; in perf_tool__fill_defaults()
269 if (tool->read == NULL) in perf_tool__fill_defaults()
270 tool->read = process_event_sample_stub; in perf_tool__fill_defaults()
271 if (tool->throttle == NULL) in perf_tool__fill_defaults()
272 tool->throttle = process_event_stub; in perf_tool__fill_defaults()
273 if (tool->unthrottle == NULL) in perf_tool__fill_defaults()
274 tool->unthrottle = process_event_stub; in perf_tool__fill_defaults()
275 if (tool->attr == NULL) in perf_tool__fill_defaults()
276 tool->attr = process_event_synth_attr_stub; in perf_tool__fill_defaults()
277 if (tool->tracing_data == NULL) in perf_tool__fill_defaults()
278 tool->tracing_data = process_event_synth_tracing_data_stub; in perf_tool__fill_defaults()
279 if (tool->build_id == NULL) in perf_tool__fill_defaults()
280 tool->build_id = process_finished_round_stub; in perf_tool__fill_defaults()
281 if (tool->finished_round == NULL) { in perf_tool__fill_defaults()
282 if (tool->ordered_samples) in perf_tool__fill_defaults()
283 tool->finished_round = process_finished_round; in perf_tool__fill_defaults()
285 tool->finished_round = process_finished_round_stub; in perf_tool__fill_defaults()
516 struct perf_tool *tool,
520 struct perf_tool *tool) in flush_sample_queue() argument
532 if (!tool->ordered_samples || !limit) in flush_sample_queue()
546 ret = perf_session_deliver_event(s, iter->event, &sample, tool, in flush_sample_queue()
613 static int process_finished_round(struct perf_tool *tool, in process_finished_round() argument
617 int ret = flush_sample_queue(session, tool); in process_finished_round()
897 struct perf_tool *tool, in deliver_sample_value() argument
917 return tool->sample(tool, event, sample, sid->evsel, machine); in deliver_sample_value()
921 struct perf_tool *tool, in deliver_sample_group() argument
930 ret = deliver_sample_value(session, tool, event, sample, in deliver_sample_group()
942 struct perf_tool *tool, in perf_session__deliver_sample() argument
954 return tool->sample(tool, event, sample, evsel, machine); in perf_session__deliver_sample()
958 return deliver_sample_group(session, tool, event, sample, in perf_session__deliver_sample()
961 return deliver_sample_value(session, tool, event, sample, in perf_session__deliver_sample()
968 struct perf_tool *tool, in perf_session_deliver_event() argument
1008 return perf_session__deliver_sample(session, tool, event, in perf_session_deliver_event()
1011 return tool->mmap(tool, event, sample, machine); in perf_session_deliver_event()
1013 return tool->mmap2(tool, event, sample, machine); in perf_session_deliver_event()
1015 return tool->comm(tool, event, sample, machine); in perf_session_deliver_event()
1017 return tool->fork(tool, event, sample, machine); in perf_session_deliver_event()
1019 return tool->exit(tool, event, sample, machine); in perf_session_deliver_event()
1021 if (tool->lost == perf_event__process_lost) in perf_session_deliver_event()
1023 return tool->lost(tool, event, sample, machine); in perf_session_deliver_event()
1025 return tool->read(tool, event, sample, evsel, machine); in perf_session_deliver_event()
1027 return tool->throttle(tool, event, sample, machine); in perf_session_deliver_event()
1029 return tool->unthrottle(tool, event, sample, machine); in perf_session_deliver_event()
1037 struct perf_tool *tool, u64 file_offset) in perf_session__process_user_event() argument
1046 err = tool->attr(tool, event, &session->evlist); in perf_session__process_user_event()
1053 return tool->tracing_data(tool, event, session); in perf_session__process_user_event()
1055 return tool->build_id(tool, event, session); in perf_session__process_user_event()
1057 return tool->finished_round(tool, event, session); in perf_session__process_user_event()
1074 struct perf_tool *tool, in perf_session__process_event() argument
1089 return perf_session__process_user_event(session, event, tool, file_offset); in perf_session__process_event()
1098 if (tool->ordered_samples) { in perf_session__process_event()
1105 return perf_session_deliver_event(session, event, &sample, tool, in perf_session__process_event()
1134 const struct perf_tool *tool) in perf_session__warn_about_errors() argument
1136 if (tool->lost == perf_event__process_lost && in perf_session__warn_about_errors()
1176 struct perf_tool *tool) in __perf_session__process_pipe_events() argument
1186 perf_tool__fill_defaults(tool); in __perf_session__process_pipe_events()
1240 if ((skip = perf_session__process_event(self, event, tool, head)) < 0) { in __perf_session__process_pipe_events()
1258 perf_session__warn_about_errors(self, tool); in __perf_session__process_pipe_events()
1305 u64 file_size, struct perf_tool *tool) in __perf_session__process_events() argument
1314 perf_tool__fill_defaults(tool); in __perf_session__process_events()
1367 perf_session__process_event(session, event, tool, file_pos) < 0) { in __perf_session__process_events()
1393 err = flush_sample_queue(session, tool); in __perf_session__process_events()
1396 perf_session__warn_about_errors(session, tool); in __perf_session__process_events()
1402 struct perf_tool *tool) in perf_session__process_events() argument
1413 self->size, tool); in perf_session__process_events()
1415 err = __perf_session__process_pipe_events(self, tool); in perf_session__process_events()