libpmc: Disable hardcoding of Intel fixed counters.
Intel json's now have pretty reasonable fixed counters representation via event=0 and umask. Hardcoded values create more confusion than fix. MFC after: 1 month
This commit is contained in:
parent
c1e813d123
commit
73b7b181e6
@ -528,8 +528,7 @@ pmc_pmu_intel_pmcallocate(const char *event_name, struct pmc_op_pmcallocate *pm,
|
||||
strcasestr(event_name, "uncore") != NULL) {
|
||||
pm->pm_class = PMC_CLASS_UCP;
|
||||
pm->pm_caps |= PMC_CAP_QUALIFIER;
|
||||
} else if ((ped->ped_umask == -1) ||
|
||||
(ped->ped_event == 0x0 && ped->ped_umask == 0x3)) {
|
||||
} else if (ped->ped_event == 0x0) {
|
||||
pm->pm_class = PMC_CLASS_IAF;
|
||||
} else {
|
||||
pm->pm_class = PMC_CLASS_IAP;
|
||||
|
@ -480,12 +480,14 @@ static struct fixed {
|
||||
const char *name;
|
||||
const char *event;
|
||||
} fixed[] = {
|
||||
#if 0
|
||||
{ "inst_retired.any", "event=0xc0,period=2000003" },
|
||||
{ "inst_retired.any_p", "event=0xc0,period=2000003" },
|
||||
{ "cpu_clk_unhalted.ref", "event=0x0,umask=0x03,period=2000003" },
|
||||
{ "cpu_clk_unhalted.thread", "event=0x3c,period=2000003" },
|
||||
{ "cpu_clk_unhalted.core", "event=0x3c,period=2000003" },
|
||||
{ "cpu_clk_unhalted.thread_any", "event=0x3c,any=1,period=2000003" },
|
||||
#endif
|
||||
{ NULL, NULL},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user