55 int mask1, papi_event;
115 printf(
"Thread %#x %s : \t%lld\n", (
int ) pthread_self( ),
117 printf(
"Thread %#x PAPI_TOT_CYC: \t%lld\n", (
int ) pthread_self( ),
119 printf(
"Thread %#x Real usec : \t%lld\n", (
int ) pthread_self( ),
121 printf(
"Thread %#x Real cycles : \t%lld\n", (
int ) pthread_self( ),
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
static int expected[NUM_THREADS]
unsigned long PAPI_thread_id(void)
int PAPI_register_thread(void)
int PAPI_overflow(int EventSet, int EventCode, int threshold, int flags, PAPI_overflow_handler_t handler)
static void handler(int EventSet, void *address, long long overflow_vector, void *context)
void free_test_space(long long **values, int num_tests)
static pthread_t myid[NUM_THREADS]
int PAPI_event_code_to_name(int EventCode, char *out)
long long PAPI_get_real_usec(void)
int PAPI_unregister_thread(void)
void test_fail(const char *file, int line, const char *call, int retval)
int add_two_nonderived_events(int *num_events, int *papi_event, int *mask)
long long PAPI_get_real_cyc(void)
static long long mythreshold
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
long long ** allocate_test_space(int num_tests, int num_events)
int remove_test_events(int *EventSet, int mask)