Lines Matching defs:evsel
23 #include "evsel.h"
61 struct evsel *switch_evsel;
113 struct evsel *pebs_evsel;
774 struct evsel *evsel;
776 evlist__for_each_entry(pt->session->evlist, evsel) {
777 if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
778 !evsel->core.attr.exclude_kernel)
786 struct evsel *evsel;
792 evlist__for_each_entry(pt->session->evlist, evsel) {
793 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
802 struct evsel *evsel;
805 evlist__for_each_entry(pt->session->evlist, evsel) {
806 if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
815 struct evsel *evsel;
825 evlist__for_each_entry(pt->session->evlist, evsel) {
826 if (intel_pt_get_config(pt, &evsel->core.attr, &config))
834 struct evsel *evsel;
841 evlist__for_each_entry(pt->session->evlist, evsel) {
842 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
844 if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
856 struct evsel *evsel;
858 evlist__for_each_entry(pt->session->evlist, evsel) {
859 if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
860 !evsel->core.attr.exclude_kernel)
868 struct evsel *evsel;
875 evlist__for_each_entry(pt->session->evlist, evsel) {
876 if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
888 struct evsel *evsel;
890 evlist__for_each_entry(pt->session->evlist, evsel) {
891 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) &&
892 evsel->core.attr.aux_sample_size)
900 struct evsel *evsel;
903 evlist__for_each_entry(pt->session->evlist, evsel) {
904 if (intel_pt_get_config(pt, &evsel->core.attr, &config))
931 struct evsel *evsel;
933 evlist__for_each_entry(pt->session->evlist, evsel) {
934 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN))
935 evsel->synth_sample_type |= PERF_SAMPLE_CALLCHAIN;
969 struct evsel *evsel;
971 evlist__for_each_entry(pt->session->evlist, evsel) {
972 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK))
973 evsel->synth_sample_type |= PERF_SAMPLE_BRANCH_STACK;
1787 struct evsel *evsel = pt->pebs_evsel;
1788 u64 sample_type = evsel->core.attr.sample_type;
1789 u64 id = evsel->core.id[0];
1801 if (!evsel->core.attr.freq)
1802 sample.period = evsel->core.attr.sample_period;
1843 u64 regs_mask = evsel->core.attr.sample_regs_intr;
2536 struct evsel *evsel;
2540 evsel = perf_evlist__id2evsel(pt->session->evlist, sample->id);
2541 if (evsel != pt->switch_evsel)
2544 tid = evsel__intval(evsel, sample, "next_pid");
2844 struct evsel *evsel)
2849 return evsel->core.attr.type == pt->pmu_type;
2954 struct evsel *evsel;
2956 evlist__for_each_entry(evlist, evsel) {
2957 if (evsel->core.id && evsel->core.id[0] == id) {
2958 if (evsel->name)
2959 zfree(&evsel->name);
2960 evsel->name = strdup(name);
2966 static struct evsel *intel_pt_evsel(struct intel_pt *pt,
2969 struct evsel *evsel;
2971 evlist__for_each_entry(evlist, evsel) {
2972 if (evsel->core.attr.type == pt->pmu_type && evsel->core.ids)
2973 return evsel;
2983 struct evsel *evsel = intel_pt_evsel(pt, evlist);
2988 if (!evsel) {
2996 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
3005 attr.exclude_user = evsel->core.attr.exclude_user;
3006 attr.exclude_kernel = evsel->core.attr.exclude_kernel;
3007 attr.exclude_hv = evsel->core.attr.exclude_hv;
3008 attr.exclude_host = evsel->core.attr.exclude_host;
3009 attr.exclude_guest = evsel->core.attr.exclude_guest;
3010 attr.sample_id_all = evsel->core.attr.sample_id_all;
3011 attr.read_format = evsel->core.attr.read_format;
3013 id = evsel->core.id[0] + 1000000000;
3102 if (pt->synth_opts.pwr_events && (evsel->core.attr.config & 0x10)) {
3141 struct evsel *evsel;
3146 evlist__for_each_entry(pt->session->evlist, evsel) {
3147 if (evsel->core.attr.aux_output && evsel->core.id) {
3149 pt->pebs_evsel = evsel;
3155 static struct evsel *intel_pt_find_sched_switch(struct evlist *evlist)
3157 struct evsel *evsel;
3159 evlist__for_each_entry_reverse(evlist, evsel) {
3160 const char *name = evsel__name(evsel);
3163 return evsel;
3171 struct evsel *evsel;
3173 evlist__for_each_entry(evlist, evsel) {
3174 if (evsel->core.attr.context_switch)