Home
last modified time | relevance | path

Searched refs:max_cpu_num (Results 1 – 3 of 3) sorted by relevance

/tools/perf/util/
Dcpumap.c16 static int max_cpu_num; variable
293 max_cpu_num = 4096; in set_max_cpu_num()
307 ret = get_max_num(path, &max_cpu_num); in set_max_cpu_num()
322 pr_err("Failed to read max cpus, using default of %d\n", max_cpu_num); in set_max_cpu_num()
363 if (unlikely(!max_cpu_num)) in cpu__max_cpu()
366 return max_cpu_num; in cpu__max_cpu()
395 cpunode_map = calloc(max_cpu_num, sizeof(int)); in init_cpunode_map()
401 for (i = 0; i < max_cpu_num; i++) in init_cpunode_map()
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c70 int max_cpu_num; variable
366 for (cpu = 0; cpu <= max_cpu_num; ++cpu) { in validate_cpu_selected_set()
382 cpu_selected_set = CPU_ALLOC((max_cpu_num + 1)); in parse_cmdline_cpu()
403 if (cpu > max_cpu_num) in parse_cmdline_cpu()
404 errx(1, "Requested cpu%d exceeds max cpu%d", cpu, max_cpu_num); in parse_cmdline_cpu()
413 for (cpu = 0; cpu <= max_cpu_num; cpu += 1) { in parse_cmdline_cpu()
423 for (cpu = 0; cpu <= max_cpu_num; cpu += 2) { in parse_cmdline_cpu()
434 for (cpu = 1; cpu <= max_cpu_num; cpu += 2) { in parse_cmdline_cpu()
446 if (cpu > max_cpu_num) in parse_cmdline_cpu()
447 errx(1, "Requested cpu%d exceeds max cpu%d", cpu, max_cpu_num); in parse_cmdline_cpu()
[all …]
/tools/power/x86/turbostat/
Dturbostat.c293 int max_cpu_num; member
2466 for (i = 0; i < topo.max_cpu_num + 1; ++i) { in free_fd_percpu()
2511 for (i = 0; i <= topo.max_cpu_num; ++i) { in free_all_buffers()
2573 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) in set_node_data()
2579 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) { in set_node_data()
2592 for (cpux = cpu; cpux <= topo.max_cpu_num; cpux++) { in set_node_data()
2603 if (cpu_count >= topo.max_cpu_num) in set_node_data()
2615 for (i = 0; i <= topo.max_cpu_num; i++) { in get_physical_node_id()
2634 int offset = topo.max_cpu_num + 1; in get_thread_siblings()
2638 thiscpu->put_ids = CPU_ALLOC((topo.max_cpu_num + 1)); in get_thread_siblings()
[all …]