Home
last modified time | relevance | path

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

12

/linux-6.12.1/kernel/sched/
Dtopology.c377 static void perf_domain_debug(const struct cpumask *cpu_map, in perf_domain_debug() argument
383 printk(KERN_DEBUG "root_domain %*pbl:", cpumask_pr_args(cpu_map)); in perf_domain_debug()
425 static bool build_perf_domains(const struct cpumask *cpu_map) in build_perf_domains() argument
429 int cpu = cpumask_first(cpu_map); in build_perf_domains()
435 if (!sched_is_eas_possible(cpu_map)) in build_perf_domains()
438 for_each_cpu(i, cpu_map) { in build_perf_domains()
451 perf_domain_debug(cpu_map, pd); in build_perf_domains()
1353 const struct cpumask *cpu_map) in asym_cpu_capacity_classify() argument
1367 else if (cpumask_intersects(cpu_map, cpu_capacity_span(entry))) in asym_cpu_capacity_classify()
1491 static void __sdt_free(const struct cpumask *cpu_map);
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/tests/
Dxe_bo.c26 u64 *cpu_map; in ccs_test_migrate() local
83 cpu_map = kmap_local_page(page); in ccs_test_migrate()
86 if (cpu_map[0] != get_val) { in ccs_test_migrate()
90 (unsigned long long)cpu_map[0]); in ccs_test_migrate()
97 if (cpu_map[offset] != get_val) { in ccs_test_migrate()
101 (unsigned long long)cpu_map[offset]); in ccs_test_migrate()
105 cpu_map[0] = assign_val; in ccs_test_migrate()
106 cpu_map[offset] = assign_val; in ccs_test_migrate()
107 kunmap_local(cpu_map); in ccs_test_migrate()
/linux-6.12.1/tools/power/x86/intel-speed-select/
Disst-config.c72 struct _cpu_map *cpu_map; variable
332 if (cpu_map && cpu_map[cpu].initialized) in get_physical_package_id()
333 return cpu_map[cpu].pkg_id; in get_physical_package_id()
356 if (cpu_map && cpu_map[cpu].initialized) in get_physical_core_id()
357 return cpu_map[cpu].core_id; in get_physical_core_id()
380 if (cpu_map && cpu_map[cpu].initialized) in get_physical_die_id()
381 return cpu_map[cpu].die_id; in get_physical_die_id()
409 if (cpu_map && cpu_map[cpu].initialized) in get_physical_punit_id()
410 return cpu_map[cpu].punit_id; in get_physical_punit_id()
691 cpu_map[i].punit_cpu_core > max_id) in get_max_punit_core_id()
[all …]
/linux-6.12.1/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.12.1/drivers/hwtracing/coresight/
Dcoresight-trace-id.c18 .cpu_map = &id_map_default_cpu_ids,
45 return atomic_read(per_cpu_ptr(id_map->cpu_map, cpu)); in _coresight_trace_id_read_cpu_id()
127 atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), 0); in coresight_trace_id_release_all()
161 atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), id); in _coresight_trace_id_get_cpu_id()
184 atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), 0); in _coresight_trace_id_put_cpu_id()
/linux-6.12.1/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.12.1/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.12.1/tools/perf/util/
Dmmap.c247 const struct perf_cpu_map *cpu_map = NULL; in build_node_mask() local
249 cpu_map = cpu_map__online(); in build_node_mask()
250 if (!cpu_map) in build_node_mask()
253 nr_cpus = perf_cpu_map__nr(cpu_map); in build_node_mask()
255 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in build_node_mask()
Dmem-events.c260 struct perf_cpu_map *cpu_map = NULL; in perf_mem_events__record_args() local
286 cpu_map = perf_cpu_map__merge(cpu_map, pmu->cpus); in perf_mem_events__record_args()
290 if (cpu_map) { in perf_mem_events__record_args()
291 if (!perf_cpu_map__equal(cpu_map, cpu_map__online())) { in perf_mem_events__record_args()
294 cpu_map__snprint(cpu_map, buf, sizeof(buf)); in perf_mem_events__record_args()
297 perf_cpu_map__put(cpu_map); in perf_mem_events__record_args()
Dtool.h75 cpu_map, member
/linux-6.12.1/drivers/platform/x86/intel/speed_select_if/
Disst_if_common.c485 struct isst_if_cpu_map *cpu_map; in isst_if_proc_phyid_req() local
487 cpu_map = (struct isst_if_cpu_map *)cmd_ptr; in isst_if_proc_phyid_req()
488 if (cpu_map->logical_cpu >= nr_cpu_ids || in isst_if_proc_phyid_req()
489 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
493 cpu_map->physical_cpu = isst_cpu_info[cpu_map->logical_cpu].punit_cpu_id; in isst_if_proc_phyid_req()
617 cmd_cb.offset = offsetof(struct isst_if_cpu_maps, cpu_map); in isst_if_def_ioctl()
/linux-6.12.1/kernel/bpf/
Dcpumap.c79 struct bpf_cpu_map_entry __rcu **cpu_map; member
105 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc()
108 if (!cmap->cpu_map) { in cpu_map_alloc()
511 old_rcpu = unrcu_pointer(xchg(&cmap->cpu_map[key_cpu], RCU_INITIALIZER(rcpu))); in __cpu_map_entry_replace()
590 rcpu = rcu_dereference_raw(cmap->cpu_map[i]); in cpu_map_free()
597 bpf_map_area_free(cmap->cpu_map); in cpu_map_free()
613 rcpu = rcu_dereference_check(cmap->cpu_map[key], in __cpu_map_lookup_elem()
/linux-6.12.1/drivers/base/
Dcacheinfo.c949 cpumask_t *cpu_map) in update_per_cpu_data_slice_size() argument
953 for_each_cpu(icpu, cpu_map) { in update_per_cpu_data_slice_size()
964 cpumask_t *cpu_map; in cacheinfo_cpu_online() local
971 if (cpu_map_shared_cache(true, cpu, &cpu_map)) in cacheinfo_cpu_online()
972 update_per_cpu_data_slice_size(true, cpu, cpu_map); in cacheinfo_cpu_online()
981 cpumask_t *cpu_map; in cacheinfo_cpu_pre_down() local
984 nr_shared = cpu_map_shared_cache(false, cpu, &cpu_map); in cacheinfo_cpu_pre_down()
990 update_per_cpu_data_slice_size(false, cpu, cpu_map); in cacheinfo_cpu_pre_down()
/linux-6.12.1/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.12.1/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()
/linux-6.12.1/mm/
Dpercpu.c2411 __alignof__(ai->groups[0].cpu_map[0])); in pcpu_alloc_alloc_info()
2412 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); in pcpu_alloc_alloc_info()
2420 ai->groups[0].cpu_map = ptr; in pcpu_alloc_alloc_info()
2423 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info()
2489 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
2491 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2633 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2824 unsigned int *cpu_map; in pcpu_build_alloc_info() local
2916 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info()
2919 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
[all …]
/linux-6.12.1/tools/perf/python/
Dtwatch.py12 cpus = perf.cpu_map()
Dtracepoint.py19 cpus = perf.cpu_map()
/linux-6.12.1/tools/perf/arch/arm/util/
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()
/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_queue.c1216 void *cpu_map; in pvr_queue_create() local
1275 cpu_map = pvr_fw_object_create_and_map(pvr_dev, sizeof(*queue->timeline_ufo.value), in pvr_queue_create()
1278 if (IS_ERR(cpu_map)) { in pvr_queue_create()
1279 err = PTR_ERR(cpu_map); in pvr_queue_create()
1283 queue->timeline_ufo.value = cpu_map; in pvr_queue_create()
/linux-6.12.1/include/linux/
Dpercpu.h85 unsigned int *cpu_map; /* unit->cpu map, empty member
/linux-6.12.1/tools/perf/
Dbuiltin-stat.c1175 struct perf_cpu_map *cpu_map = perf_cpu_map__new(map); in cpu__get_cache_id_from_map() local
1182 id = perf_cpu_map__min(cpu_map).cpu; in cpu__get_cache_id_from_map()
1187 perf_cpu_map__put(cpu_map); in cpu__get_cache_id_from_map()
1568 struct perf_cpu_map *cpu_map; in perf_env__get_cache_id_for_cpu() local
1579 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1580 map_contains_cpu = perf_cpu_map__idx(cpu_map, cpu); in perf_env__get_cache_id_for_cpu()
1581 perf_cpu_map__put(cpu_map); in perf_env__get_cache_id_for_cpu()
2264 cpus = cpu_map__new_data(&event->cpu_map.data); in process_cpu_map_event()
2324 perf_stat.tool.cpu_map = process_cpu_map_event; in __cmd_report()

12