PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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;
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 {
56  char description[PAPI_MAX_STR_LEN];
58 
59 
60 typedef struct NET_reg_alloc
61 {
64 
65 
66 typedef struct NET_control_state
67 {
68  long long values[NET_MAX_COUNTERS]; // used for caching
69  long long lastupdate;
71 
72 
73 typedef struct NET_context
74 {
77 
78 
79 /************************* GLOBALS SECTION ***********************************
80  *******************************************************************************/
81 
82 #endif /* _PAPI_NET_H */
83 
84 /* vim:set ts=4 sw=4 sts=4 et: */
#define PAPI_MAX_STR_LEN
Definition: fpapi.h:43
Definition: linux-net.h:52
#define NET_MAX_COUNTERS
Definition: linux-net.h:34
NET_control_state_t state
Definition: linux-net.h:75
unsigned int selector
Definition: linux-net.h:40
NET_register_t ra_bits
Definition: linux-net.h:62
NET_register_t resources
Definition: linux-net.h:54
long long lastupdate
Definition: linux-net.h:69
char * name
Definition: iozone.c:23648
static long long values[NUM_EVENTS]
Definition: init_fini.c:10