PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
perfctr-x86.h File Reference
Include dependency graph for perfctr-x86.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  X86_register_t
 
struct  X86_reg_alloc_t
 
struct  hwd_native_t
 
struct  X86_perfctr_control_t
 
struct  X86_perfctr_context_t
 
struct  native_event_entry_t
 

Macros

#define MAX_COUNTERS   18
 
#define MAX_COUNTER_TERMS   8
 
#define HW_OVERFLOW   1
 
#define hwd_pmc_control   vperfctr_control
 
#define ESCR_T0_OS   (1 << 3)
 
#define ESCR_T0_USR   (1 << 2)
 
#define CCCR_OVF_PMI_T0   (1 << 26)
 
#define FAST_RDPMC   (1 << 31)
 
#define CONFIG_SMP
 
#define CNTR1   0x1
 
#define CNTR2   0x2
 
#define CNTR3   0x4
 
#define CNTR4   0x8
 
#define CNTR5   0x10
 
#define CNTRS12   (CNTR1|CNTR2)
 
#define ALLCNTRS   (CNTR1|CNTR2|CNTR3|CNTR4|CNTR5)
 
#define HAS_MESI   0x0100
 
#define HAS_MOESI   0x0200
 
#define HAS_UMASK   0x0400
 
#define MOESI_M   0x1000
 
#define MOESI_O   0x0800
 
#define MOESI_E   0x0400
 
#define MOESI_S   0x0200
 
#define MOESI_I   0x0100
 
#define MOESI_M_INTEL   MOESI_O
 
#define MOESI_ALL   0x1F00
 
#define UNIT_MASK_ALL   0xFF00
 
#define PERF_CTR_MASK   0xFF000000
 
#define PERF_INV_CTR_MASK   0x00800000
 
#define PERF_ENABLE   0x00400000
 
#define PERF_INT_ENABLE   0x00100000
 
#define PERF_PIN_CONTROL   0x00080000
 
#define PERF_EDGE_DETECT   0x00040000
 
#define PERF_OS   0x00020000
 
#define PERF_USR   0x00010000
 
#define PERF_UNIT_MASK   0x0000FF00
 
#define PERF_EVNT_MASK   0x000000FF
 
#define AI_ERROR   "No support for a-mode counters after adding an i-mode counter"
 
#define VOPEN_ERROR   "vperfctr_open() returned NULL, please run perfex -i to verify your perfctr installation"
 
#define GOPEN_ERROR   "gperfctr_open() returned NULL"
 
#define VINFO_ERROR   "vperfctr_info() returned < 0"
 
#define VCNTRL_ERROR   "vperfctr_control() returned < 0"
 
#define RCNTRL_ERROR   "rvperfctr_control() returned < 0"
 
#define GCNTRL_ERROR   "gperfctr_control() returned < 0"
 
#define FOPEN_ERROR   "fopen(%s) returned NULL"
 
#define STATE_MAL_ERROR   "Error allocating perfctr structures"
 
#define MODEL_ERROR   "This is not a supported cpu."
 

Typedefs

typedef X86_reg_alloc_t hwd_reg_alloc_t
 
typedef X86_register_t hwd_register_t
 
typedef X86_perfctr_control_t hwd_control_state_t
 
typedef X86_perfctr_context_t hwd_context_t
 
typedef pfmlib_event_t pfm_register_t
 

Macro Definition Documentation

#define AI_ERROR   "No support for a-mode counters after adding an i-mode counter"

Definition at line 61 of file perfctr-x86.h.

#define ALLCNTRS   (CNTR1|CNTR2|CNTR3|CNTR4|CNTR5)

Definition at line 35 of file perfctr-x86.h.

#define CCCR_OVF_PMI_T0   (1 << 26)

Definition at line 18 of file perfctr-x86.h.

#define CNTR1   0x1

Definition at line 29 of file perfctr-x86.h.

#define CNTR2   0x2

Definition at line 30 of file perfctr-x86.h.

#define CNTR3   0x4

Definition at line 31 of file perfctr-x86.h.

#define CNTR4   0x8

Definition at line 32 of file perfctr-x86.h.

#define CNTR5   0x10

Definition at line 33 of file perfctr-x86.h.

#define CNTRS12   (CNTR1|CNTR2)

Definition at line 34 of file perfctr-x86.h.

#define CONFIG_SMP

Definition at line 24 of file perfctr-x86.h.

#define ESCR_T0_OS   (1 << 3)

Definition at line 16 of file perfctr-x86.h.

#define ESCR_T0_USR   (1 << 2)

Definition at line 17 of file perfctr-x86.h.

#define FAST_RDPMC   (1 << 31)

Definition at line 19 of file perfctr-x86.h.

#define FOPEN_ERROR   "fopen(%s) returned NULL"

Definition at line 68 of file perfctr-x86.h.

#define GCNTRL_ERROR   "gperfctr_control() returned < 0"

Definition at line 67 of file perfctr-x86.h.

#define GOPEN_ERROR   "gperfctr_open() returned NULL"

Definition at line 63 of file perfctr-x86.h.

#define HAS_MESI   0x0100

Definition at line 37 of file perfctr-x86.h.

#define HAS_MOESI   0x0200

Definition at line 38 of file perfctr-x86.h.

#define HAS_UMASK   0x0400

Definition at line 39 of file perfctr-x86.h.

#define HW_OVERFLOW   1

Definition at line 10 of file perfctr-x86.h.

#define hwd_pmc_control   vperfctr_control

Definition at line 11 of file perfctr-x86.h.

#define MAX_COUNTER_TERMS   8

Definition at line 9 of file perfctr-x86.h.

#define MAX_COUNTERS   18

Definition at line 8 of file perfctr-x86.h.

#define MODEL_ERROR   "This is not a supported cpu."

Definition at line 70 of file perfctr-x86.h.

#define MOESI_ALL   0x1F00

Definition at line 46 of file perfctr-x86.h.

#define MOESI_E   0x0400

Definition at line 42 of file perfctr-x86.h.

#define MOESI_I   0x0100

Definition at line 44 of file perfctr-x86.h.

#define MOESI_M   0x1000

Definition at line 40 of file perfctr-x86.h.

#define MOESI_M_INTEL   MOESI_O

Definition at line 45 of file perfctr-x86.h.

#define MOESI_O   0x0800

Definition at line 41 of file perfctr-x86.h.

#define MOESI_S   0x0200

Definition at line 43 of file perfctr-x86.h.

#define PERF_CTR_MASK   0xFF000000

Definition at line 50 of file perfctr-x86.h.

#define PERF_EDGE_DETECT   0x00040000

Definition at line 55 of file perfctr-x86.h.

#define PERF_ENABLE   0x00400000

Definition at line 52 of file perfctr-x86.h.

#define PERF_EVNT_MASK   0x000000FF

Definition at line 59 of file perfctr-x86.h.

#define PERF_INT_ENABLE   0x00100000

Definition at line 53 of file perfctr-x86.h.

#define PERF_INV_CTR_MASK   0x00800000

Definition at line 51 of file perfctr-x86.h.

#define PERF_OS   0x00020000

Definition at line 56 of file perfctr-x86.h.

#define PERF_PIN_CONTROL   0x00080000

Definition at line 54 of file perfctr-x86.h.

#define PERF_UNIT_MASK   0x0000FF00

Definition at line 58 of file perfctr-x86.h.

#define PERF_USR   0x00010000

Definition at line 57 of file perfctr-x86.h.

#define RCNTRL_ERROR   "rvperfctr_control() returned < 0"

Definition at line 66 of file perfctr-x86.h.

#define STATE_MAL_ERROR   "Error allocating perfctr structures"

Definition at line 69 of file perfctr-x86.h.

#define UNIT_MASK_ALL   0xFF00

Definition at line 47 of file perfctr-x86.h.

#define VCNTRL_ERROR   "vperfctr_control() returned < 0"

Definition at line 65 of file perfctr-x86.h.

#define VINFO_ERROR   "vperfctr_info() returned < 0"

Definition at line 64 of file perfctr-x86.h.

#define VOPEN_ERROR   "vperfctr_open() returned NULL, please run perfex -i to verify your perfctr installation"

Definition at line 62 of file perfctr-x86.h.

Typedef Documentation

Definition at line 131 of file perfctr-x86.h.

Definition at line 129 of file perfctr-x86.h.

Definition at line 125 of file perfctr-x86.h.

Definition at line 127 of file perfctr-x86.h.

typedef pfmlib_event_t pfm_register_t

Definition at line 140 of file perfctr-x86.h.