Searched refs:cpu_top (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/tools/power/cpupower/lib/ |
H A D | cpupower.c | 126 * Returns amount of cpus, negative on error, cpu_top must be 131 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 in get_cpu_topology() 188 cpu_topology_release(struct cpupower_topology cpu_top) cpu_topology_release() argument [all...] |
H A D | cpupower.h | 28 int get_cpu_topology(struct cpupower_topology *cpu_top); 29 void cpu_topology_release(struct cpupower_topology cpu_top);
|
/kernel/linux/linux-6.6/tools/power/cpupower/lib/ |
H A D | cpupower.c | 154 * Returns amount of cpus, negative on error, cpu_top must be 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 in get_cpu_topology() 216 cpu_topology_release(struct cpupower_topology cpu_top) cpu_topology_release() argument [all...] |
H A D | cpupower.h | 28 int get_cpu_topology(struct cpupower_topology *cpu_top); 29 void cpu_topology_release(struct cpupower_topology cpu_top);
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/ |
H A 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 in print_results() [all...] |
/kernel/linux/linux-6.6/tools/power/cpupower/utils/idle_monitor/ |
H A 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 in print_results() [all...] |
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/ |
H A D | isst-config.c | 205 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 in store_cpu_topology() [all...] |
/kernel/linux/linux-6.6/tools/power/x86/intel-speed-select/ |
H A D | isst-config.c | 242 struct cpu_topology cpu_top; in get_stored_topology_info() local 250 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info() 254 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info() 260 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info() 261 *core_id = cpu_top.core_id; in get_stored_topology_info() 262 *die_id = cpu_top.die_id; in get_stored_topology_info() 293 struct cpu_topology cpu_top; in store_cpu_topology() local 295 cpu_top.core_id = parse_int_file(0, in store_cpu_topology() 297 if (cpu_top in store_cpu_topology() [all...] |
Completed in 7 milliseconds