58 if (!
TESTS_QUIET) printf(
"Process %d \n", (
int ) getpid( ) );
102 printf(
"Process %d %-12s : \t%lld\n", (
int ) getpid( ),
event_name,
104 printf(
"Process %d PAPI_TOT_CYC : \t%lld\n", (
int ) getpid( ),
106 printf(
"Process %d Real usec : \t%lld\n", (
int ) getpid( ),
108 printf(
"Process %d Real cycles : \t%lld\n", (
int ) getpid( ),
123# if (defined(__ALPHA) && defined(__osf__))
124 test_skip( __FILE__, __LINE__,
"main: fork not supported.", 0 );
128 printf(
"This tests if PAPI_library_init(),2*fork(),PAPI_library_init() works.\n" );
133 if ( fork( ) == 0 ) {
143 if ( fork( ) == 0 ) {
Convert a numeric hardware event code to a name.
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.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
void free_test_space(long long **values, int num_tests)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
long long ** allocate_test_space(int num_tests, int num_events)
void PAPI_NORETURN test_pass(const char *filename)
int add_two_events(int *num_events, int *papi_event, int *mask)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)
int remove_test_events(int *EventSet, int mask)
char event_name[PAPI_MAX_STR_LEN]