Go to the source code of this file.
◆ _papi_hwi_cleanup_all_presets()
int _papi_hwi_cleanup_all_presets |
( |
void |
| ) |
|
Definition at line 114 of file papi_preset.c.
115{
116 int preset_index,
cidx;
117 unsigned int j;
118
120 preset_index++ ) {
124 }
128 }
131 }
132 }
133
136 }
137
138#if defined(ITANIUM2) || defined(ITANIUM3)
139
143 }
144#endif
145
147}
struct papi_vectors * _papi_hwd[]
#define PAPI_MAX_PRESET_EVENTS
hwi_presets_t _papi_hwi_presets[PAPI_MAX_PRESET_EVENTS]
hwi_search_t * preset_search_map
◆ _papi_hwi_setup_all_presets()
Definition at line 44 of file papi_preset.c.
45{
46 int i, pnum, did_something = 0;
47 unsigned int preset_index, j, k;
48
49
50
51
52
53 if ( findem != NULL ) {
55 ( findem[pnum].event_code != 0 ); pnum++ ) {
56
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 INTDBG(
"Counting number of terms for preset index %d, "
75 "search map index %d.\n", preset_index, pnum );
77 j = 0;
80 j++;
81 }
82 else if ( j ) {
83 break;
84 }
86 }
87
88 INTDBG(
"This preset has %d terms.\n", j );
90
92 for(k=0;k<j;k++) {
95 }
96
99 }
100
103
104 did_something++;
105 }
106 }
107
108 _papi_hwd[
cidx]->cmp_info.num_preset_events += did_something;
109
111}
#define PAPI_PRESET_AND_MASK
#define INTDBG(format, args...)
#define PAPI_EVENTS_IN_DERIVED_EVENT
unsigned int code[PAPI_MAX_INFO_TERMS]
int native[PAPI_EVENTS_IN_DERIVED_EVENT]
◆ _papi_load_preset_table()
int _papi_load_preset_table |
( |
char * |
name, |
|
|
int |
type, |
|
|
int |
cidx |
|
) |
| |
Definition at line 771 of file papi_preset.c.
771 {
772 SUBDBG(
"ENTER: pmu_str: %s, pmu_type: %d, cidx: %d\n", pmu_str, pmu_type,
cidx);
773
775
776
781 }
782
783
785
788}
#define SUBDBG(format, args...)
static int papi_load_derived_events(char *pmu_str, int pmu_type, int cidx, int preset_flag)
◆ _xml_papi_hwi_setup_all_presets()
int _xml_papi_hwi_setup_all_presets |
( |
char * |
arch | ) |
|
◆ _papi_hwi_presets
◆ preset_search_map