/linux-master/tools/perf/tests/ |
H A D | topology.c | 109 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) 127 id = aggr_cpu_id__cpu(perf_cpu_map__cpu(map, i), NULL); 129 perf_cpu_map__cpu(map, i).cpu == id.cpu.cpu); 132 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].core_id == id.core); 134 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == 138 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].die_id == id.die); 145 id = aggr_cpu_id__core(perf_cpu_map__cpu(map, i), NULL); 147 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].core_id == id.core); 150 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == 154 session->header.env.cpu[perf_cpu_map__cpu(ma [all...] |
H A D | event_update.c | 73 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 0).cpu == 1); 74 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 1).cpu == 2); 75 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 2).cpu == 3);
|
H A D | cpumap.c | 42 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0); 44 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i); 69 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1); 70 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 1).cpu == 256); 95 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1);
|
H A D | bitmap.c | 21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm);
|
H A D | mmap-basic.c | 62 CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set); 66 perf_cpu_map__cpu(cpus, 0).cpu,
|
/linux-master/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 48 * perf_cpu_map__cpu - get the CPU value at the given index. Returns -1 if index 51 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 53 * perf_cpu_map__nr - for an empty map returns 1, as perf_cpu_map__cpu returns a 74 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 76 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 79 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \ 81 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
|
/linux-master/tools/perf/util/ |
H A D | perf_api_probe.c | 70 cpu = perf_cpu_map__cpu(cpus, 0); 147 cpu = perf_cpu_map__cpu(cpus, 0);
|
H A D | cpumap.c | 615 cpu = perf_cpu_map__cpu(map, i); 622 perf_cpu_map__cpu(map, i).cpu); 624 } else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) { 630 perf_cpu_map__cpu(map, start).cpu); 634 perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu); 661 struct perf_cpu last_cpu = perf_cpu_map__cpu(map, perf_cpu_map__nr(map) - 1); 673 cpu = perf_cpu_map__cpu(map, i).cpu;
|
H A D | cpumap.h | 73 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1;
|
H A D | record.c | 102 if (perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0).cpu < 0) 244 cpu = perf_cpu_map__cpu(cpus, 0); 248 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0);
|
H A D | bpf_ftrace.c | 66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu;
|
H A D | bpf_counter.c | 551 key = perf_cpu_map__cpu(evsel->core.cpus, i).cpu; 595 cpu = perf_cpu_map__cpu(all_cpu_map, i).cpu; 645 cpu = perf_cpu_map__cpu(evsel__cpus(evsel), i).cpu;
|
H A D | bpf_kwork.c | 169 struct perf_cpu cpu = perf_cpu_map__cpu(map, i);
|
H A D | bpf_kwork_top.c | 144 struct perf_cpu cpu = perf_cpu_map__cpu(map, i);
|
H A D | stat.c | 309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); 425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx);
|
H A D | bpf_off_cpu.c | 215 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;
|
/linux-master/tools/perf/bench/ |
H A D | futex-requeue.c | 143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
H A D | futex-hash.c | 190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
H A D | futex-lock-pi.c | 148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
H A D | futex-wake.c | 116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
H A D | futex-wake-parallel.c | 167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
H A D | epoll-wait.c | 353 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
|
H A D | epoll-ctl.c | 264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
|
/linux-master/tools/lib/perf/ |
H A D | evlist.c | 411 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); 459 struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->all_cpus, cpu_idx);
|
H A D | cpumap.c | 297 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) function
|