Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/util/
Dcpumap.h59 int max_cpu_num; variable
75 if (unlikely(!max_cpu_num)) in cpu__max_cpu()
78 return max_cpu_num; in cpu__max_cpu()
Dcpumap.c390 max_cpu_num = 4096; in set_max_cpu_num()
403 ret = get_max_num(path, &max_cpu_num); in set_max_cpu_num()
407 pr_err("Failed to read max cpus, using default of %d\n", max_cpu_num); in set_max_cpu_num()
445 cpunode_map = calloc(max_cpu_num, sizeof(int)); in init_cpunode_map()
451 for (i = 0; i < max_cpu_num; i++) in init_cpunode_map()
/linux-4.4.14/tools/power/x86/turbostat/
Dturbostat.c208 int max_cpu_num; member
1687 if (topo.max_cpu_num < cpu) in count_cpus()
1688 topo.max_cpu_num = cpu; in count_cpus()
2855 topo.max_cpu_num = 0; in topology_probe()
2861 fprintf(stderr, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe()
2863 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
2870 cpu_present_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
2873 cpu_present_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
2880 cpu_affinity_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
2883 cpu_affinity_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
[all …]