Lines Matching refs:evsel
17 #include "../../../util/evsel.h"
238 static void arm_spe_setup_evsel(struct evsel *evsel, struct perf_cpu_map *cpus)
242 evsel->core.attr.freq = 0;
243 evsel->core.attr.sample_period = arm_spe_pmu__sample_period(evsel->pmu);
244 evsel->needs_auxtrace_mmap = true;
250 evlist__to_front(evsel->evlist, evsel);
257 evsel__set_sample_bit(evsel, CPU);
258 evsel__set_config_if_unset(evsel->pmu, evsel, "ts_enable", 1);
265 evsel__set_sample_bit(evsel, DATA_SRC);
272 bit = perf_pmu__format_bits(evsel->pmu, "pa_enable");
273 if (evsel->core.attr.config & bit)
274 evsel__set_sample_bit(evsel, PHYS_ADDR);
344 struct evsel *tracking_evsel;
377 struct evsel *evsel, *tmp;
384 evlist__for_each_entry(evlist, evsel) {
385 if (evsel__is_aux_event(evsel)) {
386 if (!strstarts(evsel->pmu->name, ARM_SPE_PMU_NAME)) {
388 evsel->pmu->name);
398 evlist__for_each_entry_safe(evlist, tmp, evsel) {
399 if (evsel__is_aux_event(evsel)) {
400 arm_spe_setup_evsel(evsel, cpus);
401 if (evsel->core.attr.config &
402 perf_pmu__format_bits(evsel->pmu, "discard"))
440 struct evsel *evsel;
443 evlist__for_each_entry(ptr->evlist, evsel) {
444 if (evsel__is_aux_event(evsel)) {
445 ret = evsel__disable(evsel);
457 struct evsel *evsel;
460 evlist__for_each_entry(ptr->evlist, evsel) {
461 if (evsel__is_aux_event(evsel)) {
462 ret = evsel__enable(evsel);