PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-NWunit.h
Go to the documentation of this file.
1 /****************************/
2 /* THIS IS OPEN SOURCE CODE */
3 /****************************/
4 
20 #ifndef _PAPI_NWUNIT_H
21 #define _PAPI_NWUNIT_H
22 
23 #include "papi.h"
24 #include "papi_internal.h"
25 #include "papi_vector.h"
26 #include "papi_memory.h"
27 #include "extras.h"
28 #include "../../../linux-bgq-common.h"
29 
30 
31 /************************* DEFINES SECTION ***********************************
32  *******************************************************************************/
33 
34 /* this number assumes that there will never be more events than indicated */
35 #define NWUNIT_MAX_COUNTERS PEVT_NWUNIT_LAST_EVENT
36 #define OFFSET ( PEVT_IOUNIT_LAST_EVENT + 1 )
37 
38 
40 typedef struct NWUNIT_register
41 {
42  unsigned int selector;
43  /* Signifies which counter slot is being used */
44  /* Indexed from 1 as 0 has a special meaning */
46 
47 
48 typedef struct NWUNIT_reg_alloc
49 {
52 
53 
54 typedef struct NWUNIT_control_state
55 {
57  long long counts[NWUNIT_MAX_COUNTERS];
59 
60 
61 typedef struct NWUNIT_context
62 {
65 
66 
67 #endif /* _PAPI_NWUNIT_H */
#define NWUNIT_MAX_COUNTERS
Definition: linux-NWunit.h:35
Return codes and api definitions.
NWUNIT_control_state_t state
Definition: linux-NWunit.h:63
NWUNIT_register_t ra_bits
Definition: linux-NWunit.h:50
unsigned int selector
Definition: linux-NWunit.h:42