Home
last modified time | relevance | path

Searched refs:cpu_top (Results 1 – 4 of 4) sorted by relevance

/tools/power/cpupower/lib/
Dcpupower.c131 int get_cpu_topology(struct cpupower_topology *cpu_top) in get_cpu_topology() argument
135 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology()
136 if (cpu_top->core_info == NULL) in get_cpu_topology()
138 cpu_top->pkgs = cpu_top->cores = 0; in get_cpu_topology()
140 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology()
141 cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu); in get_cpu_topology()
145 &(cpu_top->core_info[cpu].pkg)) < 0) { in get_cpu_topology()
146 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology()
147 cpu_top->core_info[cpu].core = -1; in get_cpu_topology()
153 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology()
[all …]
Dcpupower.h28 int get_cpu_topology(struct cpupower_topology *cpu_top);
29 void cpu_topology_release(struct cpupower_topology cpu_top);
/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c41 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 …]
/tools/power/x86/intel-speed-select/
Disst-config.c205 struct cpu_topology cpu_top; in get_stored_topology_info() local
213 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info()
217 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info()
223 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info()
224 *core_id = cpu_top.core_id; in get_stored_topology_info()
225 *die_id = cpu_top.die_id; in get_stored_topology_info()
256 struct cpu_topology cpu_top; in store_cpu_topology() local
258 cpu_top.core_id = parse_int_file(0, in store_cpu_topology()
260 if (cpu_top.core_id < 0) in store_cpu_topology()
261 cpu_top.core_id = -1; in store_cpu_topology()
[all …]