Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 21 of file perf_event_uncore_multiple.c.
26 long long values[1],values2[1];
27 char *uncore_event=NULL;
45 printf(
"perf_event_uncore component not found\n");
47 test_skip(__FILE__,__LINE__,
"perf_event_uncore component not found",0);
54 printf(
"perf_event_uncore component disabled\n");
56 test_skip(__FILE__,__LINE__,
"uncore component disabled",0);
61 if (uncore_event==NULL) {
63 printf(
"Could not find an uncore event for this processor\n");
66 "PAPI does not support uncore on this processor",
95 printf(
"Could not PAPI_CPU_ATTACH\n");
98 "this test; trying to PAPI_CPU_ATTACH; need to run as root",
113 printf(
"Could not set PAPI_GRN_SYS\n");
116 "this test; trying to set PAPI_GRN_SYS",
131 printf(
"Could not set PAPI_DOM_ALL\n");
134 "this test; trying to set PAPI_DOM_ALL; need to run as root",
142 printf(
"Error trying to use event %s\n", uncore_event);
151 printf(
"Error trying to add PAPI_TOT_CYC\n");
183 printf(
"Uncore and regular event test:\n");
184 printf(
"Using uncore event %s\n",uncore_event);
185 printf(
"\t%s: %lld\n",uncore_event,
values[0]);
186 printf(
"\t%s: %lld\n",
"PAPI_TOT_CYC",values2[0]);
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
void test_pass(const char *filename)
A pointer to the following is passed to PAPI_set/get_opt()
int PAPI_set_opt(int option, PAPI_option_t *ptr)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_add_named_event(int EventSet, const char *EventName)
int PAPI_library_init(int version)
int PAPI_get_component_index(const char *name)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
char * get_uncore_event(char *event, int size)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]