38{
39 long long min, max, min2, max2;
40
42 printf( "-----------------------------------------------------------------\n" );
43 printf(
"Using %d iterations of c += a*b\n",
NUM_FLOPS );
44 printf( "-------------------------------------------------------------\n" );
45 }
46 if ( test_case ==
CASE2 ) {
48 printf( "Test type : Before Create Before Add Between Adds\n" );
53 printf( "-------------------------------------------------------------\n" );
54 printf( "Verification:\n" );
55 printf( "Both rows equal 'n N N' where n << N\n" );
56 return;
57 }
58 }
else if ( test_case ==
CHANGE ) {
62 test_fail( __FILE__, __LINE__,
"PAPI_TOT_INS", 1 );
63
68 test_fail( __FILE__, __LINE__,
"PAPI_TOT_CYC", 1 );
69
71 printf( "Test type : PAPI_DOM_ALL PAPI_DOM_KERNEL PAPI_DOM_USER\n" );
76 printf( "-------------------------------------------------------------\n" );
77
78 printf( "Verification:\n" );
79 printf( "Both rows approximately equal '(N+n) n N', where n << N\n" );
80 printf( "Column 1 approximately equals column 2 plus column 3\n" );
81 }
84 printf( "Test type : PAPI_DOM_ALL All-minus-supervisor Supervisor-only\n" );
89 printf( "-------------------------------------------------------------\n" );
90 printf( "Verification:\n" );
91 printf( "Both rows approximately equal '(N+n) n N', where n << N\n" );
92 printf( "Column 1 approximately equals column 2 plus column 3\n" );
93 }
94 } else {
97
99 max2 =
100 (
long long ) ( (
double ) ( double )
values[0][1] *
102
104 printf( "Test type : PAPI_DOM_ALL PAPI_DOM_KERNEL PAPI_DOM_USER\n" );
109 printf( "-------------------------------------------------------------\n" );
110 printf( "Verification:\n" );
111 printf( "Both rows approximately equal '(N+n) n N', where n << N\n" );
112 printf( "Column 1 approximately equals column 2 plus column 3\n" );
113 }
115 test_fail( __FILE__, __LINE__,
"PAPI_TOT_INS", 1 );
116
119 test_fail( __FILE__, __LINE__,
"PAPI_TOT_CYC", 1 );
120 }
121
125 "Verify non-zero count for all domain types", 1 );
126
129 if (!
TESTS_QUIET) printf(
"WARNING: No events counted in supervisor context. This is expected in a non-virtualized environment.\n" );
130 } else {
132 "Verify non-zero count for all domain types", 1 );
133 }
134 }
135}