PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-bgp.h
Go to the documentation of this file.
1 #ifndef _LINUX_BGP_H
2 #define _LINUX_BGP_H
3 
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include <string.h>
7 #include <unistd.h>
8 #include <sys/profil.h>
9 #include <assert.h>
10 #include <limits.h>
11 #include <signal.h>
12 #include <errno.h>
13 #include <sys/ucontext.h>
14 #include <spi/bgp_SPI.h>
15 
16 #include <stdarg.h>
17 #include <ctype.h>
18 
19 #define MAX_COUNTERS BGP_UPC_MAX_MONITORED_EVENTS
20 #define MAX_COUNTER_TERMS MAX_COUNTERS
21 
22 #include "papi.h"
23 #include "papi_preset.h"
24 //#include "papi_defines.h"
26 
27 // Context structure not used...
28 typedef struct bgp_context
29 {
30  int reserved;
32 
33 // Control state structure... Holds local copy of read counters...
34 typedef struct bgp_control_state
35 {
36  long_long counters[BGP_UPC_MAX_MONITORED_EVENTS];
38 
39 // Register allocation structure
40 typedef struct bgp_reg_alloc
41 {
44 
45 // Register structure not used...
46 typedef struct bgp_register
47 {
48  int reserved;
50 
51 /* Override void* definitions from PAPI framework layer */
52 /* with typedefs to conform to PAPI component layer code. */
53 #undef hwd_reg_alloc_t
54 #undef hwd_register_t
55 #undef hwd_control_state_t
56 #undef hwd_context_t
57 
62 
63 extern void _papi_hwd_lock( int );
64 extern void _papi_hwd_unlock( int );
65 
66 #include "linux-bgp-context.h"
67 
69 
70 #endif
#define hwd_control_state_t
#define hwd_reg_alloc_t
_papi_hwd_bgp_native_event_id_t
Return codes and api definitions.
#define hwd_context_t
#define _papi_hwd_unlock(lck)
Definition: aix-lock.h:11
hwi_search_t * preset_search_map
#define long_long
Definition: papi.h:550
#define _papi_hwd_lock(lck)
Definition: aix-lock.h:6
#define hwd_register_t
_papi_hwd_bgp_native_event_id_t id
Definition: linux-bgp.h:42