Lines Matching refs:cpu

71 	struct perf_cpu cpu;  in check_cpu_topology()  local
98 if (!session->header.env.cpu in check_cpu_topology()
114 TEST_ASSERT_VAL("Session header CPU map not set", session->header.env.cpu); in check_cpu_topology()
117 cpu.cpu = i; in check_cpu_topology()
118 if (!perf_cpu_map__has(map, cpu)) in check_cpu_topology()
121 session->header.env.cpu[i].core_id, in check_cpu_topology()
122 session->header.env.cpu[i].socket_id); in check_cpu_topology()
126 perf_cpu_map__for_each_cpu(cpu, i, map) { in check_cpu_topology()
127 id = aggr_cpu_id__cpu(cpu, NULL); in check_cpu_topology()
129 cpu.cpu == id.cpu.cpu); in check_cpu_topology()
132 session->header.env.cpu[cpu.cpu].core_id == id.core); in check_cpu_topology()
134 session->header.env.cpu[cpu.cpu].socket_id == in check_cpu_topology()
138 session->header.env.cpu[cpu.cpu].die_id == id.die); in check_cpu_topology()
144 perf_cpu_map__for_each_cpu(cpu, i, map) { in check_cpu_topology()
145 id = aggr_cpu_id__core(cpu, NULL); in check_cpu_topology()
147 session->header.env.cpu[cpu.cpu].core_id == id.core); in check_cpu_topology()
150 session->header.env.cpu[cpu.cpu].socket_id == in check_cpu_topology()
154 session->header.env.cpu[cpu.cpu].die_id == id.die); in check_cpu_topology()
160 perf_cpu_map__for_each_cpu(cpu, i, map) { in check_cpu_topology()
161 id = aggr_cpu_id__die(cpu, NULL); in check_cpu_topology()
163 session->header.env.cpu[cpu.cpu].socket_id == in check_cpu_topology()
167 session->header.env.cpu[cpu.cpu].die_id == id.die); in check_cpu_topology()
171 TEST_ASSERT_VAL("Die map - CPU is set", id.cpu.cpu == -1); in check_cpu_topology()
176 perf_cpu_map__for_each_cpu(cpu, i, map) { in check_cpu_topology()
177 id = aggr_cpu_id__socket(cpu, NULL); in check_cpu_topology()
179 session->header.env.cpu[cpu.cpu].socket_id == in check_cpu_topology()
185 TEST_ASSERT_VAL("Socket map - CPU is set", id.cpu.cpu == -1); in check_cpu_topology()
190 perf_cpu_map__for_each_cpu(cpu, i, map) { in check_cpu_topology()
191 id = aggr_cpu_id__node(cpu, NULL); in check_cpu_topology()
193 cpu__get_node(cpu) == id.node); in check_cpu_topology()
197 TEST_ASSERT_VAL("Node map - CPU is set", id.cpu.cpu == -1); in check_cpu_topology()