/linux-master/tools/lib/perf/ |
H A D | cpumap.c | 297 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) function
|
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 | evsel.c | 263 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx);
|
/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/bench/ |
H A D | epoll-ctl.c | 264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
|
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 | 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-requeue.c | 143 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 | futex-wake.c | 116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
|
/linux-master/tools/perf/ |
H A D | builtin-ftrace.c | 284 last_cpu = perf_cpu_map__cpu(cpumap, perf_cpu_map__nr(cpumap) - 1).cpu;
|
H A D | builtin-record.c | 1092 test_bit(perf_cpu_map__cpu(cpus, m).cpu, thread_data->mask->maps.bits)) { 1096 thread_data, perf_cpu_map__cpu(cpus, m).cpu, tm, m); 1101 thread_data, perf_cpu_map__cpu(cpus, m).cpu, tm, m); 3665 __set_bit(perf_cpu_map__cpu(cpus, t).cpu, rec->thread_masks[t].maps.bits); 3666 __set_bit(perf_cpu_map__cpu(cpus, t).cpu, rec->thread_masks[t].affinity.bits);
|
H A D | builtin-stat.c | 179 if (perf_cpu_map__cpu(a->core.cpus, i).cpu != 180 perf_cpu_map__cpu(b->core.cpus, i).cpu) 272 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); 354 perf_cpu_map__cpu(evsel__cpus(counter), 1325 id = perf_cpu_map__cpu(cpu_map, 0).cpu;
|
/linux-master/tools/perf/tests/ |
H A D | bitmap.c | 21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm);
|
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 | 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 | mmap-basic.c | 62 CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set); 66 perf_cpu_map__cpu(cpus, 0).cpu,
|
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...] |
/linux-master/tools/perf/util/ |
H A D | auxtrace.c | 187 mp->cpu = perf_cpu_map__cpu(evlist->core.all_cpus, idx); 654 struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->core.all_cpus, idx);
|
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_ftrace.c | 66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, 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 | bpf_lock_contention.c | 106 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;
|