Searched refs:core_info (Results 1 – 3 of 3) sorted by relevance
69 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology()70 if (cpu_top->core_info == NULL) in get_cpu_topology()74 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology()75 cpu_top->core_info[cpu].is_online = sysfs_is_cpu_online(cpu); in get_cpu_topology()79 &(cpu_top->core_info[cpu].pkg)) < 0) in get_cpu_topology()84 &(cpu_top->core_info[cpu].core)) < 0) in get_cpu_topology()88 qsort(cpu_top->core_info, cpus, sizeof(struct cpuid_core_info), in get_cpu_topology()94 last_pkg = cpu_top->core_info[0].pkg; in get_cpu_topology()96 if(cpu_top->core_info[cpu].pkg != last_pkg) { in get_cpu_topology()97 last_pkg = cpu_top->core_info[cpu].pkg; in get_cpu_topology()[all …]
112 struct cpuid_core_info *core_info; member
144 if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu)) in print_results()148 printf("%4d|", cpu_top.core_info[cpu].pkg); in print_results()150 printf("%4d|", cpu_top.core_info[cpu].core); in print_results()152 printf("%4d|", cpu_top.core_info[cpu].cpu); in print_results()166 cpu_top.core_info[cpu].cpu); in print_results()175 cpu_top.core_info[cpu].cpu); in print_results()194 if (!cpu_top.core_info[cpu].is_online) { in print_results()