Searched refs:cpu_top (Results 1 – 3 of 3) sorted by relevance
132 int get_cpu_topology(struct cpupower_topology *cpu_top) in get_cpu_topology() argument136 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology()137 if (cpu_top->core_info == NULL) in get_cpu_topology()139 cpu_top->pkgs = cpu_top->cores = 0; in get_cpu_topology()141 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology()142 cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu); in get_cpu_topology()146 &(cpu_top->core_info[cpu].pkg)) < 0) { in get_cpu_topology()147 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology()148 cpu_top->core_info[cpu].core = -1; in get_cpu_topology()154 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology()[all …]
28 int get_cpu_topology(struct cpupower_topology *cpu_top);29 void cpu_topology_release(struct cpupower_topology cpu_top);
43 static struct cpupower_topology cpu_top; variable146 if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu)) in print_results()148 if (!cpu_top.core_info[cpu].is_online && in print_results()149 cpu_top.core_info[cpu].pkg == -1) in print_results()153 printf("%4d|", cpu_top.core_info[cpu].pkg); in print_results()155 printf("%4d|", cpu_top.core_info[cpu].core); in print_results()157 printf("%4d|", cpu_top.core_info[cpu].cpu); in print_results()171 cpu_top.core_info[cpu].cpu); in print_results()180 cpu_top.core_info[cpu].cpu); in print_results()199 if (!cpu_top.core_info[cpu].is_online && in print_results()[all …]