PAPI
7.1.0.0
Loading...
Searching...
No Matches
linux-IOunit.h
Go to the documentation of this file.
1
/****************************/
2
/* THIS IS OPEN SOURCE CODE */
3
/****************************/
4
20
#ifndef _PAPI_IOUNIT_H
21
#define _PAPI_IOUNIT_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 IOUNIT_MAX_COUNTERS UPC_C_IOSRAM_NUM_COUNTERS
36
#define IOUNIT_MAX_EVENTS PEVT_IOUNIT_LAST_EVENT
37
#define OFFSET ( PEVT_L2UNIT_LAST_EVENT + 1 )
38
39
41
typedef
struct
IOUNIT_register
42
{
43
unsigned
int
selector
;
44
/* Signifies which counter slot is being used */
45
/* Indexed from 1 as 0 has a special meaning */
46
}
IOUNIT_register_t
;
47
48
49
typedef
struct
IOUNIT_reg_alloc
50
{
51
IOUNIT_register_t
ra_bits
;
52
}
IOUNIT_reg_alloc_t
;
53
54
typedef
struct
IOUNIT_overflow
55
{
56
int
threshold
;
57
int
EventIndex
;
58
}
IOUNIT_overflow_t
;
59
60
typedef
struct
IOUNIT_control_state
61
{
62
int
EventGroup
;
63
int
overflow
;
// overflow enable
64
int
overflow_count
;
65
IOUNIT_overflow_t
overflow_list[512];
66
long
long
counts[
IOUNIT_MAX_COUNTERS
];
67
}
IOUNIT_control_state_t
;
68
69
70
typedef
struct
IOUNIT_context
71
{
72
IOUNIT_control_state_t
state
;
73
}
IOUNIT_context_t
;
74
75
76
#endif
/* _PAPI_IOUNIT_H */
extras.h
IOUNIT_MAX_COUNTERS
#define IOUNIT_MAX_COUNTERS
Definition:
linux-IOunit.h:35
papi.h
Return codes and api definitions.
papi_internal.h
papi_memory.h
papi_vector.h
IOUNIT_context_t
Definition:
linux-IOunit.h:71
IOUNIT_context_t::state
IOUNIT_control_state_t state
Definition:
linux-IOunit.h:72
IOUNIT_control_state_t
Definition:
linux-IOunit.h:61
IOUNIT_control_state_t::overflow_count
int overflow_count
Definition:
linux-IOunit.h:64
IOUNIT_control_state_t::EventGroup
int EventGroup
Definition:
linux-IOunit.h:62
IOUNIT_control_state_t::overflow
int overflow
Definition:
linux-IOunit.h:63
IOUNIT_overflow_t
Definition:
linux-IOunit.h:55
IOUNIT_overflow_t::EventIndex
int EventIndex
Definition:
linux-IOunit.h:57
IOUNIT_overflow_t::threshold
int threshold
Definition:
linux-IOunit.h:56
IOUNIT_reg_alloc_t
Definition:
linux-IOunit.h:50
IOUNIT_reg_alloc_t::ra_bits
IOUNIT_register_t ra_bits
Definition:
linux-IOunit.h:51
IOUNIT_register_t
Definition:
linux-IOunit.h:42
IOUNIT_register_t::selector
unsigned int selector
Definition:
linux-IOunit.h:43
src
components
bgpm
IOunit
linux-IOunit.h
Generated on Wed Dec 20 2023 18:12:50 for PAPI by
1.9.6