Searched refs:perf_cpu_map__cpu (Results 1 - 25 of 40) sorted by path

12

/linux-master/tools/lib/perf/
H A Dcpumap.c297 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) function
H A Devlist.c411 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 Devsel.c263 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx);
/linux-master/tools/lib/perf/include/perf/
H A Dcpumap.h48 * 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 Depoll-ctl.c264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
H A Depoll-wait.c353 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
H A Dfutex-hash.c190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
H A Dfutex-lock-pi.c148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
H A Dfutex-requeue.c143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
H A Dfutex-wake-parallel.c167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
H A Dfutex-wake.c116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
/linux-master/tools/perf/
H A Dbuiltin-ftrace.c284 last_cpu = perf_cpu_map__cpu(cpumap, perf_cpu_map__nr(cpumap) - 1).cpu;
H A Dbuiltin-record.c1092 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 Dbuiltin-stat.c179 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 Dbitmap.c21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm);
H A Dcpumap.c42 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 Devent_update.c73 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 Dmmap-basic.c62 CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set);
66 perf_cpu_map__cpu(cpus, 0).cpu,
H A Dtopology.c109 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 Dauxtrace.c187 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 Dbpf_counter.c551 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 Dbpf_ftrace.c66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu;
H A Dbpf_kwork.c169 struct perf_cpu cpu = perf_cpu_map__cpu(map, i);
H A Dbpf_kwork_top.c144 struct perf_cpu cpu = perf_cpu_map__cpu(map, i);
H A Dbpf_lock_contention.c106 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;

Completed in 323 milliseconds

12