/linux-6.14.4/tools/lib/perf/include/perf/ |
D | cpumap.h | 49 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 88 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 90 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 93 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \ 95 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
|
/linux-6.14.4/tools/perf/tests/ |
D | event_update.c | 73 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()
|
D | cpumap.c | 42 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()
|
D | mmap-basic.c | 62 CPU_SET(perf_cpu_map__cpu(cpus, 0).cpu, &cpu_set); in test__basic_mmap() 66 perf_cpu_map__cpu(cpus, 0).cpu, in test__basic_mmap()
|
D | topology.c | 110 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) in check_cpu_topology()
|
/linux-6.14.4/tools/perf/util/ |
D | record.c | 102 if (perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0).cpu < 0) in evlist__config() 244 cpu = perf_cpu_map__cpu(cpus, 0); in evlist__can_select_event() 248 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, 0); in evlist__can_select_event()
|
D | cpumap.c | 613 cpu = perf_cpu_map__cpu(map, i); in cpu_map__snprint() 620 perf_cpu_map__cpu(map, i).cpu); in cpu_map__snprint() 622 } else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) { in cpu_map__snprint() 628 perf_cpu_map__cpu(map, start).cpu); in cpu_map__snprint() 632 perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu); in cpu_map__snprint()
|
D | perf_api_probe.c | 70 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()
|
D | cpumap.h | 71 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1; in cpu_map__is_dummy()
|
D | tool_pmu.c | 279 cpu = perf_cpu_map__cpu(evsel->core.cpus, idx); in evsel__tool_pmu_open() 462 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()
|
D | bpf_counter.c | 570 key = perf_cpu_map__cpu(evsel->core.cpus, i).cpu; in bperf__load() 616 cpu = perf_cpu_map__cpu(all_cpu_map, i).cpu; in bperf_sync_counters() 666 cpu = perf_cpu_map__cpu(evsel__cpus(evsel), i).cpu; in bperf__read()
|
D | bpf_ftrace.c | 73 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu; in perf_ftrace__latency_prepare_bpf()
|
D | stat.c | 309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); in check_per_pkg() 425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in process_counter_values()
|
D | bpf_off_cpu.c | 224 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu; in off_cpu_prepare()
|
D | cputopo.c | 413 if (load_numa_node(&tp->nodes[i], perf_cpu_map__cpu(node_map, i).cpu)) { in numa_topology__new()
|
D | mmap.c | 255 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
|
/linux-6.14.4/tools/lib/perf/ |
D | libperf.map | 10 perf_cpu_map__cpu;
|
D | evlist.c | 425 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); in perf_evsel__set_sid_idx() 473 struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->all_cpus, cpu_idx); in mmap_per_evsel()
|
/linux-6.14.4/tools/perf/bench/ |
D | futex-wake.c | 116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
|
D | futex-lock-pi.c | 148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in create_threads()
|
D | futex-hash.c | 190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in bench_futex_hash()
|
D | futex-requeue.c | 143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
|
D | futex-wake-parallel.c | 167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
|
D | epoll-ctl.c | 264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads()
|
/linux-6.14.4/tools/lib/perf/Documentation/ |
D | libperf.txt | 46 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
|