/external/cpuinfo/src/emscripten/ |
D | init.c | 40 uint32_t processor_count = (uint32_t) logical_cores_count; in cpuinfo_emscripten_init() local 41 uint32_t core_count = processor_count; in cpuinfo_emscripten_init() 46 if (processor_count % 2 == 0) { in cpuinfo_emscripten_init() 48 core_count = processor_count / 2; in cpuinfo_emscripten_init() 53 if (processor_count > 4) { in cpuinfo_emscripten_init() 56 big_cluster_core_count = processor_count >= 8 ? 4 : 2; in cpuinfo_emscripten_init() 61 processors = calloc(processor_count, sizeof(struct cpuinfo_processor)); in cpuinfo_emscripten_init() 64 processor_count * sizeof(struct cpuinfo_processor), processor_count); in cpuinfo_emscripten_init() 67 cores = calloc(processor_count, sizeof(struct cpuinfo_core)); in cpuinfo_emscripten_init() 70 processor_count * sizeof(struct cpuinfo_core), processor_count); in cpuinfo_emscripten_init() [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/ |
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/test/mock/ |
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 | 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-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 | 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 | 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 | 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 | huawei-p9-lite.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() 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 | 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-s6.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 | 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 | 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 | 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 | nexus6p.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 | 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 | 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()
|
D | xiaomi-redmi-note-4.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 | oppo-r15.cc | 128 TEST(CORES, processor_count) { in TEST() argument 130 ASSERT_EQ(1, cpuinfo_get_core(i)->processor_count); in TEST() 236 TEST(CLUSTERS, processor_count) { in TEST() argument 238 ASSERT_EQ(4, cpuinfo_get_cluster(i)->processor_count); in TEST() 329 TEST(PACKAGES, processor_count) { in TEST() argument 331 ASSERT_EQ(8, cpuinfo_get_package(i)->processor_count); in TEST() 589 ASSERT_EQ(1, cpuinfo_get_l1i_cache(i)->processor_count); in TEST() 667 ASSERT_EQ(1, cpuinfo_get_l1d_cache(i)->processor_count); in TEST() 735 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST() 739 ASSERT_EQ(4, cpuinfo_get_l2_cache(i)->processor_count); in TEST()
|
/external/cpuinfo/src/arm/mach/ |
D | init.c | 293 .processor_count = threads_per_package, in cpuinfo_arm_mach_init() 373 .processor_count = threads_per_core, in cpuinfo_arm_mach_init() 413 .processor_count = 1, in cpuinfo_arm_mach_init() 418 .processor_count = 1, in cpuinfo_arm_mach_init() 427 uarchs[cluster_idx].processor_count++; in cpuinfo_arm_mach_init() 429 clusters[cluster_idx].processor_count++; in cpuinfo_arm_mach_init() 496 .processor_count = threads_per_l1, in cpuinfo_arm_mach_init() 520 .processor_count = threads_per_l1, in cpuinfo_arm_mach_init() 544 .processor_count = threads_per_l2, in cpuinfo_arm_mach_init() 568 .processor_count = threads_per_l3, in cpuinfo_arm_mach_init()
|
/external/cpuinfo/src/x86/windows/ |
D | init.c | 337 package->processor_count += 1; in cpuinfo_x86_windows_init() 341 cluster->processor_count += 1; in cpuinfo_x86_windows_init() 345 core->processor_count += 1; in cpuinfo_x86_windows_init() 452 .processor_count = 1, in cpuinfo_x86_windows_init() 456 l1i[l1i_index].processor_count += 1; in cpuinfo_x86_windows_init() 477 .processor_count = 1, in cpuinfo_x86_windows_init() 481 l1d[l1d_index].processor_count += 1; in cpuinfo_x86_windows_init() 502 .processor_count = 1, in cpuinfo_x86_windows_init() 506 l2[l2_index].processor_count += 1; in cpuinfo_x86_windows_init() 527 .processor_count = 1, in cpuinfo_x86_windows_init() [all …]
|
/external/cpuinfo/src/x86/mach/ |
D | init.c | 70 .processor_count = threads_per_package, in cpuinfo_x86_mach_init() 80 packages[i].processor_count = threads_per_package; in cpuinfo_x86_mach_init() 90 .processor_count = threads_per_core, in cpuinfo_x86_mach_init() 203 .processor_count = threads_per_l1, in cpuinfo_x86_mach_init() 227 .processor_count = threads_per_l1, in cpuinfo_x86_mach_init() 251 .processor_count = threads_per_l2, in cpuinfo_x86_mach_init() 275 .processor_count = threads_per_l3, in cpuinfo_x86_mach_init() 299 .processor_count = threads_per_l4, in cpuinfo_x86_mach_init() 332 .processor_count = mach_topology.threads, in cpuinfo_x86_mach_init()
|