Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 11 of file max_multiplex.c.
29 test_fail(__FILE__, __LINE__,
"Multiplex not supported", 1);
35 printf(
"Maximum multiplexed counters=%d\n",max_multiplex);
39 printf(
"Trying to multiplex as many as possible:\n");
49 test_fail(__FILE__, __LINE__,
"PAPI_assign_eventset_component",
82 printf(
"Added %d of theoretical max %d\n",added,max_multiplex);
85 if (events_tried<max_multiplex) {
87 printf(
"Ran out of events before we ran out of room\n");
90 else if (added!=max_multiplex) {
92 "Couldn't max out multiplexed events", 1);
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
int PAPI_enum_event(int *EventCode, int modifier)
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
#define PAPI_MAX_MPX_CTRS
int PAPI_library_init(int version)
int PAPI_get_opt(int option, PAPI_option_t *ptr)
char symbol[PAPI_HUGE_STR_LEN]
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
int PAPI_multiplex_init(void)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_set_multiplex(int EventSet)