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
37typedef 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
52typedef struct NET_native_event_entry
53{
56 char description[PAPI_MAX_STR_LEN];
58
59
60typedef struct NET_reg_alloc
61{
64
65
66typedef struct NET_control_state
67{
68 long long values[NET_MAX_COUNTERS]; // used for caching
69 long long lastupdate;
71
72
73typedef 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: f90papi.h:77
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
#define NET_MAX_COUNTERS
Definition: linux-net.h:34
const char * name
Definition: rocs.c:225
NET_control_state_t state
Definition: linux-net.h:75
long long lastupdate
Definition: linux-net.h:69
Definition: linux-net.h:53
NET_register_t resources
Definition: linux-net.h:54
NET_register_t ra_bits
Definition: linux-net.h:62
unsigned int selector
Definition: linux-net.h:40