Home
last modified time | relevance | path

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

12

/linux-6.15/tools/lib/perf/include/perf/
H A Dcpumap.h50 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
89 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
91 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
94 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
96 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
/linux-6.15/tools/perf/tests/
H A 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()
H A 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()
H A Dmmap-basic.c62 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()
H A Dtopology.c110 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) in check_cpu_topology()
/linux-6.15/tools/perf/util/
H A Drecord.c102 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()
H A Dcpumap.c639 cpu = perf_cpu_map__cpu(map, i); in cpu_map__snprint()
646 perf_cpu_map__cpu(map, i).cpu); in cpu_map__snprint()
648 } else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) { in cpu_map__snprint()
654 perf_cpu_map__cpu(map, start).cpu); in cpu_map__snprint()
658 perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu); in cpu_map__snprint()
H A 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()
H A Dcpumap.h71 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1; in cpu_map__is_dummy()
H A Dtool_pmu.c279 cpu = perf_cpu_map__cpu(evsel->core.cpus, idx); in evsel__tool_pmu_open()
463 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()
H A Dbpf_counter.c570 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()
H A Dbpf_ftrace.c77 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu; in perf_ftrace__latency_prepare_bpf()
H A Dstat.c309 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()
H A Dmmap.c254 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
H A Dbpf_off_cpu.c224 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu; in off_cpu_prepare()
/linux-6.15/tools/lib/perf/
H A Dlibperf.map10 perf_cpu_map__cpu;
H A Devlist.c425 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()
H A Dcpumap.c250 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu() function
/linux-6.15/tools/perf/bench/
H A Dfutex-wake.c116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
H A Dfutex-hash.c190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in bench_futex_hash()
H A Dfutex-lock-pi.c148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in create_threads()
H A Dfutex-requeue.c143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
H A Dfutex-wake-parallel.c167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
H A Depoll-ctl.c264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads()
/linux-6.15/tools/lib/perf/Documentation/
H A Dlibperf.txt46 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);

12