Lines Matching full:ratio

129 static int compute_metric(const char *name, struct value *vals, double *ratio)  in compute_metric()  argument
131 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
143 double ratio; in test_ipc() local
151 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
153 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
154 ratio == 1.5); in test_ipc()
160 double ratio; in test_frontend() local
170 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
172 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
173 ratio == 0.45); in test_frontend()
179 double ratio; in test_cache_miss_cycles() local
188 compute_metric("cache_miss_cycles", vals, &ratio) == 0); in test_cache_miss_cycles()
190 TEST_ASSERT_VAL("cache_miss_cycles failed, wrong ratio", in test_cache_miss_cycles()
191 ratio == 1.25); in test_cache_miss_cycles()
219 double ratio; in test_dcache_l2() local
231 compute_metric("DCache_L2_Hits", vals, &ratio) == 0); in test_dcache_l2()
233 TEST_ASSERT_VAL("DCache_L2_Hits failed, wrong ratio", in test_dcache_l2()
234 ratio == 0.3); in test_dcache_l2()
237 compute_metric("DCache_L2_Misses", vals, &ratio) == 0); in test_dcache_l2()
239 TEST_ASSERT_VAL("DCache_L2_Misses failed, wrong ratio", in test_dcache_l2()
240 ratio == 0.7); in test_dcache_l2()
246 double ratio; in test_recursion_fail() local
254 compute_metric("M1", vals, &ratio) == -1); in test_recursion_fail()
257 compute_metric("M3", vals, &ratio) == -1); in test_recursion_fail()
263 double ratio; in test_memory_bandwidth() local
271 compute_metric("L1D_Cache_Fill_BW", vals, &ratio) == 0); in test_memory_bandwidth()
272 TEST_ASSERT_VAL("L1D_Cache_Fill_BW, wrong ratio", in test_memory_bandwidth()
273 1.28 == ratio); in test_memory_bandwidth()
294 TEST_ASSERT_VAL("group IPC failed, wrong ratio", in test_metric_group()
297 TEST_ASSERT_VAL("group cache_miss_cycles failed, wrong ratio", in test_metric_group()