6 #if defined(_AIX) || defined (__FreeBSD__) || defined (__APPLE__) 18 main(
int argc,
char **argv )
21 long long int values[] = {0,0};
35 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
retval );
42 test_skip( __FILE__, __LINE__,
"Inherit not supported by current component.\n",
retval );
44 test_skip( __FILE__, __LINE__,
"Inherit not supported by current component.\n",
retval );
51 if (!
quiet) printf(
"Trouble finding PAPI_TOT_CYC\n");
78 perror(
"waitpid()" );
86 printf(
"Test case inherit: parent starts, child works, parent stops.\n" );
87 printf(
"------------------------------------------------------------\n" );
89 printf(
"Test run : \t1\n" );
91 printf(
"PAPI_TOT_CYC: \t%lld\n",
values[0] );
92 printf(
"------------------------------------------------------------\n" );
94 printf(
"Verification:\n" );
95 printf(
"Row 1 at least %d\n",
NUM_FLOPS );
96 printf(
"Row 2 greater than row 1\n");
104 test_fail( __FILE__, __LINE__,
"PAPI_FP_INS", 1 );
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
PAPI_inherit_option_t inherit
A pointer to the following is passed to PAPI_set/get_opt()
int PAPI_set_opt(int option, PAPI_option_t *ptr)
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_add_named_event(int EventSet, const char *EventName)
int PAPI_library_init(int version)
int main(int argc, char **argv)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
int PAPI_query_event(int EventCode)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]