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

Go to the source code of this file.

Data Structures

struct  _perfnec_register_t
 
struct  _perfnec_native_event_entry_t
 
struct  pfnec_control_state_t
 
struct  pfnec_context_t
 

Macros

#define DEBUGCALL(a, b)   { if (ISLEVEL(a)) { b; } }
 
#define PFNECLIB_MAX_PMDS   32
 
#define PKG_NUM_EVENTS   16
 
#define MAX_COUNTERS   PFMLIB_MAX_PMCS
 
#define MAX_COUNTER_TERMS   PFMLIB_MAX_PMCS
 

Typedefs

typedef int pfnec_register_map_t
 
typedef int pfnec_reg_alloc_t
 
typedef int pfnec_dfl_smpl_arg_t
 
typedef int pfnec_dfl_smpl_hdr_t
 
typedef int pfnec_register_t
 
typedef int pfneclib_regmask_t
 
typedef int pfnec_dfl_smpl_entry_t
 
typedef pfnec_reg_alloc_t cmp_reg_alloc_t
 
typedef pfnec_register_t cmp_register_t
 
typedef pfnec_control_state_t _perfnec_control_state_t
 
typedef pfnec_context_t _perfnec_context_t
 

Functions

static char * _local_strlcpy (char *dst, const char *src, size_t size)
 

Variables

static int pkg_events [PKG_NUM_EVENTS] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}
 
static const char * pkg_event_names [PKG_NUM_EVENTS]
 
static const char * pkg_units [PKG_NUM_EVENTS]
 
static const char * pkg_event_descs [PKG_NUM_EVENTS]
 
static _perfnec_native_event_entry_t perfnec_ntv_events [PKG_NUM_EVENTS]
 

Macro Definition Documentation

◆ DEBUGCALL

#define DEBUGCALL (   a,
  b 
)    { if (ISLEVEL(a)) { b; } }

Definition at line 40 of file perfnec.h.

◆ MAX_COUNTER_TERMS

#define MAX_COUNTER_TERMS   PFMLIB_MAX_PMCS

Definition at line 121 of file perfnec.h.

◆ MAX_COUNTERS

#define MAX_COUNTERS   PFMLIB_MAX_PMCS

Definition at line 120 of file perfnec.h.

◆ PFNECLIB_MAX_PMDS

#define PFNECLIB_MAX_PMDS   32

Definition at line 45 of file perfnec.h.

◆ PKG_NUM_EVENTS

#define PKG_NUM_EVENTS   16

Definition at line 56 of file perfnec.h.

Typedef Documentation

◆ _perfnec_context_t

Definition at line 148 of file perfnec.h.

◆ _perfnec_control_state_t

Definition at line 147 of file perfnec.h.

◆ cmp_reg_alloc_t

Definition at line 145 of file perfnec.h.

◆ cmp_register_t

Definition at line 146 of file perfnec.h.

◆ pfnec_dfl_smpl_arg_t

Definition at line 50 of file perfnec.h.

◆ pfnec_dfl_smpl_entry_t

Definition at line 54 of file perfnec.h.

◆ pfnec_dfl_smpl_hdr_t

Definition at line 51 of file perfnec.h.

◆ pfnec_reg_alloc_t

Definition at line 48 of file perfnec.h.

◆ pfnec_register_map_t

Definition at line 47 of file perfnec.h.

◆ pfnec_register_t

Definition at line 52 of file perfnec.h.

◆ pfneclib_regmask_t

Definition at line 53 of file perfnec.h.

Function Documentation

◆ _local_strlcpy()

static char * _local_strlcpy ( char *  dst,
const char *  src,
size_t  size 
)
static

Definition at line 111 of file perfnec.h.

112{
113 char *retval = strncpy( dst, src, size );
114 if ( size > 0 ) dst[size-1] = '\0';
115
116 return( retval );
117}
int retval
Definition: zero_fork.c:53

Variable Documentation

◆ perfnec_ntv_events

_perfnec_native_event_entry_t perfnec_ntv_events[PKG_NUM_EVENTS]
static

Definition at line 103 of file perfnec.h.

◆ pkg_event_descs

const char* pkg_event_descs[PKG_NUM_EVENTS]
static
Initial value:
= {
"Execution count",
"Vector execution count",
"Floating point data element count",
"Vector elements count",
"Vector execution clock count",
"L1 cache miss clock count",
"Vector elements count 2",
"Vector arithmetic execution clock count",
"Vector load execution clock count",
"Port conflict clock count",
"Vector load packet count",
"Vector load element count",
"Vector load cache miss element count 2",
"Fused multiply add element count",
"Power throttling clock count",
"Thermal throttling clock count"}

Definition at line 69 of file perfnec.h.

◆ pkg_event_names

const char* pkg_event_names[PKG_NUM_EVENTS]
static
Initial value:
= {"EX", "VX", "FPEC", "VE", "VECC", "L1MCC", "VE2", "VAREC",
"VLDEC", "PCCC", "VLDCC", "VLEC", "VLCME2", "FMAEC", "PTCC", "TTCC"}

Definition at line 60 of file perfnec.h.

◆ pkg_events

int pkg_events[PKG_NUM_EVENTS] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}
static

Definition at line 58 of file perfnec.h.

◆ pkg_units

const char* pkg_units[PKG_NUM_EVENTS]
static
Initial value:
= {"", "", "", "",
"", "", "", "",
"", "", "", "",
"", "", "", ""
}

Definition at line 63 of file perfnec.h.