Home
last modified time | relevance | path

Searched refs:perf_cpu_map__cpu (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.1/tools/perf/tests/
Dtopology.c119 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) in check_cpu_topology()
137 id = aggr_cpu_id__cpu(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology()
139 perf_cpu_map__cpu(map, i).cpu == id.cpu.cpu); in check_cpu_topology()
142 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].core_id == id.core); in check_cpu_topology()
144 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology()
148 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].die_id == id.die); in check_cpu_topology()
155 id = aggr_cpu_id__core(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology()
157 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].core_id == id.core); in check_cpu_topology()
160 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology()
164 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].die_id == id.die); in check_cpu_topology()
[all …]
Dcpumap.c42 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0); in process_event_mask()
44 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i); in process_event_mask()
69 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1); in process_event_cpus()
70 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 1).cpu == 256); in process_event_cpus()
95 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1); in process_event_range_cpus()
Devent_update.c73 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 0).cpu == 1); in process_event_cpus()
74 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 1).cpu == 2); in process_event_cpus()
75 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 2).cpu == 3); in process_event_cpus()
Dbitmap.c21 set_bit(perf_cpu_map__cpu(map, i).cpu, bm); in get_bitmap()
Dmmap-basic.c60 CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set); in test__basic_mmap()
64 perf_cpu_map__cpu(cpus, 0).cpu, in test__basic_mmap()
/Linux-v6.1/tools/lib/perf/include/perf/
Dcpumap.h23 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
30 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
32 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
/Linux-v6.1/tools/perf/util/
Drecord.c109 if (perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0).cpu < 0) in evlist__config()
251 cpu = perf_cpu_map__cpu(cpus, 0); in evlist__can_select_event()
255 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0); in evlist__can_select_event()
Dperf_api_probe.c70 cpu = perf_cpu_map__cpu(cpus, 0); in perf_probe_api()
147 cpu = perf_cpu_map__cpu(cpus, 0); in perf_can_record_cpu_wide()
Dcpumap.h61 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1; in cpu_map__is_dummy()
Dbpf_ftrace.c66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu; in perf_ftrace__latency_prepare_bpf()
Dbpf_lock_contention.c64 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu; in lock_contention_prepare()
Dcpumap.c623 struct perf_cpu last_cpu = perf_cpu_map__cpu(map, map->nr - 1); in cpu_map__snprint_mask()
635 cpu = perf_cpu_map__cpu(map, i).cpu; in cpu_map__snprint_mask()
Dbpf_kwork.c166 struct perf_cpu cpu = perf_cpu_map__cpu(map, i); in setup_filters()
Dbpf_off_cpu.c212 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu; in off_cpu_prepare()
Dmmap.c257 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
/Linux-v6.1/tools/lib/perf/
Dlibperf.map11 perf_cpu_map__cpu;
Devlist.c390 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); in perf_evsel__set_sid_idx()
438 struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->all_cpus, cpu_idx); in mmap_per_evsel()
Dcpumap.c260 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu() function
/Linux-v6.1/tools/perf/bench/
Dfutex-wake.c114 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
Dfutex-hash.c190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in bench_futex_hash()
Dfutex-lock-pi.c146 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in create_threads()
Dfutex-requeue.c141 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
Dfutex-wake-parallel.c162 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
Depoll-ctl.c264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads()
/Linux-v6.1/tools/lib/perf/Documentation/
Dlibperf.txt47 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);

12