/linux-master/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) 142 void cpu_topology__delete(struct cpu_topology *tp) 161 bool cpu_topology__smt_on(const struct cpu_topology *topology) 176 bool cpu_topology__core_wide(const struct cpu_topology *topology, 242 const struct cpu_topology *online_topology(void) 244 static const struct cpu_topology *topology; 256 struct cpu_topology *cpu_topology__new(void) 258 struct cpu_topology *tp = NULL;
|
H A D | expr.c | 423 const struct cpu_topology *topology;
|
H A D | header.c | 588 struct cpu_topology *tp; 3447 FEAT_OPR(CPU_TOPOLOGY, cpu_topology, true),
|
/linux-master/arch/s390/include/asm/ |
H 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) 37 #define topology_drawer_cpumask(cpu) (&cpu_topology[cp [all...] |
/linux-master/include/linux/ |
H A D | arch_topology.h | 73 struct cpu_topology { struct 85 extern struct cpu_topology cpu_topology[NR_CPUS]; 87 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) 88 #define topology_cluster_id(cpu) (cpu_topology[cpu].cluster_id) 89 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 90 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 91 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) 92 #define topology_cluster_cpumask(cpu) (&cpu_topology[cpu].cluster_sibling) 93 #define topology_llc_cpumask(cpu) (&cpu_topology[cp [all...] |
/linux-master/arch/parisc/kernel/ |
H A D | topology.c | 26 * which prevents simultaneous write access to cpu_topology array 30 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; 57 cpuid_topo->core_id = cpu_topology[cpu].core_id; 60 cpuid_topo->package_id = cpu_topology[cpu].package_id; 66 max_socket = max(max_socket, cpu_topology[cpu].package_id); 76 cpu_topology[cpuid].core_id, 77 cpu_topology[cpuid].package_id); 82 * which prevent simultaneous write access to cpu_topology array
|
/linux-master/drivers/base/ |
H A D | arch_topology.c | 550 cpu_topology[cpu].package_id = package_id; 551 cpu_topology[cpu].cluster_id = cluster_id; 552 cpu_topology[cpu].core_id = core_id; 553 cpu_topology[cpu].thread_id = i; 572 cpu_topology[cpu].package_id = package_id; 573 cpu_topology[cpu].cluster_id = cluster_id; 574 cpu_topology[cpu].core_id = core_id; 708 if (cpu_topology[cpu].package_id < 0) { 724 struct cpu_topology cpu_topology[NR_CPU variable in typeref:struct:cpu_topology 725 EXPORT_SYMBOL_GPL(cpu_topology); variable [all...] |
/linux-master/arch/arm/kernel/ |
H A D | topology.c | 183 * which prevents simultaneous write access to cpu_topology array 187 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; 227 cpuid, cpu_topology[cpuid].thread_id, 228 cpu_topology[cpuid].core_id, 229 cpu_topology[cpuid].package_id, mpidr); 237 * which prevent simultaneous write access to cpu_topology array
|
/linux-master/arch/arm64/kernel/ |
H A D | topology.c | 42 * cpu_topology array. 57 cpu_topology[cpu].thread_id = topology_id; 59 cpu_topology[cpu].core_id = topology_id; 61 cpu_topology[cpu].thread_id = -1; 62 cpu_topology[cpu].core_id = topology_id; 65 cpu_topology[cpu].cluster_id = topology_id; 67 cpu_topology[cpu].package_id = topology_id;
|
/linux-master/arch/s390/kernel/ |
H A D | topology.c | 54 * Socket/Book linked lists and cpu_topology updates are 61 struct cpu_topology_s390 cpu_topology[NR_CPUS]; variable in typeref:struct:cpu_topology_s390 62 EXPORT_SYMBOL_GPL(cpu_topology); variable 136 topo = &cpu_topology[cpu]; 258 topo = &cpu_topology[cpu]; 274 topo = &cpu_topology[cpu]; 276 topo_package = &cpu_topology[pkg_first]; 279 topo_sibling = &cpu_topology[sibling]; 501 return &cpu_topology[cpu].thread_mask; 507 return &cpu_topology[cp [all...] |
/linux-master/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);
|
/linux-master/tools/power/x86/intel-speed-select/ |
H A D | isst-config.c | 72 struct cpu_topology { struct 244 struct cpu_topology cpu_top; 295 struct cpu_topology cpu_top;
|
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 1398 struct cpu_topology { struct 4336 int get_physical_node_id(struct cpu_topology *thiscpu) 4407 int get_thread_siblings(struct cpu_topology *thiscpu) 6983 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology));
|
/linux-master/tools/perf/ |
H A D | builtin-record.c | 3795 struct cpu_topology *topo; 3813 struct cpu_topology *topo;
|