ARM: fix performance counters allocation

Change-Id: Ie6c8beacf268462064f59b063d9c7b635c906dc4
This commit is contained in:
Balazs Gerofi
2019-06-05 14:00:12 +09:00
parent 99fba2df1c
commit bc4629dfb0
7 changed files with 49 additions and 22 deletions

View File

@ -19,6 +19,7 @@
#endif /*POSTK_DEBUG_TEMP_FIX_29*/
#include <mc_perf_event.h>
#include <process.h>
#define PERFCTR_USER_MODE 0x01
#define PERFCTR_KERNEL_MODE 0x02
@ -73,6 +74,7 @@ int ihk_mc_perfctr_read_mask(unsigned long counter_mask, unsigned long *value);
unsigned long ihk_mc_perfctr_read(int counter);
unsigned long ihk_mc_perfctr_read_msr(int counter);
int ihk_mc_perfctr_alloc_counter(unsigned int *type, unsigned long *config, unsigned long pmc_status);
int ihk_mc_perfctr_alloc(struct thread *thread, int cpu_cycles);
int ihk_mc_perf_counter_mask_check(unsigned long counter_mask);
int ihk_mc_perf_get_num_counters(void);