33 main(
int argc,
char **argv )
65 if (!
quiet) printf(
"Trouble adding events\n");
70 printf(
"\n Incorrect usage of read and accum.\n" );
71 printf(
" Some cycles are counted twice\n" );
107 "(Reading stopped counters)\n" );
111 printf(
"\n Incorrect usage of read and accum.\n" );
112 printf(
" Another incorrect use\n" );
135 "(Intermediate counts...)\n" );
152 printf(
"\n Correct usage of read and accum.\n" );
153 printf(
" PAPI_reset and PAPI_accum used to skip counting\n" );
154 printf(
" a section of the code.\n" );
173 printf(
"%12s %12s (Counters reset)\n",
"",
"" );
184 printf(
"----------------------------------\n" );
185 printf(
"Verification: The last line in each experiment should be\n" );
186 printf(
"approximately twice the value of the first line.\n" );
188 (
"The third case illustrates one possible way to accomplish this.\n" );
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int PAPI_reset(int EventSet)
static int Events[NUM_EVENTS]
int PAPI_add_events(int EventSet, int *Events, int number)
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_accum(int EventSet, long long *values)
int PAPI_library_init(int version)
int PAPI_create_eventset(int *EventSet)
int PAPI_query_event(int EventCode)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_read(int EventSet, long long *values)
int PAPI_start(int EventSet)
int main(int argc, char **argv)
static long long values[NUM_EVENTS]