/linux-6.3-rc2/arch/s390/include/asm/ |
A D | topology.h | 27 extern struct cpu_topology_s390 cpu_topology[NR_CPUS]; 29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 30 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) 31 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_mask) 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 33 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask) 34 #define topology_book_id(cpu) (cpu_topology[cpu].book_id) 35 #define topology_book_cpumask(cpu) (&cpu_topology[cpu].book_mask) 36 #define topology_drawer_id(cpu) (cpu_topology[cpu].drawer_id) 38 #define topology_cpu_dedicated(cpu) (cpu_topology[cpu].dedicated) [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | arch_topology.h | 66 struct cpu_topology { struct 78 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 80 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) 81 #define topology_cluster_id(cpu) (cpu_topology[cpu].cluster_id) 82 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 83 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 84 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) 85 #define topology_cluster_cpumask(cpu) (&cpu_topology[cpu].cluster_sibling) 86 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling)
|
/linux-6.3-rc2/drivers/base/ |
A D | arch_topology.c | 517 cpu_topology[cpu].core_id = core_id; in parse_core() 518 cpu_topology[cpu].thread_id = i; in parse_core() 539 cpu_topology[cpu].core_id = core_id; in parse_core() 673 if (cpu_topology[cpu].package_id < 0) { in parse_dt_topology() 689 struct cpu_topology cpu_topology[NR_CPUS]; variable 690 EXPORT_SYMBOL_GPL(cpu_topology); 734 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 743 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks() 774 struct cpu_topology *cpu_topo = &cpu_topology[cpu]; in clear_cpu_topology() 793 struct cpu_topology *cpu_topo = &cpu_topology[cpu]; in reset_cpu_topology() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | topology.c | 30 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 57 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology() 60 cpuid_topo->package_id = cpu_topology[cpu].package_id; in store_cpu_topology() 66 max_socket = max(max_socket, cpu_topology[cpu].package_id); in store_cpu_topology() 76 cpu_topology[cpuid].core_id, in store_cpu_topology() 77 cpu_topology[cpuid].package_id); in store_cpu_topology()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | cputopo.h | 7 struct cpu_topology { struct 59 struct cpu_topology *cpu_topology__new(void); 60 void cpu_topology__delete(struct cpu_topology *tp); 62 bool cpu_topology__smt_on(const struct cpu_topology *topology); 64 bool cpu_topology__core_wide(const struct cpu_topology *topology,
|
A D | smt.h | 5 struct cpu_topology; 8 bool smt_on(const struct cpu_topology *topology); 15 const struct cpu_topology *topology);
|
A D | smt.c | 7 bool smt_on(const struct cpu_topology *topology) in smt_on() 26 const struct cpu_topology *topology) in core_wide()
|
A D | cputopo.c | 34 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() 141 void cpu_topology__delete(struct cpu_topology *tp) in cpu_topology__delete() 160 bool cpu_topology__smt_on(const struct cpu_topology *topology) in cpu_topology__smt_on() 175 bool cpu_topology__core_wide(const struct cpu_topology *topology, in cpu_topology__core_wide() 241 struct cpu_topology *cpu_topology__new(void) in cpu_topology__new() 243 struct cpu_topology *tp = NULL; in cpu_topology__new()
|
A D | expr.c | 405 static struct cpu_topology *topology; in expr__get_literal()
|
A D | header.c | 585 struct cpu_topology *tp; in write_cpu_topology() 3392 FEAT_OPR(CPU_TOPOLOGY, cpu_topology, true),
|
/linux-6.3-rc2/arch/arm/kernel/ |
A D | topology.c | 187 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 227 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() 228 cpu_topology[cpuid].core_id, in store_cpu_topology() 229 cpu_topology[cpuid].package_id, mpidr); in store_cpu_topology()
|
/linux-6.3-rc2/arch/arm64/kernel/ |
A D | topology.c | 57 cpu_topology[cpu].thread_id = topology_id; in parse_acpi_topology() 59 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology() 61 cpu_topology[cpu].thread_id = -1; in parse_acpi_topology() 62 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology() 65 cpu_topology[cpu].cluster_id = topology_id; in parse_acpi_topology() 67 cpu_topology[cpu].package_id = topology_id; in parse_acpi_topology()
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | topology.c | 61 struct cpu_topology_s390 cpu_topology[NR_CPUS]; variable 62 EXPORT_SYMBOL_GPL(cpu_topology); 134 topo = &cpu_topology[lcpu + i]; in add_cpus_to_mask() 256 topo = &cpu_topology[cpu]; in update_cpu_masks() 272 topo = &cpu_topology[cpu]; in update_cpu_masks() 274 topo_package = &cpu_topology[pkg_first]; in update_cpu_masks() 277 topo_sibling = &cpu_topology[sibling]; in update_cpu_masks() 499 return &cpu_topology[cpu].thread_mask; in cpu_thread_mask() 505 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask() 510 return &cpu_topology[cpu].book_mask; in cpu_book_mask() [all …]
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | expr.c | 157 struct cpu_topology *topology = cpu_topology__new(); in test__expr()
|
/linux-6.3-rc2/arch/arc/kernel/ |
A D | setup.c | 689 static DEFINE_PER_CPU(struct cpu, cpu_topology); 696 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|
/linux-6.3-rc2/tools/power/x86/intel-speed-select/ |
A D | isst-config.c | 70 struct cpu_topology { struct 223 struct cpu_topology cpu_top; in get_stored_topology_info() 274 struct cpu_topology cpu_top; in store_cpu_topology()
|
/linux-6.3-rc2/tools/power/x86/turbostat/ |
A D | turbostat.c | 550 struct cpu_topology { struct 2912 int get_physical_node_id(struct cpu_topology *thiscpu) in get_physical_node_id() 2930 int get_thread_siblings(struct cpu_topology *thiscpu) in get_thread_siblings() 5876 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-record.c | 3756 struct cpu_topology *topo; in record__init_thread_core_masks() 3774 struct cpu_topology *topo; in record__init_thread_package_masks()
|