Lines Matching refs:evsel
125 struct perf_evsel *evsel; in intel_pt_read_config() local
134 evlist__for_each(evlist, evsel) { in intel_pt_read_config()
135 if (evsel->attr.type == intel_pt_pmu->type) { in intel_pt_read_config()
136 *res = intel_pt_masked_bits(mask, evsel->attr.config); in intel_pt_read_config()
359 struct perf_evsel *evsel; in intel_pt_track_switches() local
372 evsel = perf_evlist__last(evlist); in intel_pt_track_switches()
374 perf_evsel__set_sample_bit(evsel, CPU); in intel_pt_track_switches()
375 perf_evsel__set_sample_bit(evsel, TIME); in intel_pt_track_switches()
377 evsel->system_wide = true; in intel_pt_track_switches()
378 evsel->no_aux_samples = true; in intel_pt_track_switches()
379 evsel->immediate = true; in intel_pt_track_switches()
471 struct perf_evsel *evsel) in intel_pt_validate_config() argument
475 if (!evsel) in intel_pt_validate_config()
480 evsel->attr.config); in intel_pt_validate_config()
486 evsel->attr.config); in intel_pt_validate_config()
492 evsel->attr.config); in intel_pt_validate_config()
503 struct perf_evsel *evsel, *intel_pt_evsel = NULL; in intel_pt_recording_options() local
512 evlist__for_each(evlist, evsel) { in intel_pt_recording_options()
513 if (evsel->attr.type == intel_pt_pmu->type) { in intel_pt_recording_options()
518 evsel->attr.freq = 0; in intel_pt_recording_options()
519 evsel->attr.sample_period = 1; in intel_pt_recording_options()
520 intel_pt_evsel = evsel; in intel_pt_recording_options()
724 struct perf_evsel *evsel; in intel_pt_snapshot_start() local
726 evlist__for_each(ptr->evlist, evsel) { in intel_pt_snapshot_start()
727 if (evsel->attr.type == ptr->intel_pt_pmu->type) in intel_pt_snapshot_start()
728 return perf_evlist__disable_event(ptr->evlist, evsel); in intel_pt_snapshot_start()
737 struct perf_evsel *evsel; in intel_pt_snapshot_finish() local
739 evlist__for_each(ptr->evlist, evsel) { in intel_pt_snapshot_finish()
740 if (evsel->attr.type == ptr->intel_pt_pmu->type) in intel_pt_snapshot_finish()
741 return perf_evlist__enable_event(ptr->evlist, evsel); in intel_pt_snapshot_finish()
1010 struct perf_evsel *evsel; in intel_pt_read_finish() local
1012 evlist__for_each(ptr->evlist, evsel) { in intel_pt_read_finish()
1013 if (evsel->attr.type == ptr->intel_pt_pmu->type) in intel_pt_read_finish()
1014 return perf_evlist__enable_event_idx(ptr->evlist, evsel, in intel_pt_read_finish()