free(spe);
 }
 
+static bool arm_spe_evsel_is_auxtrace(struct perf_session *session,
+                                     struct evsel *evsel)
+{
+       struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe, auxtrace);
+
+       return evsel->core.attr.type == spe->pmu_type;
+}
+
 static const char * const arm_spe_info_fmts[] = {
        [ARM_SPE_PMU_TYPE]              = "  PMU Type           %"PRId64"\n",
 };
        spe->auxtrace.flush_events = arm_spe_flush;
        spe->auxtrace.free_events = arm_spe_free_events;
        spe->auxtrace.free = arm_spe_free;
+       spe->auxtrace.evsel_is_auxtrace = arm_spe_evsel_is_auxtrace;
        session->auxtrace = &spe->auxtrace;
 
        arm_spe_print_info(&auxtrace_info->priv[0]);