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 ) {
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int main(int argc, char **argv)
char event_name[PAPI_MAX_STR_LEN]
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
int add_two_events(int *num_events, int *papi_event, int *mask)
void free_test_space(long long **values, int num_tests)
int PAPI_event_code_to_name(int EventCode, char *out)
long long PAPI_get_real_usec(void)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
long long PAPI_get_real_cyc(void)
int PAPI_start(int EventSet)
long long ** allocate_test_space(int num_tests, int num_events)
int remove_test_events(int *EventSet, int mask)