PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-bgp.h File Reference
Include dependency graph for linux-bgp.h:

Go to the source code of this file.

Data Structures

struct  bgp_context_t
 
struct  bgp_control_state_t
 
struct  bgp_reg_alloc_t
 
struct  bgp_register_t
 

Macros

#define MAX_COUNTERS   BGP_UPC_MAX_MONITORED_EVENTS
 
#define MAX_COUNTER_TERMS   MAX_COUNTERS
 

Typedefs

typedef bgp_reg_alloc_t hwd_reg_alloc_t
 
typedef bgp_register_t hwd_register_t
 
typedef bgp_control_state_t hwd_control_state_t
 
typedef bgp_context_t hwd_context_t
 

Functions

void _papi_hwd_lock (int)
 
void _papi_hwd_unlock (int)
 

Variables

hwi_search_tpreset_search_map
 

Macro Definition Documentation

#define MAX_COUNTER_TERMS   MAX_COUNTERS

Definition at line 20 of file linux-bgp.h.

#define MAX_COUNTERS   BGP_UPC_MAX_MONITORED_EVENTS

Definition at line 19 of file linux-bgp.h.

Typedef Documentation

Definition at line 61 of file linux-bgp.h.

Definition at line 60 of file linux-bgp.h.

Definition at line 58 of file linux-bgp.h.

Definition at line 59 of file linux-bgp.h.

Function Documentation

void _papi_hwd_lock ( int  )

Definition at line 93 of file linux-bgq.c.

94 {
95 #ifdef DEBUG_BGQ
96  printf( _AT_ " _papi_hwd_lock %d\n", lock);
97 #endif
98  assert( lock < PAPI_MAX_LOCK );
99 #if 1
100  UPC_Lock( &thdLocks[lock] );
101 #else
102  pthread_mutex_lock( &thdLocks[lock] );
103 #endif
104 
105 #ifdef DEBUG_BGQ
106  printf( _AT_ " _papi_hwd_lock got lock %d\n", lock );
107 #endif
108 
109  return;
110 }
#define printf
Definition: papi_test.h:125
#define PAPI_MAX_LOCK
Definition: papi_lock.h:18
#define _AT_
atomic_p lock[]
Definition: aix.c:25
UPC_Lock_t thdLocks[PAPI_MAX_LOCK]
Definition: linux-bgq.c:52
void _papi_hwd_unlock ( int  )

Definition at line 116 of file linux-bgq.c.

117 {
118 #ifdef DEBUG_BGQ
119  printf( _AT_ " _papi_hwd_unlock %d\n", lock );
120 #endif
121  assert( lock < PAPI_MAX_LOCK );
122 #if 1
123  UPC_Unlock( &thdLocks[lock] );
124 #else
125  pthread_mutex_unlock( &thdLocks[lock] );
126 #endif
127 
128  return;
129 }
#define printf
Definition: papi_test.h:125
#define PAPI_MAX_LOCK
Definition: papi_lock.h:18
#define _AT_
atomic_p lock[]
Definition: aix.c:25
UPC_Lock_t thdLocks[PAPI_MAX_LOCK]
Definition: linux-bgq.c:52

Variable Documentation

hwi_search_t* preset_search_map

Definition at line 123 of file perfctr-ppc64.c.