PAPI
7.1.0.0
Loading...
Searching...
No Matches
linux-net.h
Go to the documentation of this file.
1
/****************************/
2
/* THIS IS OPEN SOURCE CODE */
3
/****************************/
4
25
#ifndef _PAPI_NET_H
26
#define _PAPI_NET_H
27
28
#include <unistd.h>
29
30
/************************* DEFINES SECTION ***********************************
31
*******************************************************************************/
32
/* this number assumes that there will never be more events than indicated
33
* 20 INTERFACES * 16 COUNTERS = 320 */
34
#define NET_MAX_COUNTERS 320
35
37
typedef
struct
NET_register
38
{
39
/* This is used by the framework.It likes it to be !=0 to do somehting */
40
unsigned
int
selector
;
41
}
NET_register_t
;
42
43
44
/*
45
* The following structures mimic the ones used by other components. It is more
46
* convenient to use them like that as programming with PAPI makes specific
47
* assumptions for them.
48
*/
49
50
52
typedef
struct
NET_native_event_entry
53
{
54
NET_register_t
resources
;
55
char
name
[
PAPI_MAX_STR_LEN
];
56
char
description[
PAPI_MAX_STR_LEN
];
57
}
NET_native_event_entry_t
;
58
59
60
typedef
struct
NET_reg_alloc
61
{
62
NET_register_t
ra_bits
;
63
}
NET_reg_alloc_t
;
64
65
66
typedef
struct
NET_control_state
67
{
68
long
long
values
[
NET_MAX_COUNTERS
];
// used for caching
69
long
long
lastupdate
;
70
}
NET_control_state_t
;
71
72
73
typedef
struct
NET_context
74
{
75
NET_control_state_t
state
;
76
}
NET_context_t
;
77
78
79
/************************* GLOBALS SECTION ***********************************
80
*******************************************************************************/
81
82
#endif
/* _PAPI_NET_H */
83
84
/* vim:set ts=4 sw=4 sts=4 et: */
PAPI_MAX_STR_LEN
#define PAPI_MAX_STR_LEN
Definition:
f90papi.h:77
values
static long long values[NUM_EVENTS]
Definition:
init_fini.c:10
NET_MAX_COUNTERS
#define NET_MAX_COUNTERS
Definition:
linux-net.h:34
name
const char * name
Definition:
rocs.c:225
NET_context_t
Definition:
linux-net.h:74
NET_context_t::state
NET_control_state_t state
Definition:
linux-net.h:75
NET_control_state_t
Definition:
linux-net.h:67
NET_control_state_t::lastupdate
long long lastupdate
Definition:
linux-net.h:69
NET_native_event_entry_t
Definition:
linux-net.h:53
NET_native_event_entry_t::resources
NET_register_t resources
Definition:
linux-net.h:54
NET_reg_alloc_t
Definition:
linux-net.h:61
NET_reg_alloc_t::ra_bits
NET_register_t ra_bits
Definition:
linux-net.h:62
NET_register_t
Definition:
linux-net.h:38
NET_register_t::selector
unsigned int selector
Definition:
linux-net.h:40
src
components
net
linux-net.h
Generated on Wed Dec 20 2023 18:12:51 for PAPI by
1.9.6