Searched refs:cpu_topology (Results 1 – 12 of 12) sorted by relevance
| /linux/include/linux/ |
| H A D | arch_topology.h | 62 struct cpu_topology { struct 74 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 76 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) 77 #define topology_cluster_id(cpu) (cpu_topology[cpu].cluster_id) 78 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 79 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 80 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) 81 #define topology_cluster_cpumask(cpu) (&cpu_topology[cpu].cluster_sibling) 82 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling) 105 return cpu_topology[cpu].thread_id != -1; in topology_core_has_smt()
|
| /linux/drivers/base/ |
| H A D | arch_topology.c | 512 cpu_topology[cpu].package_id = package_id; in parse_core() 513 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 514 cpu_topology[cpu].core_id = core_id; in parse_core() 515 cpu_topology[cpu].thread_id = i; in parse_core() 533 cpu_topology[cpu].package_id = package_id; in parse_core() 534 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 535 cpu_topology[cpu].core_id = core_id; in parse_core() 684 if (cpu_topology[cpu].package_id < 0) { in parse_dt_topology() 695 struct cpu_topology cpu_topology[NR_CPUS]; variable 696 EXPORT_SYMBOL_GPL(cpu_topology); [all …]
|
| /linux/arch/parisc/kernel/ |
| H 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/tools/perf/util/ |
| H A D | cputopo.h | 7 struct cpu_topology { struct 62 const struct cpu_topology *online_topology(void); 64 struct cpu_topology *cpu_topology__new(void); 65 void cpu_topology__delete(struct cpu_topology *tp); 67 bool cpu_topology__smt_on(const struct cpu_topology *topology); 69 bool cpu_topology__core_wide(const struct cpu_topology *topology,
|
| H A D | cputopo.c | 35 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() 142 void cpu_topology__delete(struct cpu_topology *tp) in cpu_topology__delete() 161 bool cpu_topology__smt_on(const struct cpu_topology *topology) in cpu_topology__smt_on() 176 bool cpu_topology__core_wide(const struct cpu_topology *topology, in cpu_topology__core_wide() 242 const struct cpu_topology *online_topology(void) in online_topology() 244 static const struct cpu_topology *topology; in online_topology() 256 struct cpu_topology *cpu_topology__new(void) in cpu_topology__new() 258 struct cpu_topology *tp = NULL; in cpu_topology__new()
|
| H A D | tool_pmu.c | 360 const struct cpu_topology *topology; in tool_pmu__read_event()
|
| H A D | header.c | 590 struct cpu_topology *tp; in write_cpu_topology() 3435 FEAT_OPR(CPU_TOPOLOGY, cpu_topology, true),
|
| /linux/arch/arm/kernel/ |
| H 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/arch/arc/kernel/ |
| H A D | setup.c | 642 static DEFINE_PER_CPU(struct cpu, cpu_topology); 649 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|
| /linux/tools/power/x86/intel-speed-select/ |
| H A D | isst-config.c | 76 struct cpu_topology { struct 257 struct cpu_topology cpu_top; in get_stored_topology_info() 308 struct cpu_topology cpu_top; in store_cpu_topology()
|
| /linux/tools/perf/ |
| H A D | builtin-record.c | 3908 struct cpu_topology *topo; in record__init_thread_core_masks() 3926 struct cpu_topology *topo; in record__init_thread_package_masks()
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2292 struct cpu_topology { struct 5915 int get_physical_node_id(struct cpu_topology *thiscpu) in get_physical_node_id() 5989 int get_thread_siblings(struct cpu_topology *thiscpu) in get_thread_siblings() 9118 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
|