Home
last modified time | relevance | path

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

12

/linux-6.6.21/kernel/sched/
Dtopology.c306 static void perf_domain_debug(const struct cpumask *cpu_map, in perf_domain_debug() argument
312 printk(KERN_DEBUG "root_domain %*pbl:", cpumask_pr_args(cpu_map)); in perf_domain_debug()
374 static bool build_perf_domains(const struct cpumask *cpu_map) in build_perf_domains() argument
376 int i, nr_pd = 0, nr_ps = 0, nr_cpus = cpumask_weight(cpu_map); in build_perf_domains()
378 int cpu = cpumask_first(cpu_map); in build_perf_domains()
390 cpumask_pr_args(cpu_map)); in build_perf_domains()
398 cpumask_pr_args(cpu_map)); in build_perf_domains()
405 cpumask_pr_args(cpu_map)); in build_perf_domains()
410 for_each_cpu(i, cpu_map) { in build_perf_domains()
424 cpumask_pr_args(cpu_map)); in build_perf_domains()
[all …]
/linux-6.6.21/tools/power/x86/intel-speed-select/
Disst-config.c68 struct _cpu_map *cpu_map; variable
328 if (cpu_map && cpu_map[cpu].initialized) in get_physical_package_id()
329 return cpu_map[cpu].pkg_id; in get_physical_package_id()
352 if (cpu_map && cpu_map[cpu].initialized) in get_physical_core_id()
353 return cpu_map[cpu].core_id; in get_physical_core_id()
376 if (cpu_map && cpu_map[cpu].initialized) in get_physical_die_id()
377 return cpu_map[cpu].die_id; in get_physical_die_id()
405 if (cpu_map && cpu_map[cpu].initialized) in get_physical_punit_id()
406 return cpu_map[cpu].punit_id; in get_physical_punit_id()
701 cpu_map[i].punit_cpu_core > max_id) in get_max_punit_core_id()
[all …]
/linux-6.6.21/arch/mips/kernel/
Dcacheinfo.c58 static void fill_cpumask_siblings(int cpu, cpumask_t *cpu_map) in fill_cpumask_siblings() argument
64 cpumask_set_cpu(cpu1, cpu_map); in fill_cpumask_siblings()
67 static void fill_cpumask_cluster(int cpu, cpumask_t *cpu_map) in fill_cpumask_cluster() argument
74 cpumask_set_cpu(cpu1, cpu_map); in fill_cpumask_cluster()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dfreplace_progmap.c10 } cpu_map SEC(".maps");
21 return bpf_redirect_map(&cpu_map, 0, XDP_PASS); in xdp_cpumap_prog()
Dtest_xdp_with_cpumap_helpers.c13 } cpu_map SEC(".maps");
18 return bpf_redirect_map(&cpu_map, 1, 0); in xdp_redir_prog()
Dtest_xdp_with_cpumap_frags_helpers.c13 } cpu_map SEC(".maps");
Dxdp_features.c52 } cpu_map SEC(".maps");
222 return bpf_redirect_map(&cpu_map, 0, 0); in xdp_do_redirect()
/linux-6.6.21/arch/ia64/mm/
Ddiscontig.c184 unsigned int *cpu_map; in setup_per_cpu_areas() local
194 cpu_map = ai->groups[0].cpu_map; in setup_per_cpu_areas()
208 cpu_map[unit++] = cpu; in setup_per_cpu_areas()
233 cpu = cpu_map[unit]; in setup_per_cpu_areas()
245 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
Dcontig.c115 gi->cpu_map[gi->nr_units++] = cpu; in setup_per_cpu_areas()
/linux-6.6.21/Documentation/bpf/
Dmap_cpumap.rst103 ``cpu_map`` and how to redirect packets to a remote CPU using a round robin scheme.
112 } cpu_map SEC(".maps");
153 return bpf_redirect_map(&cpu_map, cpu_dest, 0);
164 int set_max_cpu_entries(struct bpf_map *cpu_map)
166 if (bpf_map__set_max_entries(cpu_map, libbpf_num_possible_cpus()) < 0) {
167 fprintf(stderr, "Failed to set max entries for cpu_map map: %s",
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/
Disst_if_common.c483 struct isst_if_cpu_map *cpu_map; in isst_if_proc_phyid_req() local
485 cpu_map = (struct isst_if_cpu_map *)cmd_ptr; in isst_if_proc_phyid_req()
486 if (cpu_map->logical_cpu >= nr_cpu_ids || in isst_if_proc_phyid_req()
487 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
491 cpu_map->physical_cpu = isst_cpu_info[cpu_map->logical_cpu].punit_cpu_id; in isst_if_proc_phyid_req()
615 cmd_cb.offset = offsetof(struct isst_if_cpu_maps, cpu_map); in isst_if_def_ioctl()
/linux-6.6.21/tools/perf/util/
Dmmap.c249 const struct perf_cpu_map *cpu_map = NULL; in build_node_mask() local
251 cpu_map = cpu_map__online(); in build_node_mask()
252 if (!cpu_map) in build_node_mask()
255 nr_cpus = perf_cpu_map__nr(cpu_map); in build_node_mask()
257 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
Dtool.h75 cpu_map, member
/linux-6.6.21/kernel/bpf/
Dcpumap.c78 struct bpf_cpu_map_entry __rcu **cpu_map; member
106 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc()
109 if (!cmap->cpu_map) { in cpu_map_alloc()
503 old_rcpu = unrcu_pointer(xchg(&cmap->cpu_map[key_cpu], RCU_INITIALIZER(rcpu))); in __cpu_map_entry_replace()
582 rcpu = rcu_dereference_raw(cmap->cpu_map[i]); in cpu_map_free()
589 bpf_map_area_free(cmap->cpu_map); in cpu_map_free()
605 rcpu = rcu_dereference_check(cmap->cpu_map[key], in __cpu_map_lookup_elem()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dxdp_cpumap_attach.c35 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_helpers()
87 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_frags_helpers()
/linux-6.6.21/tools/perf/tests/
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()
Dtests.h120 DECLARE_SUITE(cpu_map);
/linux-6.6.21/mm/
Dpercpu.c2439 __alignof__(ai->groups[0].cpu_map[0])); in pcpu_alloc_alloc_info()
2440 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); in pcpu_alloc_alloc_info()
2448 ai->groups[0].cpu_map = ptr; in pcpu_alloc_alloc_info()
2451 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info()
2517 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
2519 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2661 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2852 unsigned int *cpu_map; in pcpu_build_alloc_info() local
2944 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info()
2947 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
[all …]
/linux-6.6.21/tools/perf/python/
Dtwatch.py12 cpus = perf.cpu_map()
Dtracepoint.py19 cpus = perf.cpu_map()
/linux-6.6.21/tools/perf/arch/arm/util/
Dcs-etm.c785 struct perf_cpu_map *cpu_map; in cs_etm_info_fill() local
800 cpu_map = online_cpus; in cs_etm_info_fill()
811 cpu_map = event_cpus; in cs_etm_info_fill()
814 nr_cpu = perf_cpu_map__nr(cpu_map); in cs_etm_info_fill()
830 if (perf_cpu_map__has(cpu_map, cpu)) in cs_etm_info_fill()
/linux-6.6.21/include/linux/
Dpercpu.h76 unsigned int *cpu_map; /* unit->cpu map, empty member
/linux-6.6.21/tools/perf/
Dbuiltin-stat.c1312 struct perf_cpu_map *cpu_map = perf_cpu_map__new(map); in cpu__get_cache_id_from_map() local
1319 if (perf_cpu_map__empty(cpu_map)) in cpu__get_cache_id_from_map()
1322 id = perf_cpu_map__cpu(cpu_map, 0).cpu; in cpu__get_cache_id_from_map()
1325 perf_cpu_map__put(cpu_map); in cpu__get_cache_id_from_map()
1699 struct perf_cpu_map *cpu_map; in perf_env__get_cache_id_for_cpu() local
1710 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1711 map_contains_cpu = perf_cpu_map__idx(cpu_map, cpu); in perf_env__get_cache_id_for_cpu()
1712 perf_cpu_map__put(cpu_map); in perf_env__get_cache_id_for_cpu()
2364 cpus = cpu_map__new_data(&event->cpu_map.data); in process_cpu_map_event()
2382 .cpu_map = process_cpu_map_event,
/linux-6.6.21/drivers/hwmon/
Dcoretemp.c91 u16 cpu_map[NUM_REAL_CORES]; member
522 pdata->cpu_map[index] = topology_core_id(cpu); in create_core_data()
713 if (pd->cpu_map[i] == topology_core_id(cpu)) { in coretemp_cpu_offline()
/linux-6.6.21/include/uapi/linux/
Disst_if.h63 struct isst_if_cpu_map cpu_map[1]; member

12