Home
last modified time | relevance | path

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

/tools/perf/util/
Dcpumap.c11 static int max_cpu_num; variable
444 max_cpu_num = 4096; in set_max_cpu_num()
457 ret = get_max_num(path, &max_cpu_num); in set_max_cpu_num()
461 pr_err("Failed to read max cpus, using default of %d\n", max_cpu_num); in set_max_cpu_num()
502 if (unlikely(!max_cpu_num)) in cpu__max_cpu()
505 return max_cpu_num; in cpu__max_cpu()
525 cpunode_map = calloc(max_cpu_num, sizeof(int)); in init_cpunode_map()
531 for (i = 0; i < max_cpu_num; i++) in init_cpunode_map()
/tools/power/x86/turbostat/
Dturbostat.c227 int max_cpu_num; member
1641 for (i = 0; i < topo.max_cpu_num; ++i) { in free_fd_percpu()
1893 if (topo.max_cpu_num < cpu) in count_cpus()
1894 topo.max_cpu_num = cpu; in count_cpus()
1930 if (cpu_number > topo.max_cpu_num) { in snapshot_proc_interrupts()
1931 warn("/proc/interrupts: cpu%d: > %d", cpu_number, topo.max_cpu_num); in snapshot_proc_interrupts()
3434 topo.max_cpu_num = 0; in topology_probe()
3440 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe()
3442 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
3449 cpu_present_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
[all …]