Lines Matching refs:evsel
106 struct perf_evsel *evsel,
112 struct perf_evsel *evsel, in perf_event__repipe_sample() argument
115 if (evsel->handler.func) { in perf_event__repipe_sample()
116 inject_handler f = evsel->handler.func; in perf_event__repipe_sample()
117 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
120 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
203 struct perf_evsel *evsel __maybe_unused, in perf_event__inject_buildid()
249 struct perf_evsel *evsel __maybe_unused, in perf_inject__sched_process_exit()
269 struct perf_evsel *evsel, in perf_inject__sched_switch() argument
275 perf_inject__sched_process_exit(tool, event, sample, evsel, machine); in perf_inject__sched_switch()
293 struct perf_evsel *evsel, in perf_inject__sched_stat() argument
300 u32 pid = perf_evsel__intval(evsel, sample, "pid"); in perf_inject__sched_stat()
310 perf_evsel__parse_sample(evsel, event_sw, &sample_sw); in perf_inject__sched_stat()
314 perf_event__synthesize_sample(event_sw, evsel->attr.sample_type, in perf_inject__sched_stat()
316 build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine); in perf_inject__sched_stat()
327 static int perf_evsel__check_stype(struct perf_evsel *evsel, in perf_evsel__check_stype() argument
330 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__check_stype()
331 const char *name = perf_evsel__name(evsel); in perf_evsel__check_stype()
362 struct perf_evsel *evsel; in __cmd_inject() local
366 list_for_each_entry(evsel, &session->evlist->entries, node) { in __cmd_inject()
367 const char *name = perf_evsel__name(evsel); in __cmd_inject()
370 if (perf_evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID")) in __cmd_inject()
373 evsel->handler.func = perf_inject__sched_switch; in __cmd_inject()
375 evsel->handler.func = perf_inject__sched_process_exit; in __cmd_inject()
377 evsel->handler.func = perf_inject__sched_stat; in __cmd_inject()