Lines Matching refs:max_cpu_num
566 int max_cpu_num; member
2772 for (i = 0; i < topo.max_cpu_num + 1; ++i) { in free_fd_percpu()
2817 for (i = 0; i <= topo.max_cpu_num; ++i) { in free_all_buffers()
2878 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) in set_node_data()
2884 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) { in set_node_data()
2897 for (cpux = cpu; cpux <= topo.max_cpu_num; cpux++) { in set_node_data()
2907 if (cpu_count >= topo.max_cpu_num) in set_node_data()
2919 for (i = 0; i <= topo.max_cpu_num; i++) { in get_physical_node_id()
2937 int offset = topo.max_cpu_num + 1; in get_thread_siblings()
2941 thiscpu->put_ids = CPU_ALLOC((topo.max_cpu_num + 1)); in get_thread_siblings()
2947 size = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in get_thread_siblings()
3073 topo.max_cpu_num = 0; in set_max_cpu_num()
3075 topo.max_cpu_num += BITMASK_SIZE; in set_max_cpu_num()
3077 topo.max_cpu_num--; /* 0 based */ in set_max_cpu_num()
3129 if (cpu_number > topo.max_cpu_num) { in snapshot_proc_interrupts()
3130 warn("/proc/interrupts: cpu%d: > %d", cpu_number, topo.max_cpu_num); in snapshot_proc_interrupts()
3461 per_cpu_msr_sum = calloc(topo.max_cpu_num + 1, sizeof(struct msr_sum_array)); in msr_sum_record()
5506 fd_instr_count_percpu = calloc(topo.max_cpu_num + 1, sizeof(int)); in linux_perf_init()
5874 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe()
5876 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
5883 cpu_present_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
5886 cpu_present_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
5902 cpu_affinity_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
5905 cpu_affinity_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
5914 for (i = 0; i <= topo.max_cpu_num; ++i) { in topology_probe()
5984 for (i = 0; i <= topo.max_cpu_num; ++i) { in topology_probe()
6080 fd_percpu = calloc(topo.max_cpu_num + 1, sizeof(int)); in allocate_fd_percpu()
6091 irqs_per_cpu = calloc(topo.max_cpu_num + 1, sizeof(int)); in allocate_irq_buffers()
6093 err(-1, "calloc %d", topo.max_cpu_num + 1); in allocate_irq_buffers()