27main(
int argc,
char **argv )
32 long long values1[2], values2[2];
53 sprintf( add_event_str,
"PAPI_add_event[%s]",
event_name );
63 if (!
quiet) printf(
"Trouble adding event\n");
82 for (
i = eventcnt - 1;
i >= 0;
i-- ) {
137 printf(
"Test case 0: start, stop.\n" );
138 printf(
"-----------------------------------------------\n" );
140 printf(
"Default domain is: %d (%s)\n",
tmp,
143 printf(
"Default granularity is: %d (%s)\n",
tmp,
145 printf(
"Using %d iterations of c += a*b\n",
NUM_FLOPS );
147 (
"-------------------------------------------------------------------------\n" );
149 printf(
"Test type : \t 1\t 2\n" );
151 sprintf( add_event_str,
"%-12s : \t",
event_name );
152 printf(
TAB2, add_event_str, values1[0], values2[1] );
153 printf(
TAB2,
"PAPI_TOT_CYC : \t", values1[1], values2[0] );
158 (
"-------------------------------------------------------------------------\n" );
160 printf(
"Verification: none\n" );
add PAPI preset or native hardware event to an event set
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Convert a numeric hardware event code to a name.
Get PAPI library or event set options.
get real time counter value in clock cycles Returns the total real time passed since some arbitrary s...
get real time counter value in microseconds
initialize the PAPI library.
list the events in an event set
Query if PAPI event exists.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
#define PAPI_2MAX_STR_LEN
char events[MAX_EVENTS][BUFSIZ]
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
char * stringify_all_domains(int domains)
char * stringify_granularity(int granularity)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)