100 const char *
name =
"unknown";
124 printf(
"[%d] %s, num_events = %d\n", getpid(),
130 test_fail(
name, __LINE__,
"PAPI_create_eventset failed", 1 );
136 if (!
quiet) printf(
"Trouble adding event.\n");
159 printf(
"[%d] %s, %s\n", getpid(),
name,
"stop");
168 printf(
"[%d] %s, %s\n", getpid(),
name,
"end");
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
static void run(const char *str, int len)
int PAPI_overflow(int EventSet, int EventCode, int threshold, int flags, PAPI_overflow_handler_t handler)
static struct timeval start
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
static void my_handler(int EventSet, void *pc, long long ovec, void *context)
static int Event[MAX_EVENTS]
int PAPI_create_eventset(int *EventSet)
static void do_cycles(int program_time)
int gettimeofday(void *ptr1, void *ptr2)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
static int Threshold[MAX_EVENTS]
int PAPI_start(int EventSet)
static struct timeval start last