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

12

/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
90 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
92 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
95 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
97 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
/linux-master/tools/perf/tests/
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 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.c110 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1)
/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.h71 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 Dcpumap.c613 cpu = perf_cpu_map__cpu(map, i);
620 perf_cpu_map__cpu(map, i).cpu);
622 } else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) {
628 perf_cpu_map__cpu(map, start).cpu);
632 perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu);
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 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;
H A Dmmap.c257 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */
H A Dcputopo.c413 if (load_numa_node(&tp->nodes[i], perf_cpu_map__cpu(node_map, 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.c301 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) function
H A Devsel.c263 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx);

Completed in 407 milliseconds

12