/linux-6.6.21/kernel/sched/ |
D | topology.c | 306 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/ |
D | isst-config.c | 68 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/ |
D | cacheinfo.c | 58 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/ |
D | freplace_progmap.c | 10 } cpu_map SEC(".maps"); 21 return bpf_redirect_map(&cpu_map, 0, XDP_PASS); in xdp_cpumap_prog()
|
D | test_xdp_with_cpumap_helpers.c | 13 } cpu_map SEC(".maps"); 18 return bpf_redirect_map(&cpu_map, 1, 0); in xdp_redir_prog()
|
D | test_xdp_with_cpumap_frags_helpers.c | 13 } cpu_map SEC(".maps");
|
D | xdp_features.c | 52 } cpu_map SEC(".maps"); 222 return bpf_redirect_map(&cpu_map, 0, 0); in xdp_do_redirect()
|
/linux-6.6.21/arch/ia64/mm/ |
D | discontig.c | 184 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()
|
D | contig.c | 115 gi->cpu_map[gi->nr_units++] = cpu; in setup_per_cpu_areas()
|
/linux-6.6.21/Documentation/bpf/ |
D | map_cpumap.rst | 103 ``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/ |
D | isst_if_common.c | 483 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/ |
D | mmap.c | 249 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()
|
D | tool.h | 75 cpu_map, member
|
/linux-6.6.21/kernel/bpf/ |
D | cpumap.c | 78 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/ |
D | xdp_cpumap_attach.c | 35 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/ |
D | cpumap.c | 19 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()
|
D | tests.h | 120 DECLARE_SUITE(cpu_map);
|
/linux-6.6.21/mm/ |
D | percpu.c | 2439 __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/ |
D | twatch.py | 12 cpus = perf.cpu_map()
|
D | tracepoint.py | 19 cpus = perf.cpu_map()
|
/linux-6.6.21/tools/perf/arch/arm/util/ |
D | cs-etm.c | 785 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/ |
D | percpu.h | 76 unsigned int *cpu_map; /* unit->cpu map, empty member
|
/linux-6.6.21/tools/perf/ |
D | builtin-stat.c | 1312 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/ |
D | coretemp.c | 91 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/ |
D | isst_if.h | 63 struct isst_if_cpu_map cpu_map[1]; member
|