Home
last modified time | relevance | path

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

12

/linux/kernel/sched/
H A 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()
905 static bool alloc_sd_llc(const struct cpumask *cpu_map, in alloc_sd_llc() argument
912 for_each_cpu(i, cpu_map) { in alloc_sd_llc()
944 for_each_cpu(i, cpu_map) { in alloc_sd_llc()
1060 alloc_sd_llc(const struct cpumask * cpu_map,struct s_data * d) alloc_sd_llc() argument
1698 asym_cpu_capacity_classify(const struct cpumask * sd_span,const struct cpumask * cpu_map) asym_cpu_capacity_classify() argument
1843 __free_domain_allocs(struct s_data * d,enum s_alloc what,const struct cpumask * cpu_map) __free_domain_allocs() argument
1865 __visit_domain_allocation_hell(struct s_data * d,const struct cpumask * cpu_map) __visit_domain_allocation_hell() argument
1952 sd_init(struct sched_domain_topology_level * tl,const struct cpumask * cpu_map,struct sched_domain * child,int cpu) sd_init() argument
2681 __sdt_alloc(const struct cpumask * cpu_map) __sdt_alloc() argument
2736 __sdt_free(const struct cpumask * cpu_map) __sdt_free() argument
2768 __sds_alloc(struct s_data * d,const struct cpumask * cpu_map) __sds_alloc() argument
2790 __sds_free(struct s_data * d,const struct cpumask * cpu_map) __sds_free() argument
2805 build_sched_domain(struct sched_domain_topology_level * tl,const struct cpumask * cpu_map,struct sched_domain_attr * attr,struct sched_domain * child,int cpu) build_sched_domain() argument
2836 topology_span_sane(const struct cpumask * cpu_map) topology_span_sane() argument
3099 build_sched_domains(const struct cpumask * cpu_map,struct sched_domain_attr * attr,bool * multi_llcs) build_sched_domains() argument
3304 sched_init_domains(const struct cpumask * cpu_map) sched_init_domains() argument
3332 detach_destroy_domains(const struct cpumask * cpu_map) detach_destroy_domains() argument
[all...]
/linux/tools/power/x86/intel-speed-select/
H A Disst-config.c74 struct _cpu_map *cpu_map; variable
361 if (cpu_map && cpu_map[cpu].initialized) in get_physical_core_id()
362 return cpu_map[cpu].pkg_id; in get_physical_core_id()
385 if (cpu_map && cpu_map[cpu].initialized) in get_physical_die_id()
386 return cpu_map[cpu].core_id; in get_physical_die_id()
409 if (cpu_map && cpu_map[cpu].initialized) in get_physical_die_id()
410 return cpu_map[cp in get_physical_die_id()
722 update_punit_cpu_info(__u32 physical_cpu,struct _cpu_map * cpu_map) update_punit_cpu_info() argument
[all...]
/linux/arch/mips/kernel/
H A 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/tools/perf/arch/arm64/util/
H A Darm-spe.c83 struct perf_cpu_map *cpu_map = arm_spe_find_cpus(evlist); in arm_spe_info_priv_size() local
86 if (!cpu_map) in arm_spe_info_priv_size()
90 ARM_SPE_CPU_PRIV_MAX * perf_cpu_map__nr(cpu_map); in arm_spe_info_priv_size()
93 perf_cpu_map__put(cpu_map); in arm_spe_info_priv_size()
153 struct perf_cpu_map *cpu_map; in arm_spe_info_fill()
163 cpu_map = arm_spe_find_cpus(session->evlist); in arm_spe_info_fill()
164 if (!cpu_map) in arm_spe_info_fill()
172 auxtrace_info->priv[ARM_SPE_CPUS_NUM] = perf_cpu_map__nr(cpu_map); in arm_spe_info_fill()
175 perf_cpu_map__for_each_cpu(cpu, i, cpu_map) { in arm_spe_info_fill()
186 perf_cpu_map__put(cpu_map); in arm_spe_info_fill()
152 struct perf_cpu_map *cpu_map; arm_spe_info_fill() local
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dfreplace_progmap.c10 } cpu_map SEC(".maps");
21 return bpf_redirect_map(&cpu_map, 0, XDP_PASS); in xdp_cpumap_prog()
H A Dtest_xdp_with_cpumap_frags_helpers.c13 } cpu_map SEC(".maps");
H A Dxdp_features.c52 } cpu_map SEC(".maps");
222 return bpf_redirect_map(&cpu_map, 0, 0); in xdp_do_redirect()
/linux/Documentation/bpf/
H A 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/drivers/base/
H A Dcacheinfo.c1038 cpumask_t *cpu_map) in update_per_cpu_data_slice_size() argument
1042 for_each_cpu(icpu, cpu_map) { in update_per_cpu_data_slice_size()
1053 cpumask_t *cpu_map; in cacheinfo_cpu_online() local
1060 if (cpu_map_shared_cache(true, cpu, &cpu_map)) { in cacheinfo_cpu_online()
1061 update_per_cpu_data_slice_size(true, cpu, cpu_map); in cacheinfo_cpu_online()
1062 sched_update_llc_bytes(cpu_map); in cacheinfo_cpu_online()
1072 cpumask_t *cpu_map; in cacheinfo_cpu_pre_down() local
1075 nr_shared = cpu_map_shared_cache(false, cpu, &cpu_map); in cacheinfo_cpu_pre_down()
1081 update_per_cpu_data_slice_size(false, cpu, cpu_map); in cacheinfo_cpu_pre_down()
1082 sched_update_llc_bytes(cpu_map); in cacheinfo_cpu_pre_down()
/linux/tools/perf/util/
H A Dmmap.c258 struct perf_cpu_map *cpu_map = cpu_map__online(); in build_node_mask()
260 if (!cpu_map) in build_node_mask()
263 nr_cpus = perf_cpu_map__nr(cpu_map); in perf_mmap__setup_affinity_mask()
265 cpu = perf_cpu_map__cpu(cpu_map, idx); /* map c index to online cpu index */ in perf_mmap__setup_affinity_mask()
269 perf_cpu_map__put(cpu_map); in perf_mmap__setup_affinity_mask()
248 struct perf_cpu_map *cpu_map = cpu_map__online(); build_node_mask() local
H A Dmem-events.c259 struct perf_cpu_map *cpu_map = NULL; in perf_mem_events__record_args()
298 ret = perf_cpu_map__merge(&cpu_map, pmu->cpus); in perf_mem_events__record_args()
306 if (cpu_map) { in perf_mem_events__record_args()
309 if (!perf_cpu_map__equal(cpu_map, online)) { in perf_mem_events__record_args()
312 cpu_map__snprint(cpu_map, buf, sizeof(buf)); in perf_mem_events__record_args()
316 perf_cpu_map__put(cpu_map); in perf_mem_events__record_args()
258 struct perf_cpu_map *cpu_map = NULL; perf_mem_events__record_args() local
H A Dtool.h77 cpu_map,
78 cpu_map, global() member
H A Dtool.c374 tool->cpu_map = process_event_cpu_map_stub;
475 CREATE_DELEGATE_OP2(cpu_map); in delegate_tool__init()
561 tool->tool.cpu_map = delegate_cpu_map;
/linux/drivers/platform/x86/intel/speed_select_if/
H A Disst_if_common.c462 struct isst_if_cpu_map *cpu_map; in isst_if_proc_phyid_req()
464 cpu_map = (struct isst_if_cpu_map *)cmd_ptr; in isst_if_proc_phyid_req()
465 if (cpu_map->logical_cpu >= nr_cpu_ids || in isst_if_proc_phyid_req()
466 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
470 cpu_map->physical_cpu = isst_cpu_info[cpu_map->logical_cpu].punit_cpu_id; in isst_if_proc_phyid_req()
594 cmd_cb.offset = offsetof(struct isst_if_cpu_maps, cpu_map); in isst_if_def_ioctl()
461 struct isst_if_cpu_map *cpu_map; isst_if_proc_phyid_req() local
/linux/kernel/bpf/
H A Dcpumap.c90 struct bpf_cpu_map_entry __rcu **cpu_map; in cpu_map_alloc()
116 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc()
119 if (!cmap->cpu_map) { in __cpu_map_ring_cleanup()
576 old_rcpu = unrcu_pointer(xchg(&cmap->cpu_map[key_cpu], RCU_INITIALIZER(rcpu))); in cpu_map_delete_elem()
644 * bpf_cpu_map->cpu_map, but also ensure pending flush operations in cpu_map_free()
655 rcpu = rcu_dereference_raw(cmap->cpu_map[i]); in __cpu_map_lookup_elem()
662 bpf_map_area_free(cmap->cpu_map); in __cpu_map_lookup_elem()
678 rcpu = rcu_dereference_check(cmap->cpu_map[key], in cpu_map_get_next_key()
82 struct bpf_cpu_map_entry __rcu **cpu_map; global() member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_cpumap_attach.c41 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_helpers()
130 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_frags_helpers()
/linux/tools/perf/arch/arm/util/
H A Dcs-etm.c792 struct perf_cpu_map *cpu_map; in cs_etm_info_fill()
806 /* If the cpu_map has the "any" CPU all online CPUs are involved */ in cs_etm_info_fill()
808 cpu_map = online_cpus; in cs_etm_info_fill()
816 cpu_map = event_cpus; in cs_etm_info_fill()
819 nr_cpu = perf_cpu_map__nr(cpu_map); in cs_etm_info_fill()
832 perf_cpu_map__for_each_cpu(cpu, i, cpu_map) { in cs_etm_info_fill()
790 struct perf_cpu_map *cpu_map; cs_etm_info_fill() local
/linux/tools/perf/python/
H A Dtwatch.py13 cpus = perf.cpu_map()
H A Dtracepoint.py18 cpus = perf.cpu_map()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_queue.c1299 void *cpu_map; in pvr_queue_create() local
1358 cpu_map = pvr_fw_object_create_and_map(pvr_dev, sizeof(*queue->timeline_ufo.value), in pvr_queue_create()
1361 if (IS_ERR(cpu_map)) { in pvr_queue_create()
1362 err = PTR_ERR(cpu_map); in pvr_queue_create()
1366 queue->timeline_ufo.value = cpu_map; in pvr_queue_create()
/linux/tools/perf/
H A Dbuiltin-stat.c1296 struct perf_cpu_map *cpu_map = perf_cpu_map__new(map);
1303 id = perf_cpu_map__min(cpu_map).cpu; in cpu__get_cache_details()
1308 perf_cpu_map__put(cpu_map); in cpu__get_cache_details()
1689 struct perf_cpu_map *cpu_map; in perf_env__get_cache_aggr_by_cpu()
1700 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_aggr_by_cpu()
1701 map_contains_cpu = perf_cpu_map__idx(cpu_map, cpu); in perf_env__get_cache_aggr_by_cpu()
1702 perf_cpu_map__put(cpu_map); in perf_env__get_cache_aggr_by_cpu()
2330 cpus = cpu_map__new_data(&event->cpu_map.data); in __cmd_report()
2393 perf_stat.tool.cpu_map = process_cpu_map_event; in setup_system_wide()
1274 struct perf_cpu_map *cpu_map = perf_cpu_map__new(map); cpu__get_cache_id_from_map() local
1664 struct perf_cpu_map *cpu_map; perf_env__get_cache_id_for_cpu() local
/linux/include/uapi/linux/
H A Disst_if.h63 struct isst_if_cpu_map cpu_map[1]; member
/linux/tools/perf/tests/
H A Dtests.h170 DECLARE_SUITE(cpu_map);
/linux/drivers/scsi/lpfc/
H A Dlpfc_init.c1305 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
8369 phba->sli4_hba.cpu_map = kzalloc_objs(struct lpfc_vector_map_info, in lpfc_sli4_driver_resource_setup()
8371 if (!phba->sli4_hba.cpu_map) { in lpfc_sli4_driver_resource_setup()
8442 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_setup()
8489 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_unset()
10510 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
10543 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
10556 eqcpup = &phba->sli4_hba.cpu_map[eqcpu]; in lpfc_sli4_queue_create()
11120 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_setup()
11155 cpup = &phba->sli4_hba.cpu_map[cp in lpfc_sli4_queue_setup()
[all...]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-core.c1265 free_percpu(csdev->perf_sink_id_map.cpu_map); in coresight_device_release()
1585 csdev->perf_sink_id_map.cpu_map = alloc_percpu(atomic_t); in coresight_register()
1586 if (!csdev->perf_sink_id_map.cpu_map) { in coresight_register()

12