/openbmc/linux/tools/perf/tests/ |
H A D | topology.c | 109 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) in check_cpu_topology() 127 id = aggr_cpu_id__cpu(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology() 129 perf_cpu_map__cpu(map, i).cpu == id.cpu.cpu); in check_cpu_topology() 134 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 145 id = aggr_cpu_id__core(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology() 150 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 161 id = aggr_cpu_id__die(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology() 163 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 177 id = aggr_cpu_id__socket(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology() 191 id = aggr_cpu_id__node(perf_cpu_map__cpu(map, i), NULL); in check_cpu_topology() [all …]
|
H A 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()
|
H A 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()
|
H A D | bitmap.c | 21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm); in get_bitmap()
|
H A 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()
|
/openbmc/linux/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 34 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 50 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 52 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
|
/openbmc/linux/tools/perf/util/ |
H A D | cpumap.c | 589 cpu = perf_cpu_map__cpu(map, i); in cpu_map__snprint() 596 perf_cpu_map__cpu(map, i).cpu); in cpu_map__snprint() 598 } else if (((i - start) != (cpu.cpu - perf_cpu_map__cpu(map, start).cpu)) || last) { in cpu_map__snprint() 604 perf_cpu_map__cpu(map, start).cpu); in cpu_map__snprint() 608 perf_cpu_map__cpu(map, start).cpu, perf_cpu_map__cpu(map, end).cpu); in cpu_map__snprint() 635 struct perf_cpu last_cpu = perf_cpu_map__cpu(map, perf_cpu_map__nr(map) - 1); in cpu_map__snprint_mask() 647 cpu = perf_cpu_map__cpu(map, i).cpu; in cpu_map__snprint_mask()
|
H A 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()
|
H A 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()
|
H A D | cpumap.h | 71 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1; in cpu_map__is_dummy()
|
H A D | bpf_counter.c | 548 key = perf_cpu_map__cpu(evsel->core.cpus, i).cpu; in bperf__load() 592 cpu = perf_cpu_map__cpu(all_cpu_map, i).cpu; in bperf_sync_counters() 642 cpu = perf_cpu_map__cpu(evsel__cpus(evsel), i).cpu; in bperf__read()
|
H A D | bpf_ftrace.c | 66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu; in perf_ftrace__latency_prepare_bpf()
|
H A D | bpf_kwork.c | 169 struct perf_cpu cpu = perf_cpu_map__cpu(map, i); in setup_filters()
|
H A 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()
|
H A D | bpf_off_cpu.c | 213 cpu = perf_cpu_map__cpu(evlist->core.user_requested_cpus, i).cpu; in off_cpu_prepare()
|
H A D | mmap.c | 257 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
|
/openbmc/linux/tools/lib/perf/ |
H A D | libperf.map | 11 perf_cpu_map__cpu;
|
H A D | evlist.c | 411 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); in perf_evsel__set_sid_idx() 459 struct perf_cpu evlist_cpu = perf_cpu_map__cpu(evlist->all_cpus, cpu_idx); in mmap_per_evsel()
|
/openbmc/linux/tools/perf/bench/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | epoll-ctl.c | 264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-stat.c | 179 if (perf_cpu_map__cpu(a->core.cpus, i).cpu != in cpus_map_matched() 180 perf_cpu_map__cpu(b->core.cpus, i).cpu) in cpus_map_matched() 272 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event() 354 perf_cpu_map__cpu(evsel__cpus(counter), in read_counter_cpu() 1322 id = perf_cpu_map__cpu(cpu_map, 0).cpu; in cpu__get_cache_id_from_map()
|