32main(
int argc,
char **argv )
56 printf(
"Test case: Clock latency and resolution.\n" );
57 printf(
"Note: Virtual timers are proportional to # CPUs.\n" );
58 printf(
"------------------------------------------------\n" );
61 pthread_attr_init( &attr );
63#ifdef PTHREAD_CREATE_UNDETACHED
64 pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_UNDETACHED );
67#ifdef PTHREAD_SCOPE_SYSTEM
68 retval = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
92 pthread_join(
t1, NULL );
93 pthread_join(
t2, NULL );
94 pthread_join( t3, NULL );
95 pthread_join( t4, NULL );
static struct timeval t1 t2
initialize the PAPI library.
Notify PAPI that a thread has 'appeared'.
Initialize thread support in the PAPI library.
Notify PAPI that a thread has 'disappeared'.
void * pthread_main(void *arg)
Return codes and api definitions.
unsigned long int pthread_t
int tests_quiet(int argc, char **argv)
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)