PAPI  5.0.1.0
papi_preset.h
Go to the documentation of this file.
00001 
00007 #ifndef _PAPI_PRESET         /* _PAPI_PRESET */
00008 #define _PAPI_PRESET
00009 
00012 typedef struct hwi_search {   
00013   /* eventcode should have a more specific name, like papi_preset! -pjm */
00014    unsigned int event_code;   
00015    int derived;                          
00016    int native[PAPI_EVENTS_IN_DERIVED_EVENT];   
00017    char operation[PAPI_2MAX_STR_LEN];    
00018    char *note;                          
00019 } hwi_search_t;
00020 
00023 typedef struct hwi_presets {  
00024    char *symbol;      
00025    char *short_descr; 
00026    char *long_descr;  
00027    int derived_int;   
00029    unsigned int count;
00030    unsigned int event_type;
00031    char *postfix;
00032    unsigned int code[PAPI_MAX_INFO_TERMS];
00033    char *name[PAPI_MAX_INFO_TERMS];
00034    char *note;
00035 } hwi_presets_t;
00036 
00037 
00040 typedef struct hwi_describe {
00041    int value;                 
00042    char *name;                
00043    char *descr;               
00044 } hwi_describe_t;
00045 
00046 extern hwi_search_t *preset_search_map;
00047 
00048 int _papi_hwi_setup_all_presets( hwi_search_t * findem, int cidx);
00049 int _papi_hwi_cleanup_all_presets( void );
00050 int _xml_papi_hwi_setup_all_presets( char *arch);
00051 int _papi_load_preset_table( char *name, int type, int cidx );
00052 
00053 extern hwi_presets_t _papi_hwi_presets[PAPI_MAX_PRESET_EVENTS];
00054 
00055 #endif /* _PAPI_PRESET */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines