Lines Matching refs:evsel
555 struct perf_evsel *evsel; in intel_pt_exclude_kernel() local
557 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_exclude_kernel()
558 if (intel_pt_get_config(pt, &evsel->attr, NULL) && in intel_pt_exclude_kernel()
559 !evsel->attr.exclude_kernel) in intel_pt_exclude_kernel()
567 struct perf_evsel *evsel; in intel_pt_return_compression() local
573 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_return_compression()
574 if (intel_pt_get_config(pt, &evsel->attr, &config) && in intel_pt_return_compression()
583 struct perf_evsel *evsel; in intel_pt_mtc_period() local
593 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_mtc_period()
594 if (intel_pt_get_config(pt, &evsel->attr, &config)) in intel_pt_mtc_period()
602 struct perf_evsel *evsel; in intel_pt_timeless_decoding() local
609 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_timeless_decoding()
610 if (!(evsel->attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
612 if (intel_pt_get_config(pt, &evsel->attr, &config)) { in intel_pt_timeless_decoding()
624 struct perf_evsel *evsel; in intel_pt_tracing_kernel() local
626 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_tracing_kernel()
627 if (intel_pt_get_config(pt, &evsel->attr, NULL) && in intel_pt_tracing_kernel()
628 !evsel->attr.exclude_kernel) in intel_pt_tracing_kernel()
636 struct perf_evsel *evsel; in intel_pt_have_tsc() local
643 evlist__for_each(pt->session->evlist, evsel) { in intel_pt_have_tsc()
644 if (intel_pt_get_config(pt, &evsel->attr, &config)) { in intel_pt_have_tsc()
1557 struct perf_evsel *evsel; in intel_pt_process_switch() local
1561 evsel = perf_evlist__id2evsel(pt->session->evlist, sample->id); in intel_pt_process_switch()
1562 if (evsel != pt->switch_evsel) in intel_pt_process_switch()
1565 tid = perf_evsel__intval(evsel, sample, "next_pid"); in intel_pt_process_switch()
1826 struct perf_evsel *evsel; in intel_pt_synth_events() local
1832 evlist__for_each(evlist, evsel) { in intel_pt_synth_events()
1833 if (evsel->attr.type == pt->pmu_type && evsel->ids) { in intel_pt_synth_events()
1847 attr.sample_type = evsel->attr.sample_type & PERF_SAMPLE_MASK; in intel_pt_synth_events()
1856 attr.exclude_user = evsel->attr.exclude_user; in intel_pt_synth_events()
1857 attr.exclude_kernel = evsel->attr.exclude_kernel; in intel_pt_synth_events()
1858 attr.exclude_hv = evsel->attr.exclude_hv; in intel_pt_synth_events()
1859 attr.exclude_host = evsel->attr.exclude_host; in intel_pt_synth_events()
1860 attr.exclude_guest = evsel->attr.exclude_guest; in intel_pt_synth_events()
1861 attr.sample_id_all = evsel->attr.sample_id_all; in intel_pt_synth_events()
1862 attr.read_format = evsel->attr.read_format; in intel_pt_synth_events()
1864 id = evsel->id[0] + 1000000000; in intel_pt_synth_events()
1912 evlist__for_each(evlist, evsel) { in intel_pt_synth_events()
1913 if (evsel->id && evsel->id[0] == pt->transactions_id) { in intel_pt_synth_events()
1914 if (evsel->name) in intel_pt_synth_events()
1915 zfree(&evsel->name); in intel_pt_synth_events()
1916 evsel->name = strdup("transactions"); in intel_pt_synth_events()
1941 pt->synth_needs_swap = evsel->needs_swap; in intel_pt_synth_events()
1948 struct perf_evsel *evsel; in intel_pt_find_sched_switch() local
1950 evlist__for_each_reverse(evlist, evsel) { in intel_pt_find_sched_switch()
1951 const char *name = perf_evsel__name(evsel); in intel_pt_find_sched_switch()
1954 return evsel; in intel_pt_find_sched_switch()
1962 struct perf_evsel *evsel; in intel_pt_find_switch() local
1964 evlist__for_each(evlist, evsel) { in intel_pt_find_switch()
1965 if (evsel->attr.context_switch) in intel_pt_find_switch()