PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-bgq-common.h
Go to the documentation of this file.
1 /****************************/
2 /* THIS IS OPEN SOURCE CODE */
3 /****************************/
4 
21 #include "papi.h"
22 /* Header required by BGPM */
23 #include "bgpm/include/bgpm.h"
24 
25 extern int _papi_hwi_publish_error( char *error );
26 
27 // Define gymnastics to create a compile time AT string.
28 #define STRINGIFY(x) #x
29 #define TOSTRING(x) STRINGIFY(x)
30 #define _AT_ __FILE__ ":" TOSTRING(__LINE__)
31 
32 /* return EXIT_FAILURE; \*/
33 
34 #define MAX_COUNTERS ( PEVT_LAST_EVENT + 1 )
35 //#define DEBUG_BGQ
36 
37 
38 /************************* COMMON PROTOTYPES *********************************
39  *******************************************************************************/
40 
41 /* common prototypes for BGQ sustrate and BGPM components */
42 int _check_BGPM_error( int err, char* bgpmfunc );
43 long_long _common_getEventValue( unsigned event_id, int EventGroup );
44 int _common_deleteRecreate( int *EventGroup_ptr );
45 int _common_rebuildEventgroup( int count, int *EventGroup_local, int *EventGroup_ptr );
46 int _common_set_overflow_BGPM( int EventGroup,
47  int evt_idx,
48  int threshold,
49  void (*handler)(int, uint64_t, uint64_t, const ucontext_t *) );
int _common_deleteRecreate(int *EventGroup_ptr)
int _check_BGPM_error(int err, char *bgpmfunc)
int count
Definition: iozone.c:22422
Return codes and api definitions.
err
Definition: linux-cuda.c:323
int _common_rebuildEventgroup(int count, int *EventGroup_local, int *EventGroup_ptr)
long_long _common_getEventValue(unsigned event_id, int EventGroup)
void handler(int EventSet, void *address, long long overflow_vector, void *context)
Definition: rapl_overflow.c:16
int threshold
int _common_set_overflow_BGPM(int EventGroup, int evt_idx, int threshold, void(*handler)(int, uint64_t, uint64_t, const ucontext_t *))
int _papi_hwi_publish_error(char *error)
#define long_long
Definition: papi.h:549