PAPI
7.1.0.0
Loading...
Searching...
No Matches
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 UPC_NW_ALL_LINKCTRS
36
#define NWUNIT_MAX_COUNTERS UPC_NW_NUM_CTRS
37
#define NWUNIT_MAX_EVENTS PEVT_NWUNIT_LAST_EVENT
38
#define OFFSET ( PEVT_IOUNIT_LAST_EVENT + 1 )
39
40
42
typedef
struct
NWUNIT_register
43
{
44
unsigned
int
selector
;
45
/* Signifies which counter slot is being used */
46
/* Indexed from 1 as 0 has a special meaning */
47
}
NWUNIT_register_t
;
48
49
50
typedef
struct
NWUNIT_reg_alloc
51
{
52
NWUNIT_register_t
ra_bits
;
53
}
NWUNIT_reg_alloc_t
;
54
55
56
typedef
struct
NWUNIT_control_state
57
{
58
int
EventGroup
;
59
long
long
counts[
NWUNIT_MAX_COUNTERS
];
60
}
NWUNIT_control_state_t
;
61
62
63
typedef
struct
NWUNIT_context
64
{
65
NWUNIT_control_state_t
state
;
66
}
NWUNIT_context_t
;
67
68
69
#endif
/* _PAPI_NWUNIT_H */
extras.h
NWUNIT_MAX_COUNTERS
#define NWUNIT_MAX_COUNTERS
Definition:
linux-NWunit.h:36
papi.h
Return codes and api definitions.
papi_internal.h
papi_memory.h
papi_vector.h
NWUNIT_context_t
Definition:
linux-NWunit.h:64
NWUNIT_context_t::state
NWUNIT_control_state_t state
Definition:
linux-NWunit.h:65
NWUNIT_control_state_t
Definition:
linux-NWunit.h:57
NWUNIT_control_state_t::EventGroup
int EventGroup
Definition:
linux-NWunit.h:58
NWUNIT_reg_alloc_t
Definition:
linux-NWunit.h:51
NWUNIT_reg_alloc_t::ra_bits
NWUNIT_register_t ra_bits
Definition:
linux-NWunit.h:52
NWUNIT_register_t
Definition:
linux-NWunit.h:43
NWUNIT_register_t::selector
unsigned int selector
Definition:
linux-NWunit.h:44
src
components
bgpm
NWunit
linux-NWunit.h
Generated on Wed Dec 20 2023 18:12:50 for PAPI by
1.9.6