Lines Matching defs:evsel
24 #include "evsel.h"
68 struct evsel *switch_evsel;
130 struct evsel *pebs_evsel;
176 struct evsel *evsel;
1035 struct evsel *evsel;
1037 evlist__for_each_entry(pt->session->evlist, evsel) {
1038 if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
1039 !evsel->core.attr.exclude_kernel)
1047 struct evsel *evsel;
1053 evlist__for_each_entry(pt->session->evlist, evsel) {
1054 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
1063 struct evsel *evsel;
1066 evlist__for_each_entry(pt->session->evlist, evsel) {
1067 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
1077 struct evsel *evsel;
1080 evlist__for_each_entry(pt->session->evlist, evsel) {
1081 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
1090 struct evsel *evsel;
1100 evlist__for_each_entry(pt->session->evlist, evsel) {
1101 if (intel_pt_get_config(pt, &evsel->core.attr, &config))
1109 struct evsel *evsel;
1116 evlist__for_each_entry(pt->session->evlist, evsel) {
1117 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
1119 if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
1131 struct evsel *evsel;
1133 evlist__for_each_entry(pt->session->evlist, evsel) {
1134 if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
1135 !evsel->core.attr.exclude_kernel)
1143 struct evsel *evsel;
1150 evlist__for_each_entry(pt->session->evlist, evsel) {
1151 if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
1163 struct evsel *evsel;
1166 evlist__for_each_entry(pt->session->evlist, evsel) {
1167 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
1176 struct evsel *evsel;
1178 evlist__for_each_entry(pt->session->evlist, evsel) {
1179 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) &&
1180 evsel->core.attr.aux_sample_size)
1188 struct evsel *evsel;
1191 evlist__for_each_entry(pt->session->evlist, evsel) {
1192 if (intel_pt_get_config(pt, &evsel->core.attr, &config))
1219 struct evsel *evsel;
1221 evlist__for_each_entry(pt->session->evlist, evsel) {
1222 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN))
1223 evsel->synth_sample_type |= PERF_SAMPLE_CALLCHAIN;
1257 struct evsel *evsel;
1259 evlist__for_each_entry(pt->session->evlist, evsel) {
1260 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK))
1261 evsel->synth_sample_type |= PERF_SAMPLE_BRANCH_STACK;
2233 static int intel_pt_do_synth_pebs_sample(struct intel_pt_queue *ptq, struct evsel *evsel, u64 id)
2239 u64 sample_type = evsel->core.attr.sample_type;
2251 if (!evsel->core.attr.freq)
2252 sample.period = evsel->core.attr.sample_period;
2290 u64 regs_mask = evsel->core.attr.sample_regs_intr;
2368 struct evsel *evsel = pt->pebs_evsel;
2369 u64 id = evsel->core.id[0];
2371 return intel_pt_do_synth_pebs_sample(ptq, evsel, id);
2390 if (!pe->evsel) {
2396 err = intel_pt_do_synth_pebs_sample(ptq, pe->evsel, pe->id);
3216 struct evsel *evsel = evlist__id2evsel(pt->session->evlist, sample->id);
3218 if (evsel != pt->switch_evsel)
3221 tid = evsel__intval(evsel, sample, "next_pid");
3363 struct evsel *evsel;
3366 evsel = evlist__id2evsel_strict(pt->session->evlist, sample->id);
3367 if (!queue || !queue->priv || !evsel || hw_id > INTEL_PT_MAX_PEBS) {
3374 ptq->pebs[hw_id].evsel = evsel;
3591 struct evsel *evsel)
3596 return evsel->core.attr.type == pt->pmu_type;
3701 struct evsel *evsel;
3703 evlist__for_each_entry(evlist, evsel) {
3704 if (evsel->core.id && evsel->core.id[0] == id) {
3705 if (evsel->name)
3706 zfree(&evsel->name);
3707 evsel->name = strdup(name);
3713 static struct evsel *intel_pt_evsel(struct intel_pt *pt,
3716 struct evsel *evsel;
3718 evlist__for_each_entry(evlist, evsel) {
3719 if (evsel->core.attr.type == pt->pmu_type && evsel->core.ids)
3720 return evsel;
3730 struct evsel *evsel = intel_pt_evsel(pt, evlist);
3735 if (!evsel) {
3743 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
3752 attr.exclude_user = evsel->core.attr.exclude_user;
3753 attr.exclude_kernel = evsel->core.attr.exclude_kernel;
3754 attr.exclude_hv = evsel->core.attr.exclude_hv;
3755 attr.exclude_host = evsel->core.attr.exclude_host;
3756 attr.exclude_guest = evsel->core.attr.exclude_guest;
3757 attr.sample_id_all = evsel->core.attr.sample_id_all;
3758 attr.read_format = evsel->core.attr.read_format;
3760 id = evsel->core.id[0] + 1000000000;
3873 if (pt->synth_opts.pwr_events && (evsel->core.attr.config & INTEL_PT_CFG_PWR_EVT_EN)) {
3907 if (pt->synth_opts.intr_events && (evsel->core.attr.config & INTEL_PT_CFG_EVT_EN)) {
3934 struct evsel *evsel;
3939 evlist__for_each_entry(pt->session->evlist, evsel) {
3940 if (evsel->core.attr.aux_output && evsel->core.id) {
3947 pt->pebs_evsel = evsel;
3952 static struct evsel *intel_pt_find_sched_switch(struct evlist *evlist)
3954 struct evsel *evsel;
3956 evlist__for_each_entry_reverse(evlist, evsel) {
3957 const char *name = evsel__name(evsel);
3960 return evsel;
3968 struct evsel *evsel;
3970 evlist__for_each_entry(evlist, evsel) {
3971 if (evsel->core.attr.context_switch)