PAPI 7.1.0.0
Loading...
Searching...
No Matches
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...
28typedef struct bgp_context
29{
32
33// Control state structure... Holds local copy of read counters...
34typedef struct bgp_control_state
35{
36 long_long counters[BGP_UPC_MAX_MONITORED_EVENTS];
38
39// Register allocation structure
40typedef struct bgp_reg_alloc
41{
44
45// Register structure not used...
46typedef struct bgp_register
47{
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
63extern void _papi_hwd_lock( int );
64extern void _papi_hwd_unlock( int );
65
66#include "linux-bgp-context.h"
67
69
70#endif
#define _papi_hwd_unlock(lck)
Definition: aix-lock.h:11
#define _papi_hwd_lock(lck)
Definition: aix-lock.h:6
_papi_hwd_bgp_native_event_id_t
bgp_reg_alloc_t hwd_reg_alloc_t
Definition: linux-bgp.h:58
bgp_context_t hwd_context_t
Definition: linux-bgp.h:61
bgp_control_state_t hwd_control_state_t
Definition: linux-bgp.h:60
hwi_search_t * preset_search_map
bgp_register_t hwd_register_t
Definition: linux-bgp.h:59
Return codes and api definitions.
#define long_long
Definition: papi.h:559
_papi_hwd_bgp_native_event_id_t id
Definition: linux-bgp.h:42