/************************* DEFINES SECTION ***********************************
*******************************************************************************/
/* this number assumes that there will never be more events than indicated */
#define DUMMY_MAX_COUNTERS 8
/* Structure that stores private information of each event */
typedef struct DUMMY_register {
/* This is used by the framework.It likes it to be !=0 to do somehting*/
unsigned int selector;
} DUMMY_register_t;
/*
* The following structures mimic the ones used by other components. It is more
* convenient to use them like that as programming with PAPI makes specific
* assumptions for them.
*/
/* This structure is used to build the table of events */
typedef struct DUMMY_native_event_entry {
DUMMY_register_t resources;
char name[PAPI_MAX_STR_LEN];
char description[PAPI_MAX_STR_LEN];
} DUMMY_native_event_entry_t;
typedef struct DUMMY_reg_alloc {
DUMMY_register_t ra_bits;
} DUMMY_reg_alloc_t;
typedef struct DUMMY_control_state {
long_long counter[DUMMY_MAX_COUNTERS]; // may be used for caching
long_long lastupdate;
} DUMMY_control_state_t;
typedef struct DUMMY_context {
DUMMY_control_state_t state;
} DUMMY_context_t;