PAPI 7.1.0.0
Loading...
Searching...
No Matches
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
25extern 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 */
42int _check_BGPM_error( int err, char* bgpmfunc );
43long_long _common_getEventValue( unsigned event_id, int EventGroup );
44int _common_deleteRecreate( int *EventGroup_ptr );
45int _common_rebuildEventgroup( int count, int *EventGroup_local, int *EventGroup_ptr );
46int _common_set_overflow_BGPM( int EventGroup,
47 int evt_idx,
48 int threshold,
49 void (*handler)(int, uint64_t, uint64_t, const ucontext_t *) );
static long count
static 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 _common_deleteRecreate(int *EventGroup_ptr)
int _common_rebuildEventgroup(int count, int *EventGroup_local, int *EventGroup_ptr)
long_long _common_getEventValue(unsigned event_id, int EventGroup)
int _check_BGPM_error(int err, char *bgpmfunc)
Return codes and api definitions.
#define long_long
Definition: papi.h:559
void handler(int EventSet, void *address, long long overflow_vector, void *context)
Definition: rapl_overflow.c:21