|
PAPI
5.0.1.0
|
00001 /****************************/ 00002 /* THIS IS OPEN SOURCE CODE */ 00003 /****************************/ 00004 00021 /* Header required by BGPM */ 00022 #include "bgpm/include/bgpm.h" 00023 00024 /* Specific errors from BGPM lib */ 00025 #define CHECK_BGPM_ERROR(err, bgpmfunc) _check_BGPM_error( err, bgpmfunc ); 00026 00027 // Define gymnastics to create a compile time AT string. 00028 #define STRINGIFY(x) #x 00029 #define TOSTRING(x) STRINGIFY(x) 00030 #define _AT_ __FILE__ ":" TOSTRING(__LINE__) 00031 00032 /* return EXIT_FAILURE; \*/ 00033 00034 #define MAX_COUNTERS ( PEVT_LAST_EVENT + 1 ) 00035 //#define DEBUG_BGQ 00036 00037 00038 /************************* COMMON PROTOTYPES ********************************* 00039 *******************************************************************************/ 00040 00041 /* common prototypes for BGQ sustrate and BGPM components */ 00042 void _check_BGPM_error( int err, char* bgpmfunc ); 00043 long_long _common_getEventValue( unsigned event_id, int EventGroup ); 00044 void _common_deleteRecreate( int *EventGroup_ptr ); 00045 void _common_rebuildEventgroup( int count, int *EventGroup_local, int *EventGroup_ptr ); 00046