PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
papi_preset.h
Go to the documentation of this file.
1 
7 #ifndef _PAPI_PRESET /* _PAPI_PRESET */
8 #define _PAPI_PRESET
9 
12 typedef struct hwi_search {
13  /* eventcode should have a more specific name, like papi_preset! -pjm */
14  unsigned int event_code;
15  int derived;
17  char operation[PAPI_2MAX_STR_LEN];
18  char *note;
19 } hwi_search_t;
20 
23 typedef struct hwi_presets {
24  char *symbol;
25  char *short_descr;
26  char *long_descr;
29  unsigned int count;
30  unsigned int event_type;
31  char *postfix;
32  unsigned int code[PAPI_MAX_INFO_TERMS];
34  char *note;
36 
37 
40 typedef struct hwi_describe {
41  int value;
42  char *name;
43  char *descr;
45 
47 
50 int _xml_papi_hwi_setup_all_presets( char *arch);
51 int _papi_load_preset_table( char *name, int type, int cidx );
52 
54 
55 #endif /* _PAPI_PRESET */
#define PAPI_EVENTS_IN_DERIVED_EVENT
Definition: genpapifdef.c:39
unsigned int event_code
Definition: papi_preset.h:14
#define PAPI_2MAX_STR_LEN
Definition: papi.h:464
unsigned int event_type
Definition: papi_preset.h:30
int _papi_hwi_setup_all_presets(hwi_search_t *findem, int cidx)
Definition: papi_preset.c:37
static int cidx
Definition: event_info.c:40
hwi_presets_t _papi_hwi_presets[PAPI_MAX_PRESET_EVENTS]
static int native
Definition: event_info.c:39
int _papi_load_preset_table(char *pmu_str, int pmu_type, int cidx)
Definition: papi_preset.c:299
char * short_descr
Definition: papi_preset.h:25
char * note
Definition: papi_preset.h:18
hwi_search_t * preset_search_map
#define PAPI_MAX_INFO_TERMS
Definition: papi.h:897
#define PAPI_MAX_PRESET_EVENTS
Definition: fpapi.h:16
char * name
Definition: iozone.c:23648
char * long_descr
Definition: papi_preset.h:26
int _xml_papi_hwi_setup_all_presets(char *arch)
char * symbol
Definition: papi_preset.h:24
int _papi_hwi_cleanup_all_presets(void)
Definition: papi_preset.c:107
unsigned int count
Definition: papi_preset.h:29
char * postfix
Definition: papi_preset.h:31