Lines Matching refs:ASSERT_EQ
8 ASSERT_EQ(10, cpuinfo_get_processors_count()); in TEST()
17 ASSERT_EQ(0, cpuinfo_get_processor(i)->smt_id); in TEST()
23 ASSERT_EQ(cpuinfo_get_core(i), cpuinfo_get_processor(i)->core); in TEST()
32 ASSERT_EQ(cpuinfo_get_cluster(0), cpuinfo_get_processor(i)->cluster); in TEST()
38 ASSERT_EQ(cpuinfo_get_cluster(1), cpuinfo_get_processor(i)->cluster); in TEST()
44 ASSERT_EQ(cpuinfo_get_cluster(2), cpuinfo_get_processor(i)->cluster); in TEST()
52 ASSERT_EQ(cpuinfo_get_package(0), cpuinfo_get_processor(i)->package); in TEST()
61 ASSERT_EQ(i + 8, cpuinfo_get_processor(i)->linux_id); in TEST()
67 ASSERT_EQ(i + 2, cpuinfo_get_processor(i)->linux_id); in TEST()
73 ASSERT_EQ(i - 6, cpuinfo_get_processor(i)->linux_id); in TEST()
81 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
87 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
96 ASSERT_EQ(cpuinfo_get_l2_cache(0), cpuinfo_get_processor(i)->cache.l2); in TEST()
102 ASSERT_EQ(cpuinfo_get_l2_cache(1), cpuinfo_get_processor(i)->cache.l2); in TEST()
108 ASSERT_EQ(cpuinfo_get_l2_cache(2), cpuinfo_get_processor(i)->cache.l2); in TEST()
127 ASSERT_EQ(10, cpuinfo_get_cores_count()); in TEST()
136 ASSERT_EQ(i, cpuinfo_get_core(i)->processor_start); in TEST()
142 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST()
148 ASSERT_EQ(i, cpuinfo_get_core(i)->core_id); in TEST()
157 ASSERT_EQ(cpuinfo_get_cluster(0), cpuinfo_get_core(i)->cluster); in TEST()
163 ASSERT_EQ(cpuinfo_get_cluster(1), cpuinfo_get_core(i)->cluster); in TEST()
169 ASSERT_EQ(cpuinfo_get_cluster(2), cpuinfo_get_core(i)->cluster); in TEST()
177 ASSERT_EQ(cpuinfo_get_package(0), cpuinfo_get_core(i)->package); in TEST()
183 ASSERT_EQ(cpuinfo_vendor_arm, cpuinfo_get_core(i)->vendor); in TEST()
192 ASSERT_EQ(cpuinfo_uarch_cortex_a72, cpuinfo_get_core(i)->uarch); in TEST()
202 ASSERT_EQ(cpuinfo_uarch_cortex_a53, cpuinfo_get_core(i)->uarch); in TEST()
213 ASSERT_EQ(UINT32_C(0x410FD081), cpuinfo_get_core(i)->midr); in TEST()
223 ASSERT_EQ(UINT32_C(0x410FD034), cpuinfo_get_core(i)->midr); in TEST()
234 ASSERT_EQ(UINT64_C(2522000000), cpuinfo_get_core(i)->frequency); in TEST()
240 ASSERT_EQ(UINT64_C(2002000000), cpuinfo_get_core(i)->frequency); in TEST()
246 ASSERT_EQ(UINT64_C(1547000000), cpuinfo_get_core(i)->frequency); in TEST()
253 ASSERT_EQ(3, cpuinfo_get_clusters_count()); in TEST()
264 ASSERT_EQ(0, cpuinfo_get_cluster(i)->processor_start); in TEST()
267 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_start); in TEST()
270 ASSERT_EQ(6, cpuinfo_get_cluster(i)->processor_start); in TEST()
280 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST()
283 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST()
286 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST()
296 ASSERT_EQ(0, cpuinfo_get_cluster(i)->core_start); in TEST()
299 ASSERT_EQ(2, cpuinfo_get_cluster(i)->core_start); in TEST()
302 ASSERT_EQ(6, cpuinfo_get_cluster(i)->core_start); in TEST()
312 ASSERT_EQ(2, cpuinfo_get_cluster(i)->core_count); in TEST()
315 ASSERT_EQ(4, cpuinfo_get_cluster(i)->core_count); in TEST()
318 ASSERT_EQ(4, cpuinfo_get_cluster(i)->core_count); in TEST()
326 ASSERT_EQ(i, cpuinfo_get_cluster(i)->cluster_id); in TEST()
332 ASSERT_EQ(cpuinfo_get_package(0), cpuinfo_get_cluster(i)->package); in TEST()
338 ASSERT_EQ(cpuinfo_vendor_arm, cpuinfo_get_cluster(i)->vendor); in TEST()
346 ASSERT_EQ(cpuinfo_uarch_cortex_a72, cpuinfo_get_cluster(i)->uarch); in TEST()
350 ASSERT_EQ(cpuinfo_uarch_cortex_a53, cpuinfo_get_cluster(i)->uarch); in TEST()
360 ASSERT_EQ(UINT32_C(0x410FD081), cpuinfo_get_cluster(i)->midr); in TEST()
364 ASSERT_EQ(UINT32_C(0x410FD034), cpuinfo_get_cluster(i)->midr); in TEST()
374 ASSERT_EQ(UINT64_C(2522000000), cpuinfo_get_cluster(i)->frequency); in TEST()
377 ASSERT_EQ(UINT64_C(2002000000), cpuinfo_get_cluster(i)->frequency); in TEST()
380 ASSERT_EQ(UINT64_C(1547000000), cpuinfo_get_cluster(i)->frequency); in TEST()
387 ASSERT_EQ(1, cpuinfo_get_packages_count()); in TEST()
392 ASSERT_EQ("MediaTek MT6797T", in TEST()
400 ASSERT_EQ(0, cpuinfo_get_package(i)->processor_start); in TEST()
406 ASSERT_EQ(10, cpuinfo_get_package(i)->processor_count); in TEST()
412 ASSERT_EQ(0, cpuinfo_get_package(i)->core_start); in TEST()
418 ASSERT_EQ(10, cpuinfo_get_package(i)->core_count); in TEST()
424 ASSERT_EQ(0, cpuinfo_get_package(i)->cluster_start); in TEST()
430 ASSERT_EQ(3, cpuinfo_get_package(i)->cluster_count); in TEST()
591 ASSERT_EQ(10, cpuinfo_get_l1i_caches_count()); in TEST()
603 ASSERT_EQ(48 * 1024, cpuinfo_get_l1i_cache(i)->size); in TEST()
613 ASSERT_EQ(16 * 1024, cpuinfo_get_l1i_cache(i)->size); in TEST()
624 ASSERT_EQ(3, cpuinfo_get_l1i_cache(i)->associativity); in TEST()
634 ASSERT_EQ(2, cpuinfo_get_l1i_cache(i)->associativity); in TEST()
642 ASSERT_EQ(cpuinfo_get_l1i_cache(i)->size, in TEST()
649 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->partitions); in TEST()
655 ASSERT_EQ(64, cpuinfo_get_l1i_cache(i)->line_size); in TEST()
661 ASSERT_EQ(0, cpuinfo_get_l1i_cache(i)->flags); in TEST()
667 ASSERT_EQ(i, cpuinfo_get_l1i_cache(i)->processor_start); in TEST()
668 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST()
673 ASSERT_EQ(10, cpuinfo_get_l1d_caches_count()); in TEST()
685 ASSERT_EQ(32 * 1024, cpuinfo_get_l1d_cache(i)->size); in TEST()
695 ASSERT_EQ(16 * 1024, cpuinfo_get_l1d_cache(i)->size); in TEST()
706 ASSERT_EQ(2, cpuinfo_get_l1d_cache(i)->associativity); in TEST()
716 ASSERT_EQ(4, cpuinfo_get_l1d_cache(i)->associativity); in TEST()
724 ASSERT_EQ(cpuinfo_get_l1d_cache(i)->size, in TEST()
731 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->partitions); in TEST()
737 ASSERT_EQ(64, cpuinfo_get_l1d_cache(i)->line_size); in TEST()
743 ASSERT_EQ(0, cpuinfo_get_l1d_cache(i)->flags); in TEST()
749 ASSERT_EQ(i, cpuinfo_get_l1d_cache(i)->processor_start); in TEST()
750 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST()
755 ASSERT_EQ(3, cpuinfo_get_l2_caches_count()); in TEST()
766 ASSERT_EQ(1 * 1024 * 1024, cpuinfo_get_l2_cache(i)->size); in TEST()
770 ASSERT_EQ(256 * 1024, cpuinfo_get_l2_cache(i)->size); in TEST()
778 ASSERT_EQ(16, cpuinfo_get_l2_cache(i)->associativity); in TEST()
784 ASSERT_EQ(cpuinfo_get_l2_cache(i)->size, in TEST()
791 ASSERT_EQ(1, cpuinfo_get_l2_cache(i)->partitions); in TEST()
797 ASSERT_EQ(64, cpuinfo_get_l2_cache(i)->line_size); in TEST()
805 ASSERT_EQ(CPUINFO_CACHE_INCLUSIVE, cpuinfo_get_l2_cache(i)->flags); in TEST()
809 ASSERT_EQ(0, cpuinfo_get_l2_cache(i)->flags); in TEST()
819 ASSERT_EQ(0, cpuinfo_get_l2_cache(i)->processor_start); in TEST()
820 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
823 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_start); in TEST()
824 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
827 ASSERT_EQ(6, cpuinfo_get_l2_cache(i)->processor_start); in TEST()
828 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
835 ASSERT_EQ(0, cpuinfo_get_l3_caches_count()); in TEST()
840 ASSERT_EQ(0, cpuinfo_get_l4_caches_count()); in TEST()