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

Go to the source code of this file.

Data Structures

union  pfm_intel_atom_sel_reg_t
 
struct  pfmlib_intel_atom_counter_t
 
struct  pfmlib_intel_atom_input_param_t
 

Macros

#define PMU_INTEL_ATOM_NUM_COUNTERS   5 /* 2 generic + 3 fixed */
 
#define PFM_INTEL_ATOM_SEL_INV   0x1 /* inverse */
 
#define PFM_INTEL_ATOM_SEL_EDGE   0x2 /* edge detect */
 
#define PFM_INTEL_ATOM_SEL_ANYTHR   0x4 /* measure on any of 2 threads */
 

Functions

int pfm_intel_atom_has_pebs (pfmlib_event_t *e)
 

Macro Definition Documentation

◆ PFM_INTEL_ATOM_SEL_ANYTHR

#define PFM_INTEL_ATOM_SEL_ANYTHR   0x4 /* measure on any of 2 threads */

Definition at line 72 of file pfmlib_intel_atom.h.

◆ PFM_INTEL_ATOM_SEL_EDGE

#define PFM_INTEL_ATOM_SEL_EDGE   0x2 /* edge detect */

Definition at line 71 of file pfmlib_intel_atom.h.

◆ PFM_INTEL_ATOM_SEL_INV

#define PFM_INTEL_ATOM_SEL_INV   0x1 /* inverse */

Definition at line 70 of file pfmlib_intel_atom.h.

◆ PMU_INTEL_ATOM_NUM_COUNTERS

#define PMU_INTEL_ATOM_NUM_COUNTERS   5 /* 2 generic + 3 fixed */

Definition at line 45 of file pfmlib_intel_atom.h.

Function Documentation

◆ pfm_intel_atom_has_pebs()

int pfm_intel_atom_has_pebs ( pfmlib_event_t e)

Definition at line 757 of file pfmlib_intel_atom.c.

758{
759 unsigned int i, n=0;
760
761 if (e == NULL || e->event >= PME_INTEL_ATOM_EVENT_COUNT)
762 return 0;
763
765 return 1;
766
767 /*
768 * ALL unit mask must support PEBS for this test to return true
769 */
770 for(i=0; i < e->num_masks; i++) {
771 /* check for valid unit mask */
773 return 0;
775 n++;
776 }
777 return n > 0 && n == e->num_masks;
778}
int i
#define PME_INTEL_ATOM_EVENT_COUNT
static pme_intel_atom_entry_t intel_atom_pe[]
#define PFMLIB_INTEL_ATOM_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_intel_atom_umask_t pme_umasks[PFMLIB_INTEL_ATOM_MAX_UMASK]
unsigned int pme_flags
Here is the caller graph for this function: