/external/cpuinfo/test/ |
D | init.cc | 34 EXPECT_LT(processor->smt_id, core->processor_count); in TEST() 59 EXPECT_LT(i, core->processor_start + core->processor_count); in TEST() 84 EXPECT_LT(i, cluster->processor_start + cluster->processor_count); in TEST() 109 EXPECT_LT(i, package->processor_start + package->processor_count); in TEST() 122 EXPECT_LT(i, l1i->processor_start + l1i->processor_count); in TEST() 136 EXPECT_LT(i, l1d->processor_start + l1d->processor_count); in TEST() 150 EXPECT_LT(i, l2->processor_start + l2->processor_count); in TEST() 164 EXPECT_LT(i, l3->processor_start + l3->processor_count); in TEST() 178 EXPECT_LT(i, l4->processor_start + l4->processor_count); in TEST() 212 EXPECT_NE(0, core->processor_count); in TEST() [all …]
|
/external/cpuinfo/src/x86/linux/ |
D | init.c | 394 .processor_count = 1, in cpuinfo_x86_linux_init() 407 cores[core_index].processor_count++; in cpuinfo_x86_linux_init() 413 clusters[cluster_index].processor_count = 1; in cpuinfo_x86_linux_init() 424 clusters[cluster_index].processor_count++; in cpuinfo_x86_linux_init() 430 packages[package_index].processor_count = 1; in cpuinfo_x86_linux_init() 437 packages[package_index].processor_count++; in cpuinfo_x86_linux_init() 457 .processor_count = 1, in cpuinfo_x86_linux_init() 461 l1i[l1i_index].processor_count += 1; in cpuinfo_x86_linux_init() 482 .processor_count = 1, in cpuinfo_x86_linux_init() 486 l1d[l1d_index].processor_count += 1; in cpuinfo_x86_linux_init() [all …]
|
/external/cpuinfo/test/mock/ |
D | meizu-pro-7-plus.cc | 140 TEST(CORES, processor_count) { in TEST() argument 142 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 280 TEST(CLUSTERS, processor_count) { in TEST() argument 284 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 287 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 290 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 412 TEST(PACKAGES, processor_count) { in TEST() argument 414 ASSERT_EQ(10, cpuinfo_get_package(i)->processor_count); in TEST() 676 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 758 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() [all …]
|
D | meizu-pro-6s.cc | 140 TEST(CORES, processor_count) { in TEST() argument 142 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 276 TEST(CLUSTERS, processor_count) { in TEST() argument 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() 404 TEST(PACKAGES, processor_count) { in TEST() argument 406 ASSERT_EQ(10, cpuinfo_get_package(i)->processor_count); in TEST() 668 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 750 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() [all …]
|
D | meizu-pro-6.cc | 140 TEST(CORES, processor_count) { in TEST() argument 142 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 276 TEST(CLUSTERS, processor_count) { in TEST() argument 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() 404 TEST(PACKAGES, processor_count) { in TEST() argument 406 ASSERT_EQ(10, cpuinfo_get_package(i)->processor_count); in TEST() 668 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 750 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() [all …]
|
D | alcatel-revvl.cc | 116 TEST(CORES, processor_count) { in TEST() argument 118 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 195 TEST(CLUSTERS, processor_count) { in TEST() argument 199 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 202 ASSERT_EQ(1, cpuinfo_get_cluster(i)->processor_count); in TEST() 288 TEST(PACKAGES, processor_count) { in TEST() argument 290 ASSERT_EQ(5, cpuinfo_get_package(i)->processor_count); in TEST() 522 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 574 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 628 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | xiaomi-redmi-2a.cc | 109 TEST(CORES, processor_count) { in TEST() argument 111 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 188 TEST(CLUSTERS, processor_count) { in TEST() argument 192 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 195 ASSERT_EQ(1, cpuinfo_get_cluster(i)->processor_count); in TEST() 281 TEST(PACKAGES, processor_count) { in TEST() argument 283 ASSERT_EQ(5, cpuinfo_get_package(i)->processor_count); in TEST() 487 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 539 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 600 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | xiaomi-redmi-note-3.cc | 122 TEST(CORES, processor_count) { in TEST() argument 124 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 235 TEST(CLUSTERS, processor_count) { in TEST() argument 239 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 242 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 349 TEST(PACKAGES, processor_count) { in TEST() argument 351 ASSERT_EQ(6, cpuinfo_get_package(i)->processor_count); in TEST() 605 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 668 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 736 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | galaxy-a8-2018.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 249 TEST(CLUSTERS, processor_count) { in TEST() argument 253 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 256 ASSERT_EQ(6, cpuinfo_get_cluster(i)->processor_count); in TEST() 363 TEST(PACKAGES, processor_count) { in TEST() argument 365 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 623 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 688 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 756 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | galaxy-s9-global.cc | 141 TEST(CORES, processor_count) { in TEST() argument 143 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 275 TEST(CLUSTERS, processor_count) { in TEST() argument 277 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 382 TEST(PACKAGES, processor_count) { in TEST() argument 384 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 646 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 724 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 781 ASSERT_EQ(1, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 785 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | nexus5x.cc | 122 TEST(CORES, processor_count) { in TEST() argument 124 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 235 TEST(CLUSTERS, processor_count) { in TEST() argument 239 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 242 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 349 TEST(PACKAGES, processor_count) { in TEST() argument 351 ASSERT_EQ(6, cpuinfo_get_package(i)->processor_count); in TEST() 605 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 668 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 736 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST() [all …]
|
D | galaxy-s5-global.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 249 TEST(CLUSTERS, processor_count) { in TEST() argument 251 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 349 TEST(PACKAGES, processor_count) { in TEST() argument 351 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 568 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 633 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 701 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 705 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | moto-g-gen5.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 223 TEST(CLUSTERS, processor_count) { in TEST() argument 225 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 302 TEST(PACKAGES, processor_count) { in TEST() argument 304 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 508 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 560 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 621 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 625 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | galaxy-j7-tmobile.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 210 TEST(CLUSTERS, processor_count) { in TEST() argument 212 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 289 TEST(PACKAGES, processor_count) { in TEST() argument 291 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 523 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 575 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 629 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 633 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | lenovo-vibe-x2.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 230 TEST(CLUSTERS, processor_count) { in TEST() argument 232 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 330 TEST(PACKAGES, processor_count) { in TEST() argument 332 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 562 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 614 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 682 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 686 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | huawei-honor-6.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 249 TEST(CLUSTERS, processor_count) { in TEST() argument 251 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 349 TEST(PACKAGES, processor_count) { in TEST() argument 351 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 568 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 633 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 701 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 705 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | oppo-r9.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 223 TEST(CLUSTERS, processor_count) { in TEST() argument 225 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 309 TEST(PACKAGES, processor_count) { in TEST() argument 311 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 563 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 615 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 669 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 673 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | galaxy-a8-2016-duos.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 223 TEST(CLUSTERS, processor_count) { in TEST() argument 225 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 309 TEST(PACKAGES, processor_count) { in TEST() argument 311 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 515 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 567 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 628 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 632 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | moto-g-gen4.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 210 TEST(CLUSTERS, processor_count) { in TEST() argument 212 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 289 TEST(PACKAGES, processor_count) { in TEST() argument 291 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 523 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 575 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 636 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 640 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | galaxy-s7-us.cc | 116 TEST(CORES, processor_count) { in TEST() argument 118 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 212 TEST(CLUSTERS, processor_count) { in TEST() argument 214 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 305 TEST(PACKAGES, processor_count) { in TEST() argument 307 ASSERT_EQ(4, cpuinfo_get_package(i)->processor_count); in TEST() 539 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 591 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 652 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 656 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | galaxy-j7-uae.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 210 TEST(CLUSTERS, processor_count) { in TEST() argument 212 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 289 TEST(PACKAGES, processor_count) { in TEST() argument 291 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 523 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 575 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 629 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 633 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | xperia-c4-dual.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 210 TEST(CLUSTERS, processor_count) { in TEST() argument 212 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 289 TEST(PACKAGES, processor_count) { in TEST() argument 291 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 543 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 595 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 649 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 653 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | galaxy-c9-pro.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 249 TEST(CLUSTERS, processor_count) { in TEST() argument 251 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 349 TEST(PACKAGES, processor_count) { in TEST() argument 351 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 609 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 674 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 742 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 746 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
D | pixel-xl.cc | 116 TEST(CORES, processor_count) { in TEST() argument 118 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 212 TEST(CLUSTERS, processor_count) { in TEST() argument 214 ASSERT_EQ(2, cpuinfo_get_cluster(i)->processor_count); in TEST() 305 TEST(PACKAGES, processor_count) { in TEST() argument 307 ASSERT_EQ(4, cpuinfo_get_package(i)->processor_count); in TEST() 539 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 591 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 652 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 656 ASSERT_EQ(2, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
/external/cpuinfo/src/x86/windows/ |
D | init.c | 319 package->processor_count += 1; in cpuinfo_x86_windows_init() 323 cluster->processor_count += 1; in cpuinfo_x86_windows_init() 327 core->processor_count += 1; in cpuinfo_x86_windows_init() 437 .processor_count = 1, in cpuinfo_x86_windows_init() 441 l1i[l1i_index].processor_count += 1; in cpuinfo_x86_windows_init() 462 .processor_count = 1, in cpuinfo_x86_windows_init() 466 l1d[l1d_index].processor_count += 1; in cpuinfo_x86_windows_init() 487 .processor_count = 1, in cpuinfo_x86_windows_init() 491 l2[l2_index].processor_count += 1; in cpuinfo_x86_windows_init() 512 .processor_count = 1, in cpuinfo_x86_windows_init() [all …]
|