Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 117 of file zero_fork.c.
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 ) {
void test_pass(const char *filename)
void test_skip(const char *file, int line, const char *call, int retval)
int tests_quiet(int argc, char **argv)
◆ process_fini()
| void process_fini |
( |
void |
| ) |
|
Definition at line 89 of file zero_fork.c.
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( ),
int PAPI_stop(int EventSet, long long *values)
char event_name[PAPI_MAX_STR_LEN]
void free_test_space(long long **values, int num_tests)
long long PAPI_get_real_usec(void)
void test_fail(const char *file, int line, const char *call, int retval)
long long PAPI_get_real_cyc(void)
int remove_test_events(int *EventSet, int mask)
◆ process_init()
| void process_init |
( |
void |
| ) |
|
Definition at line 56 of file zero_fork.c.
58 if (!
TESTS_QUIET) printf(
"Process %d \n", (
int ) getpid( ) );
char event_name[PAPI_MAX_STR_LEN]
int PAPI_library_init(int version)
int add_two_events(int *num_events, int *papi_event, int *mask)
int PAPI_event_code_to_name(int EventCode, char *out)
long long PAPI_get_real_usec(void)
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)
◆ elapsed_cyc
◆ elapsed_us
◆ event_name
◆ EventSet1
◆ mask1
◆ num_events1
◆ num_tests
◆ PAPI_event
◆ retval
◆ values