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

12

/linux-master/tools/perf/tests/
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...]
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 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 Dbitmap.c21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm);
H A Dmmap-basic.c62 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 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/util/
H A Dperf_api_probe.c70 cpu = perf_cpu_map__cpu(cpus, 0);
147 cpu = perf_cpu_map__cpu(cpus, 0);
H A Dcpumap.c615 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 Dcpumap.h73 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1;
H A Drecord.c102 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 Dbpf_ftrace.c66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu;
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_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 Dstat.c309 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 Dbpf_off_cpu.c215 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu;
/linux-master/tools/perf/bench/
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-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-wake.c116 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 Depoll-wait.c353 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
H A Depoll-ctl.c264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu,
/linux-master/tools/lib/perf/
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 Dcpumap.c297 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) function

Completed in 187 milliseconds

12