perf: add arch-dependent get_num_counters function
Change-Id: I2230af87e0c764d97115e833dccb1842946c1b94 Fujitsu: POSTK_DEBUG_ARCH_DEP_109
This commit is contained in:
@ -183,3 +183,8 @@ int ihk_mc_perfctr_fixed_init(int counter, int mode)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int ihk_mc_perf_get_num_counters(void)
|
||||
{
|
||||
return cpu_pmu.per_cpu[ihk_mc_get_processor_id()].num_events;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user