Searched refs:cpu_top (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/power/cpupower/lib/ |
D | cpupower.c | 159 int get_cpu_topology(struct cpupower_topology *cpu_top) in get_cpu_topology() argument 163 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology() 164 if (cpu_top->core_info == NULL) in get_cpu_topology() 166 cpu_top->pkgs = cpu_top->cores = 0; in get_cpu_topology() 168 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology() 169 cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu); in get_cpu_topology() 173 &(cpu_top->core_info[cpu].pkg)) < 0) { in get_cpu_topology() 174 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology() 175 cpu_top->core_info[cpu].core = -1; in get_cpu_topology() 181 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology() [all …]
|
D | cpupower.h | 28 int get_cpu_topology(struct cpupower_topology *cpu_top); 29 void cpu_topology_release(struct cpupower_topology cpu_top);
|
/linux-6.12.1/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 41 static struct cpupower_topology cpu_top; variable 149 if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu)) in print_results() 151 if (!cpu_top.core_info[cpu].is_online && in print_results() 152 cpu_top.core_info[cpu].pkg == -1) in print_results() 156 printf("%4d|", cpu_top.core_info[cpu].pkg); in print_results() 158 printf("%4d|", cpu_top.core_info[cpu].core); in print_results() 160 printf("%4d|", cpu_top.core_info[cpu].cpu); in print_results() 174 cpu_top.core_info[cpu].cpu); in print_results() 183 cpu_top.core_info[cpu].cpu); in print_results() 202 if (!cpu_top.core_info[cpu].is_online && in print_results() [all …]
|
/linux-6.12.1/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 246 struct cpu_topology cpu_top; in get_stored_topology_info() local 254 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info() 258 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info() 264 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info() 265 *core_id = cpu_top.core_id; in get_stored_topology_info() 266 *die_id = cpu_top.die_id; in get_stored_topology_info() 297 struct cpu_topology cpu_top; in store_cpu_topology() local 299 cpu_top.core_id = parse_int_file(0, in store_cpu_topology() 301 if (cpu_top.core_id < 0) in store_cpu_topology() 302 cpu_top.core_id = -1; in store_cpu_topology() [all …]
|
/linux-6.12.1/tools/power/cpupower/bindings/python/ |
D | raw_pylibcpupower.swg | 200 int get_cpu_topology(struct cpupower_topology *cpu_top); 202 void cpu_topology_release(struct cpupower_topology cpu_top);
|