PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_core.h File Reference
Include dependency graph for pfmlib_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  pfm_core_sel_reg_t
 
struct  pfmlib_core_counter_t
 
struct  pfmlib_core_pebs_t
 
struct  pfmlib_core_input_param_t
 
struct  pfmlib_core_output_param_t
 

Macros

#define PMU_CORE_NUM_FIXED_COUNTERS   3 /* number of fixed counters */
 
#define PMU_CORE_NUM_GEN_COUNTERS   2 /* number of generic counters */
 
#define PMU_CORE_NUM_COUNTERS   5 /* number of counters */
 
#define PFM_CORE_SEL_INV   0x1 /* inverse */
 
#define PFM_CORE_SEL_EDGE   0x2 /* edge detect */
 

Functions

int pfm_core_is_pebs (pfmlib_event_t *e)
 

Macro Definition Documentation

◆ PFM_CORE_SEL_EDGE

#define PFM_CORE_SEL_EDGE   0x2 /* edge detect */

Definition at line 69 of file pfmlib_core.h.

◆ PFM_CORE_SEL_INV

#define PFM_CORE_SEL_INV   0x1 /* inverse */

Definition at line 68 of file pfmlib_core.h.

◆ PMU_CORE_NUM_COUNTERS

#define PMU_CORE_NUM_COUNTERS   5 /* number of counters */

Definition at line 43 of file pfmlib_core.h.

◆ PMU_CORE_NUM_FIXED_COUNTERS

#define PMU_CORE_NUM_FIXED_COUNTERS   3 /* number of fixed counters */

Definition at line 41 of file pfmlib_core.h.

◆ PMU_CORE_NUM_GEN_COUNTERS

#define PMU_CORE_NUM_GEN_COUNTERS   2 /* number of generic counters */

Definition at line 42 of file pfmlib_core.h.

Function Documentation

◆ pfm_core_is_pebs()

int pfm_core_is_pebs ( pfmlib_event_t e)

Definition at line 880 of file pfmlib_core.c.

881{
882 unsigned int i, n=0;
883
884 if (e == NULL || e->event >= PME_CORE_EVENT_COUNT)
885 return 0;
886
888 return 1;
889
890 /*
891 * ALL unit mask must support PEBS for this test to return true
892 */
893 for(i=0; i < e->num_masks; i++) {
894 /* check for valid unit mask */
895 if (e->unit_masks[i] >= core_pe[e->event].pme_numasks)
896 return 0;
898 n++;
899 }
900 return n > 0 && n == e->num_masks;
901}
int i
#define PME_CORE_EVENT_COUNT
Definition: core_events.h:1507
static pme_core_entry_t core_pe[]
Definition: core_events.h:79
#define PFMLIB_CORE_PEBS
unsigned int num_masks
Definition: pfmlib.h:90
unsigned int unit_masks[PFMLIB_MAX_MASKS_PER_EVENT]
Definition: pfmlib.h:89
unsigned int event
Definition: pfmlib.h:86
unsigned int pme_numasks
pme_core_umask_t pme_umasks[PFMLIB_CORE_MAX_UMASK]
unsigned int pme_flags
unsigned int pme_flags
Here is the caller graph for this function: