PAPI
7.1.0.0
Loading...
Searching...
No Matches
linux-CNKunit.h
Go to the documentation of this file.
1
/****************************/
2
/* THIS IS OPEN SOURCE CODE */
3
/****************************/
4
20
#ifndef _PAPI_CNKUNIT_H
21
#define _PAPI_CNKUNIT_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 CNKUNIT_MAX_COUNTERS PEVT_CNKUNIT_LAST_EVENT
36
#define OFFSET ( PEVT_NWUNIT_LAST_EVENT + 1 )
37
38
40
typedef
struct
CNKUNIT_register
41
{
42
unsigned
int
selector
;
43
/* Signifies which counter slot is being used */
44
/* Indexed from 1 as 0 has a special meaning */
45
}
CNKUNIT_register_t
;
46
47
48
typedef
struct
CNKUNIT_reg_alloc
49
{
50
CNKUNIT_register_t
ra_bits
;
51
}
CNKUNIT_reg_alloc_t
;
52
53
54
typedef
struct
CNKUNIT_control_state
55
{
56
int
EventGroup
;
57
long
long
counts[
CNKUNIT_MAX_COUNTERS
];
58
}
CNKUNIT_control_state_t
;
59
60
61
typedef
struct
CNKUNIT_context
62
{
63
CNKUNIT_control_state_t
state
;
64
}
CNKUNIT_context_t
;
65
66
67
#endif
/* _PAPI_CNKUNIT_H */
extras.h
CNKUNIT_MAX_COUNTERS
#define CNKUNIT_MAX_COUNTERS
Definition:
linux-CNKunit.h:35
papi.h
Return codes and api definitions.
papi_internal.h
papi_memory.h
papi_vector.h
CNKUNIT_context_t
Definition:
linux-CNKunit.h:62
CNKUNIT_context_t::state
CNKUNIT_control_state_t state
Definition:
linux-CNKunit.h:63
CNKUNIT_control_state_t
Definition:
linux-CNKunit.h:55
CNKUNIT_control_state_t::EventGroup
int EventGroup
Definition:
linux-CNKunit.h:56
CNKUNIT_reg_alloc_t
Definition:
linux-CNKunit.h:49
CNKUNIT_reg_alloc_t::ra_bits
CNKUNIT_register_t ra_bits
Definition:
linux-CNKunit.h:50
CNKUNIT_register_t
Definition:
linux-CNKunit.h:41
CNKUNIT_register_t::selector
unsigned int selector
Definition:
linux-CNKunit.h:42
src
components
bgpm
CNKunit
linux-CNKunit.h
Generated on Wed Dec 20 2023 18:12:50 for PAPI by
1.9.6