PAPI
5.7.0.0
appio.h
Go to the documentation of this file.
1
/****************************/
2
/* THIS IS OPEN SOURCE CODE */
3
/****************************/
4
24
#ifndef _PAPI_APPIO_H
25
#define _PAPI_APPIO_H
26
27
#include <unistd.h>
28
29
/************************* DEFINES SECTION ***********************************/
30
31
/* Set this equal to the number of elements in _appio_counter_info array */
32
#define APPIO_MAX_COUNTERS 45
33
35
typedef
struct
APPIO_register
36
{
37
/* This is used by the framework. It likes it to be !=0 to do something */
38
unsigned
int
selector
;
39
}
APPIO_register_t
;
40
41
42
/*
43
* The following structures mimic the ones used by other components. It is more
44
* convenient to use them like that as programming with PAPI makes specific
45
* assumptions for them.
46
*/
47
48
49
/* This structure is used to build the table of events */
50
51
typedef
struct
APPIO_native_event_entry
52
{
53
APPIO_register_t
resources
;
54
const
char
*
name
;
55
const
char
*
description
;
56
}
APPIO_native_event_entry_t
;
57
58
59
typedef
struct
APPIO_reg_alloc
60
{
61
APPIO_register_t
ra_bits
;
62
}
APPIO_reg_alloc_t
;
63
64
65
typedef
struct
APPIO_control_state
66
{
67
int
num_events
;
68
int
counter_bits[
APPIO_MAX_COUNTERS
];
69
long
long
values
[
APPIO_MAX_COUNTERS
];
// used for caching
70
}
APPIO_control_state_t
;
71
72
73
typedef
struct
APPIO_context
74
{
75
APPIO_control_state_t
state
;
76
}
APPIO_context_t
;
77
78
79
/************************* GLOBALS SECTION ***********************************
80
*******************************************************************************/
81
82
#endif
/* _PAPI_APPIO_H */
83
84
/* vim:set ts=4 sw=4 sts=4 et: */
APPIO_native_event_entry_t::name
const char * name
Definition:
appio.h:54
APPIO_MAX_COUNTERS
#define APPIO_MAX_COUNTERS
Definition:
appio.h:32
APPIO_context_t
Definition:
appio.h:73
APPIO_native_event_entry_t
Definition:
appio.h:51
APPIO_control_state_t::num_events
int num_events
Definition:
appio.h:67
APPIO_context_t::state
APPIO_control_state_t state
Definition:
appio.h:75
APPIO_native_event_entry_t::resources
APPIO_register_t resources
Definition:
appio.h:53
APPIO_native_event_entry_t::description
const char * description
Definition:
appio.h:55
APPIO_control_state_t
Definition:
appio.h:65
APPIO_reg_alloc_t
Definition:
appio.h:59
APPIO_reg_alloc_t::ra_bits
APPIO_register_t ra_bits
Definition:
appio.h:61
APPIO_register_t
Definition:
appio.h:35
APPIO_register_t::selector
unsigned int selector
Definition:
appio.h:38
values
static long long values[NUM_EVENTS]
Definition:
init_fini.c:10
src
components
appio
appio.h
Generated on Wed Mar 27 2019 00:55:11 for PAPI by
1.8.15