Skip to content
Snippets Groups Projects
Commit a9c2e774 authored by koenigl's avatar koenigl
Browse files

Add workaround for workaround not finding default PMU

parent 194d9b63
Branches
Tags
No related merge requests found
...@@ -1198,13 +1198,26 @@ _pe_libpfm4_init(papi_vector_t *component, int cidx, ...@@ -1198,13 +1198,26 @@ _pe_libpfm4_init(papi_vector_t *component, int cidx,
} }
} }
/* Workaround since above mentioned hack doesn't work really */
if (!found_default && pmu_type & PFM_PMU_TYPE_OS_GENERIC) {
if ((pinfo.type==PFM_PMU_TYPE_OS_GENERIC)) {
SUBDBG("\t %s is default\n", pinfo.name);
memcpy(&(event_table->default_pmu),
&pinfo,sizeof(pfm_pmu_info_t));
found_default++;
}
}
if (pmu_type==PMU_TYPE_UNCORE) { if (pmu_type==PMU_TYPE_UNCORE) {
/* To avoid confusion, no "default" CPU for uncore */ /* To avoid confusion, no "default" CPU for uncore */
found_default=1; found_default=1;
} }
} }
i++; i++;
} }
SUBDBG("%d native events detected on %d pmus\n",ncnt,detected_pmus); SUBDBG("%d native events detected on %d pmus\n",ncnt,detected_pmus);
if (detected_pmus==0) { if (detected_pmus==0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment