Home
last modified time | relevance | path

Searched refs:cpu_map (Results 1 – 24 of 24) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dfreplace_progmap.c10 } cpu_map SEC(".maps");
21 return bpf_redirect_map(&cpu_map, 0, XDP_PASS); in xdp_cpumap_prog()
A Dtest_xdp_with_cpumap_helpers.c13 } cpu_map SEC(".maps");
20 return bpf_redirect_map(&cpu_map, 0, 0); in xdp_redir_prog()
A Dtest_xdp_with_cpumap_frags_helpers.c13 } cpu_map SEC(".maps");
A Dxdp_features.c52 } cpu_map SEC(".maps");
222 return bpf_redirect_map(&cpu_map, 0, 0); in xdp_do_redirect()
/tools/power/x86/intel-speed-select/
A Disst-config.c74 struct _cpu_map *cpu_map; variable
343 if (cpu_map && cpu_map[cpu].initialized) in get_physical_package_id()
367 if (cpu_map && cpu_map[cpu].initialized) in get_physical_core_id()
391 if (cpu_map && cpu_map[cpu].initialized) in get_physical_die_id()
420 if (cpu_map && cpu_map[cpu].initialized) in get_physical_punit_id()
771 cpu_map = calloc(topo_max_cpus, sizeof(*cpu_map)); in create_cpu_map()
772 if (!cpu_map) in create_cpu_map()
822 update_punit_cpu_info(map.cpu_map[0].physical_cpu, &cpu_map[i]); in create_cpu_map()
838 i, cpu_map[i].core_id, cpu_map[i].die_id, in create_cpu_map()
839 cpu_map[i].pkg_id, cpu_map[i].punit_id, in create_cpu_map()
[all …]
/tools/perf/arch/arm64/util/
A Darm-spe.c82 struct perf_cpu_map *cpu_map = arm_spe_find_cpus(evlist); in arm_spe_info_priv_size() local
85 if (!cpu_map) in arm_spe_info_priv_size()
89 ARM_SPE_CPU_PRIV_MAX * perf_cpu_map__nr(cpu_map); in arm_spe_info_priv_size()
92 perf_cpu_map__put(cpu_map); in arm_spe_info_priv_size()
146 struct perf_cpu_map *cpu_map; in arm_spe_info_fill() local
156 cpu_map = arm_spe_find_cpus(session->evlist); in arm_spe_info_fill()
157 if (!cpu_map) in arm_spe_info_fill()
165 auxtrace_info->priv[ARM_SPE_CPUS_NUM] = perf_cpu_map__nr(cpu_map); in arm_spe_info_fill()
168 perf_cpu_map__for_each_cpu(cpu, i, cpu_map) { in arm_spe_info_fill()
179 perf_cpu_map__put(cpu_map); in arm_spe_info_fill()
/tools/perf/util/
A Dmmap.c247 struct perf_cpu_map *cpu_map = cpu_map__online(); in build_node_mask() local
249 if (!cpu_map) in build_node_mask()
252 nr_cpus = perf_cpu_map__nr(cpu_map); in build_node_mask()
254 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
258 perf_cpu_map__put(cpu_map); in build_node_mask()
A Dtool.h75 cpu_map, member
A Dmem-events.c258 struct perf_cpu_map *cpu_map = NULL; in perf_mem_events__record_args() local
297 ret = perf_cpu_map__merge(&cpu_map, pmu->cpus); in perf_mem_events__record_args()
305 if (cpu_map) { in perf_mem_events__record_args()
306 if (!perf_cpu_map__equal(cpu_map, cpu_map__online())) { in perf_mem_events__record_args()
309 cpu_map__snprint(cpu_map, buf, sizeof(buf)); in perf_mem_events__record_args()
312 perf_cpu_map__put(cpu_map); in perf_mem_events__record_args()
A Dtool.c297 tool->cpu_map = process_event_cpu_map_stub; in perf_tool__init()
A Devent.c381 struct perf_cpu_map *cpus = cpu_map__new_data(&event->cpu_map.data); in perf_event__fprintf_cpu_map()
A Dsession.c621 struct perf_record_cpu_map_data *data = &event->cpu_map.data; in perf_event__cpu_map_swap()
1472 err = tool->cpu_map(session, event); in perf_session__process_user_event()
/tools/testing/selftests/bpf/prog_tests/
A Dxdp_cpumap_attach.c41 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_helpers()
115 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_frags_helpers()
A Dfexit_bpf2bpf.c562 err = bpf_map_update_elem(bpf_map__fd(skel->maps.cpu_map), in test_func_replace_progmap()
/tools/perf/python/
A Dtracepoint.py17 cpus = perf.cpu_map()
A Dtwatch.py12 cpus = perf.cpu_map()
/tools/perf/tests/
A Dcpumap.c19 struct perf_record_cpu_map *map_event = &event->cpu_map; in process_event_mask()
55 struct perf_record_cpu_map *map_event = &event->cpu_map; in process_event_cpus()
81 struct perf_record_cpu_map *map_event = &event->cpu_map; in process_event_range_cpus()
A Dtests.h151 DECLARE_SUITE(cpu_map);
/tools/perf/arch/arm/util/
A Dcs-etm.c781 struct perf_cpu_map *cpu_map; in cs_etm_info_fill() local
797 cpu_map = online_cpus; in cs_etm_info_fill()
805 cpu_map = event_cpus; in cs_etm_info_fill()
808 nr_cpu = perf_cpu_map__nr(cpu_map); in cs_etm_info_fill()
821 perf_cpu_map__for_each_cpu(cpu, i, cpu_map) { in cs_etm_info_fill()
/tools/perf/
A Dbuiltin-stat.c1187 struct perf_cpu_map *cpu_map = perf_cpu_map__new(map); in cpu__get_cache_id_from_map() local
1194 id = perf_cpu_map__min(cpu_map).cpu; in cpu__get_cache_id_from_map()
1199 perf_cpu_map__put(cpu_map); in cpu__get_cache_id_from_map()
1577 struct perf_cpu_map *cpu_map; in perf_env__get_cache_id_for_cpu() local
1588 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1589 map_contains_cpu = perf_cpu_map__idx(cpu_map, cpu); in perf_env__get_cache_id_for_cpu()
1590 perf_cpu_map__put(cpu_map); in perf_env__get_cache_id_for_cpu()
2215 cpus = cpu_map__new_data(&event->cpu_map.data); in process_cpu_map_event()
2275 perf_stat.tool.cpu_map = process_cpu_map_event; in __cmd_report()
A Dbuiltin-script.c3604 script->cpus = cpu_map__new_data(&event->cpu_map.data); in process_cpu_map_event()
4105 script.tool.cpu_map = process_cpu_map_event; in cmd_script()
A Dbuiltin-inject.c2531 inject.tool.cpu_map = perf_event__repipe_op2_synth; in cmd_inject()
/tools/lib/perf/include/perf/
A Devent.h542 struct perf_record_cpu_map cpu_map; member
/tools/testing/selftests/bpf/
A Dxdp_features.c319 err = bpf_map__update_elem(skel->maps.cpu_map, in dut_attach_xdp_prog()

Completed in 63 milliseconds