modify file names and create directories
This commit is contained in:
41
lib/include/ihk/perfctr.h
Normal file
41
lib/include/ihk/perfctr.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef HEADER_GENERIC_AAL_PERFCTR_H
|
||||
#define HEADER_GENERIC_AAL_PERFCTR_H
|
||||
|
||||
#define PERFCTR_USER_MODE 0x01
|
||||
#define PERFCTR_KERNEL_MODE 0x02
|
||||
|
||||
enum aal_perfctr_type {
|
||||
APT_TYPE_DATA_PAGE_WALK,
|
||||
APT_TYPE_DATA_READ_MISS,
|
||||
APT_TYPE_DATA_WRITE_MISS,
|
||||
APT_TYPE_BANK_CONFLICTS,
|
||||
APT_TYPE_CODE_CACHE_MISS,
|
||||
APT_TYPE_INSTRUCTIONS_EXECUTED,
|
||||
APT_TYPE_INSTRUCTIONS_EXECUTED_V_PIPE,
|
||||
|
||||
APT_TYPE_L2_READ_MISS,
|
||||
APT_TYPE_L2_CODE_READ_MISS_CACHE_FILL,
|
||||
APT_TYPE_L2_DATA_READ_MISS_CACHE_FILL,
|
||||
APT_TYPE_L2_CODE_READ_MISS_MEM_FILL,
|
||||
APT_TYPE_L2_DATA_READ_MISS_MEM_FILL,
|
||||
|
||||
APT_TYPE_L1D_REQUEST,
|
||||
APT_TYPE_L1I_REQUEST,
|
||||
APT_TYPE_L1_MISS,
|
||||
APT_TYPE_LLC_MISS,
|
||||
APT_TYPE_DTLB_MISS,
|
||||
APT_TYPE_ITLB_MISS,
|
||||
APT_TYPE_STALL,
|
||||
APT_TYPE_CYCLE,
|
||||
PERFCTR_MAX_TYPE,
|
||||
};
|
||||
|
||||
int aal_mc_perfctr_init(int counter, enum aal_perfctr_type type, int mode);
|
||||
int aal_mc_perfctr_start(unsigned long counter_mask);
|
||||
int aal_mc_perfctr_stop(unsigned long counter_mask);
|
||||
int aal_mc_perfctr_reset(int counter);
|
||||
int aal_mc_perfctr_read_mask(unsigned long counter_mask, unsigned long *value);
|
||||
unsigned long aal_mc_perfctr_read(int counter);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user