19{
21 long long int values[] = {0,0};
25
27
30
33
35 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
retval );
36
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 );
45 } else {
47 }
48 }
49
51 if (!
quiet) printf(
"Trouble finding PAPI_TOT_CYC\n");
53 }
54
57
63 }
64
67 }
68
71
75 exit( 0 );
76 }
77 if ( waitpid(
pid, &status, 0 ) == -1 ) {
78 perror( "waitpid()" );
79 exit( 1 );
80 }
81
84
86 printf( "Test case inherit: parent starts, child works, parent stops.\n" );
87 printf( "------------------------------------------------------------\n" );
88
89 printf( "Test run : \t1\n" );
91 printf(
"PAPI_TOT_CYC: \t%lld\n",
values[0] );
92 printf( "------------------------------------------------------------\n" );
93
94 printf( "Verification:\n" );
95 printf(
"Row 1 at least %d\n",
NUM_FLOPS );
96 printf( "Row 2 greater than row 1\n");
97 }
98
101 }
102
104 test_fail( __FILE__, __LINE__,
"PAPI_FP_INS", 1 );
105 }
106
108
109 return 0;
110
111}
add PAPI preset or native hardware event to an event set
add PAPI preset or native hardware event by name to an EventSet
Assign a component index to an existing but empty EventSet.
Create a new empty PAPI EventSet.
initialize the PAPI library.
Query if PAPI event exists.
Set PAPI library or event set options.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
static long long values[NUM_EVENTS]
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)
A pointer to the following is passed to PAPI_set/get_opt()
PAPI_inherit_option_t inherit