Symbol: perf_cpu_map__cpu
tools/lib/perf/evlist.c
121
evsel->cpus = perf_cpu_map__new_int(perf_cpu_map__cpu(srcs[i], 0).cpu);
tools/lib/perf/evlist.c
496
sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu);
tools/lib/perf/evlist.c
544
struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->all_cpus, cpu_idx);
tools/lib/perf/evsel.c
277
struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx);
tools/lib/perf/include/perf/cpumap.h
102
for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
tools/lib/perf/include/perf/cpumap.h
104
(idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
tools/lib/perf/include/perf/cpumap.h
58
LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, unsigned int idx);
tools/lib/perf/include/perf/cpumap.h
97
for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
tools/lib/perf/include/perf/cpumap.h
99
(idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
tools/perf/arch/x86/util/pmu.c
192
cpu_adjust[pmu_snc] = perf_cpu_map__cpu(node_cpus, 0).cpu;
tools/perf/arch/x86/util/pmu.c
229
if (perf_cpu_map__cpu(pmu->cpus, 0).cpu != 0) {
tools/perf/arch/x86/util/pmu.c
256
cpu_adjust = perf_cpu_map__cpu(adjusted[pmu_snc], idx).cpu - cpu.cpu;
tools/perf/arch/x86/util/pmu.c
259
assert(perf_cpu_map__cpu(adjusted[pmu_snc], idx).cpu ==
tools/perf/bench/epoll-ctl.c
264
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
tools/perf/bench/epoll-wait.c
353
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
tools/perf/bench/futex-hash.c
195
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
tools/perf/bench/futex-lock-pi.c
151
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
tools/perf/bench/futex-requeue.c
146
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
tools/perf/bench/futex-wake-parallel.c
170
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
tools/perf/bench/futex-wake.c
119
CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
tools/perf/builtin-ftrace.c
396
last_cpu = perf_cpu_map__cpu(cpumap, perf_cpu_map__nr(cpumap) - 1).cpu;
tools/perf/builtin-record.c
1091
test_bit(perf_cpu_map__cpu(cpus, m).cpu, thread_data->mask->maps.bits)) {
tools/perf/builtin-record.c
1095
thread_data, perf_cpu_map__cpu(cpus, m).cpu, tm, m);
tools/perf/builtin-record.c
1100
thread_data, perf_cpu_map__cpu(cpus, m).cpu, tm, m);
tools/perf/builtin-record.c
3751
__set_bit(perf_cpu_map__cpu(cpus, t).cpu, rec->thread_masks[t].maps.bits);
tools/perf/builtin-record.c
3752
__set_bit(perf_cpu_map__cpu(cpus, t).cpu, rec->thread_masks[t].affinity.bits);
tools/perf/builtin-script.c
2346
if (perf_cpu_map__cpu(evsel->core.cpus, /*idx=*/0).cpu == -1 ||
tools/perf/builtin-stat.c
275
struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx);
tools/perf/builtin-stat.c
360
perf_cpu_map__cpu(evsel__cpus(counter),
tools/perf/tests/cpumap.c
42
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0);
tools/perf/tests/cpumap.c
44
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i);
tools/perf/tests/cpumap.c
69
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/cpumap.c
70
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 1).cpu == 256);
tools/perf/tests/cpumap.c
95
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/event_update.c
74
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/event_update.c
75
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 1).cpu == 2);
tools/perf/tests/event_update.c
76
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 2).cpu == 3);
tools/perf/tests/mmap-basic.c
69
CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set);
tools/perf/tests/mmap-basic.c
73
perf_cpu_map__cpu(cpus, 0).cpu,
tools/perf/tests/topology.c
118
if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1)
tools/perf/util/auxtrace.c
204
mp->cpu = perf_cpu_map__cpu(evlist->core.all_cpus, idx);
tools/perf/util/auxtrace.c
674
struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->core.all_cpus, idx);
tools/perf/util/bpf_counter.c
341
int cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx).cpu;
tools/perf/util/bpf_counter.c
629
key = perf_cpu_map__cpu(evsel->core.cpus, i).cpu;
tools/perf/util/bpf_counter.c
660
int cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx).cpu;
tools/perf/util/bpf_counter.c
725
cpu = perf_cpu_map__cpu(evsel__cpus(evsel), i).cpu;
tools/perf/util/bpf_ftrace.c
90
cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu;
tools/perf/util/bpf_lock_contention.c
337
cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;
tools/perf/util/bpf_off_cpu.c
241
cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;
tools/perf/util/cpumap.c
690
cpu = perf_cpu_map__cpu(map, i);
tools/perf/util/cpumap.c
697
perf_cpu_map__cpu(map, i).cpu);
tools/perf/util/cpumap.c
699
} else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) {
tools/perf/util/cpumap.c
705
perf_cpu_map__cpu(map, start).cpu);
tools/perf/util/cpumap.c
709
perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu);
tools/perf/util/cpumap.h
71
return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1;
tools/perf/util/cputopo.c
413
if (load_numa_node(&tp->nodes[i], perf_cpu_map__cpu(node_map, i).cpu)) {
tools/perf/util/evlist.c
454
itr->cpu = perf_cpu_map__cpu(evlist->core.all_cpus, 0);
tools/perf/util/evlist.c
489
perf_cpu_map__cpu(evlist_cpu_itr->container->core.all_cpus,
tools/perf/util/evsel.c
2301
cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx);
tools/perf/util/evsel.c
3015
cpu = perf_cpu_map__cpu(cpus, idx);
tools/perf/util/mmap.c
265
cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */
tools/perf/util/perf_api_probe.c
158
cpu = perf_cpu_map__cpu(cpus, 0);
tools/perf/util/perf_api_probe.c
70
cpu = perf_cpu_map__cpu(cpus, 0);
tools/perf/util/python.c
555
return Py_BuildValue("i", perf_cpu_map__cpu(pcpus->cpus, i).cpu);
tools/perf/util/record.c
102
if (perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0).cpu < 0)
tools/perf/util/record.c
244
cpu = perf_cpu_map__cpu(cpus, 0);
tools/perf/util/record.c
248
cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0);
tools/perf/util/stat.c
311
struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx);
tools/perf/util/stat.c
427
struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx);
tools/perf/util/synthetic-events.c
1264
data->data->cpus_data.cpu[i] = perf_cpu_map__cpu(data->map, i).cpu;
tools/perf/util/synthetic-events.c
1299
syn_data->has_any_cpu = (perf_cpu_map__cpu(syn_data->map, 0).cpu == -1) ? 1 : 0;
tools/perf/util/synthetic-events.c
1301
syn_data->min_cpu = perf_cpu_map__cpu(syn_data->map, syn_data->has_any_cpu).cpu;
tools/perf/util/tool_pmu.c
251
struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx);