PAPI  5.0.1.0
linux-bgq.h File Reference

This file has the source code for a component that enables PAPI-C to access hardware monitoring counters for BG/Q through the BGPM library. More...

Include dependency graph for linux-bgq.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bgq_preset_search_entry_t
struct  bgq_context_t
struct  bgq_control_state_t
struct  bgq_reg_alloc_t
struct  bgq_register_t
struct  bgq_native_event_entry_t

Defines

#define BGQ_PUNIT_MAX_COUNTERS   PEVT_PUNIT_LAST_EVENT
#define MAX_COUNTER_TERMS   BGQ_PUNIT_MAX_COUNTERS
#define OPCODE_BUF   ( MAX_COUNTERS + MAX_COUNTERS )

Typedefs

typedef bgq_reg_alloc_t hwd_reg_alloc_t
typedef bgq_register_t hwd_register_t
typedef bgq_control_state_t hwd_control_state_t
typedef bgq_context_t hwd_context_t

Functions

void _papi_hwd_lock (int)
void _papi_hwd_unlock (int)

Detailed Description

CVS: $Id$

Author:
Heike Jagode jagode@eecs.utk.edu Mods: <your name="" here>=""> <your email="" address>=""> Blue Gene/Q CPU component: BGPM / Punit

Tested version of bgpm (early access)

Definition in file linux-bgq.h.


Define Documentation

#define BGQ_PUNIT_MAX_COUNTERS   PEVT_PUNIT_LAST_EVENT

Definition at line 45 of file linux-bgq.h.

Definition at line 46 of file linux-bgq.h.

#define OPCODE_BUF   ( MAX_COUNTERS + MAX_COUNTERS )

Definition at line 48 of file linux-bgq.h.


Typedef Documentation

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

Definition at line 115 of file linux-bgq.h.

Definition at line 113 of file linux-bgq.h.

Definition at line 114 of file linux-bgq.h.


Function Documentation

void _papi_hwd_lock ( int  )

< Used with setting up array

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

{
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_lock %d\n", lock);
#endif
    assert( lock < PAPI_MAX_LOCK );
#if 1
    UPC_Lock( &thdLocks[lock] );
#else
    pthread_mutex_lock( &thdLocks[lock] );
#endif
    
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_lock got lock %d\n", lock );
#endif
    
    return;
}
void _papi_hwd_unlock ( int  )

< Used with setting up array

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

{
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_unlock %d\n", lock );
#endif
    assert( lock < PAPI_MAX_LOCK );
#if 1
    UPC_Unlock( &thdLocks[lock] );
#else
    pthread_mutex_unlock( &thdLocks[lock] );
#endif
    
    return;
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines