Lines Matching defs:evsel
15 #include "util/evsel.h"
347 struct evsel *evsel,
353 struct evsel *evsel,
359 if (evsel && evsel->handler) {
360 inject_handler f = evsel->handler;
361 return f(tool, event, sample, evsel, machine);
364 build_id__mark_dso_hit(tool, event, sample, evsel, machine);
749 struct evsel *evsel __maybe_unused,
783 struct evsel *evsel __maybe_unused,
803 struct evsel *evsel,
809 perf_inject__sched_process_exit(tool, event, sample, evsel, machine);
828 struct evsel *evsel,
835 u32 pid = evsel__intval(evsel, sample, "pid");
845 evsel__parse_sample(evsel, event_sw, &sample_sw);
849 perf_event__synthesize_sample(event_sw, evsel->core.attr.sample_type,
850 evsel->core.attr.read_format, &sample_sw);
851 build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine);
975 struct evsel *evsel;
978 evlist__for_each_entry(evlist, evsel) {
981 for (j = 0; j < evsel->core.ids; j++) {
982 u64 id = evsel->core.id[j];
995 struct evsel *evsel;
998 evlist__for_each_entry(evlist, evsel) {
1001 for (j = 0; j < evsel->core.ids; j++) {
1006 id = evsel->core.id[j];
1045 static int guest_session__add_attr(struct guest_session *gs, struct evsel *evsel)
1048 struct perf_event_attr attr = evsel->core.attr;
1054 id_array = calloc(evsel->core.ids, sizeof(*id_array));
1058 vcpu_array = calloc(evsel->core.ids, sizeof(*vcpu_array));
1062 for (i = 0; i < evsel->core.ids; i++) {
1063 u64 id = evsel->core.id[i];
1079 ret = perf_event__synthesize_attr(&inject->tool, &attr, evsel->core.ids,
1084 for (i = 0; i < evsel->core.ids; i++) {
1104 struct evsel *evsel;
1107 evlist__for_each_entry(evlist, evsel) {
1108 ret = guest_session__add_attr(gs, evsel);
1155 struct evsel *evsel;
1157 evlist__for_each_entry(evlist, evsel) {
1158 if (evsel->core.ids)
1159 return evsel->core.id[0];
1433 struct evsel *evsel;
1437 evsel = evlist__id2evsel(evlist, sample->id);
1440 if (!evsel) {
1441 pr_err("No evsel for id %"PRIu64"\n", sample->id);
1446 ret = perf_event__synthesize_id_sample(array, evsel->core.attr.sample_type, sample);
1506 struct evsel *evsel = evlist__id2evsel(gs->session->evlist, id);
1508 id_hdr_size = evsel__id_hdr_size(evsel);
1704 static int evsel__check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg)
1706 struct perf_event_attr *attr = &evsel->core.attr;
1707 const char *name = evsel__name(evsel);
1721 struct evsel *evsel __maybe_unused,
1730 struct evsel *evsel;
1734 evlist__for_each_entry(evlist, evsel)
1735 evsel->handler = drop_sample;
2001 struct evsel *evsel;
2003 evlist__for_each_entry(session->evlist, evsel) {
2004 const char *name = evsel__name(evsel);
2007 if (evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID"))
2010 evsel->handler = perf_inject__sched_switch;
2012 evsel->handler = perf_inject__sched_process_exit;
2015 evsel->handler = perf_inject__sched_stat;