Go to the source code of this file.
◆ enum_native_events()
| static void enum_native_events |
( |
FILE * |
f, |
|
|
int |
cidx |
|
) |
| |
|
static |
Definition at line 205 of file papi_xml_event_info.c.
212 fprintf(
f,
" <eventset type=\"NATIVE\">\n" );
245 fprintf(
f,
" </event>\n" );
251 fprintf(
f,
" </event>\n" );
256 fprintf(
f,
" </eventset>\n" );
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
static int test_event(int evt)
int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx)
static void xmlize_event(FILE *f, PAPI_event_info_t *info, int num)
◆ enum_preset_events()
| static void enum_preset_events |
( |
FILE * |
f, |
|
|
int |
cidx |
|
) |
| |
|
static |
Definition at line 173 of file papi_xml_event_info.c.
180 fprintf(
f,
" <eventset type=\"PRESET\">\n" );
193 fprintf(
f,
" </event>\n" );
197 fprintf(
f,
" </eventset>\n" );
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
static int test_event(int evt)
int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx)
static void xmlize_event(FILE *f, PAPI_event_info_t *info, int num)
◆ papi_xml_hwinfo()
| static int papi_xml_hwinfo |
( |
FILE * |
f | ) |
|
|
static |
Definition at line 82 of file papi_xml_event_info.c.
89 fprintf(
f,
"<hardware>\n" );
91 fprintf(
f,
" <vendor string=\"");
94 fprintf(
f,
" <vendorCode value=\"%d\"/>\n", hwinfo->
vendor );
95 fprintf(
f,
" <model string=\"");
97 fprintf(
f,
"\"/>\n");
98 fprintf(
f,
" <modelCode value=\"%d\"/>\n", hwinfo->
model );
99 fprintf(
f,
" <cpuRevision value=\"%f\"/>\n", hwinfo->
revision );
100 fprintf(
f,
" <cpuID>\n" );
101 fprintf(
f,
" <family value=\"%d\"/>\n", hwinfo->
cpuid_family );
102 fprintf(
f,
" <model value=\"%d\"/>\n", hwinfo->
cpuid_model );
104 fprintf(
f,
" </cpuID>\n" );
105 fprintf(
f,
" <cpuMaxMegahertz value=\"%d\"/>\n", hwinfo->
cpu_max_mhz );
106 fprintf(
f,
" <cpuMinMegahertz value=\"%d\"/>\n", hwinfo->
cpu_min_mhz );
107 fprintf(
f,
" <threads value=\"%d\"/>\n", hwinfo->
threads );
108 fprintf(
f,
" <cores value=\"%d\"/>\n", hwinfo->
cores );
109 fprintf(
f,
" <sockets value=\"%d\"/>\n", hwinfo->
sockets );
110 fprintf(
f,
" <nodes value=\"%d\"/>\n", hwinfo->
nnodes );
111 fprintf(
f,
" <cpuPerNode value=\"%d\"/>\n", hwinfo->
ncpu );
112 fprintf(
f,
" <totalCPUs value=\"%d\"/>\n", hwinfo->
totalcpus );
113 fprintf(
f,
"</hardware>\n" );
char model_string[PAPI_MAX_STR_LEN]
char vendor_string[PAPI_MAX_STR_LEN]
static int xmlize(const char *msg, FILE *f)
const PAPI_hw_info_t * PAPI_get_hardware_info(void)
◆ test_event()
| static int test_event |
( |
int |
evt | ) |
|
|
static |
Definition at line 126 of file papi_xml_event_info.c.
136 fprintf( stderr,
"Error removing event from eventset\n" );
int PAPI_add_event(int EventSet, int EventCode)
int PAPI_remove_event(int EventSet, int EventCode)
◆ usage()
| static void usage |
( |
char * |
argv[] | ) |
|
|
static |
◆ xmlize()
| static int xmlize |
( |
const char * |
msg, |
|
|
FILE * |
f |
|
) |
| |
|
static |
Definition at line 46 of file papi_xml_event_info.c.
53 for ( op = msg; *op !=
'\0'; op++ ) {
56 fprintf(
f,
""" );
59 fprintf(
f,
"&" );
62 fprintf(
f,
"'" );
71 fprintf(
f,
"%c", *op);
◆ xmlize_event()
Definition at line 147 of file papi_xml_event_info.c.
151 fprintf(
f,
" <event index=\"%d\" name=\"",num);
153 fprintf(
f,
"\" desc=\"");
155 fprintf(
f,
"\">\n");
158 fprintf(
f,
" <modifier name=\"");
160 fprintf(
f,
"\" desc=\"");
162 fprintf(
f,
"\"> </modifier>\n");
char long_descr[PAPI_HUGE_STR_LEN]
char symbol[PAPI_HUGE_STR_LEN]
static int xmlize(const char *msg, FILE *f)
◆ cidx
◆ EventSet
◆ native
◆ preset