Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/kernel/sched/
H A Dtopology.c285 static void perf_domain_debug(const struct cpumask *cpu_map, in perf_domain_debug() argument
291 printk(KERN_DEBUG "root_domain %*pbl:", cpumask_pr_args(cpu_map)); in perf_domain_debug()
350 static bool build_perf_domains(const struct cpumask *cpu_map) in build_perf_domains() argument
352 int i, nr_pd = 0, nr_ps = 0, nr_cpus = cpumask_weight(cpu_map); in build_perf_domains()
354 int cpu = cpumask_first(cpu_map); in build_perf_domains()
369 cpumask_pr_args(cpu_map)); in build_perf_domains()
377 cpumask_pr_args(cpu_map)); in build_perf_domains()
381 for_each_cpu(i, cpu_map) { in build_perf_domains()
404 cpumask_pr_args(cpu_map)); in build_perf_domains()
408 perf_domain_debug(cpu_map, pd); in build_perf_domains()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dcacheinfo.c53 static void fill_cpumask_siblings(int cpu, cpumask_t *cpu_map) in fill_cpumask_siblings() argument
59 cpumask_set_cpu(cpu1, cpu_map); in fill_cpumask_siblings()
62 static void fill_cpumask_cluster(int cpu, cpumask_t *cpu_map) in fill_cpumask_cluster() argument
69 cpumask_set_cpu(cpu1, cpu_map); in fill_cpumask_cluster()
/OK3568_Linux_fs/kernel/tools/power/x86/intel-speed-select/
H A Disst-config.c66 struct _cpu_map *cpu_map; variable
558 if (cpu_map[i].pkg_id == pkg_id && in get_max_punit_core_id()
559 cpu_map[i].die_id == die_id && in get_max_punit_core_id()
560 cpu_map[i].punit_cpu_core > max_id) in get_max_punit_core_id()
561 max_id = cpu_map[i].punit_cpu_core; in get_max_punit_core_id()
597 cpu_map = malloc(sizeof(*cpu_map) * topo_max_cpus); in create_cpu_map()
598 if (!cpu_map) in create_cpu_map()
610 map.cpu_map[0].logical_cpu = i; in create_cpu_map()
613 map.cpu_map[0].logical_cpu); in create_cpu_map()
617 map.cpu_map[0].logical_cpu); in create_cpu_map()
[all …]
/OK3568_Linux_fs/kernel/arch/ia64/mm/
H A Ddiscontig.c183 unsigned int *cpu_map; in setup_per_cpu_areas() local
193 cpu_map = ai->groups[0].cpu_map; in setup_per_cpu_areas()
207 cpu_map[unit++] = cpu; in setup_per_cpu_areas()
232 cpu = cpu_map[unit]; in setup_per_cpu_areas()
244 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
H A Dcontig.c117 gi->cpu_map[gi->nr_units++] = cpu; in setup_per_cpu_areas()
/OK3568_Linux_fs/kernel/drivers/platform/x86/intel_speed_select_if/
H A Disst_if_common.c377 struct isst_if_cpu_map *cpu_map; in isst_if_proc_phyid_req() local
379 cpu_map = (struct isst_if_cpu_map *)cmd_ptr; in isst_if_proc_phyid_req()
380 if (cpu_map->logical_cpu >= nr_cpu_ids || in isst_if_proc_phyid_req()
381 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
385 cpu_map->physical_cpu = isst_cpu_info[cpu_map->logical_cpu].punit_cpu_id; in isst_if_proc_phyid_req()
508 cmd_cb.offset = offsetof(struct isst_if_cpu_maps, cpu_map); in isst_if_def_ioctl()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_with_cpumap_helpers.c13 } cpu_map SEC(".maps");
18 return bpf_redirect_map(&cpu_map, 1, 0); in xdp_redir_prog()
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_redirect_cpu_kern.c26 } cpu_map SEC(".maps");
230 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum0_no_touch()
273 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum1_touch_data()
321 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum2_round_robin()
389 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum3_proto_separate()
465 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum4_ddos_filter_pktgen()
568 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum5_lb_hash_ip_pairs()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dmmap.c244 const struct perf_cpu_map *cpu_map = NULL; in build_node_mask() local
246 cpu_map = cpu_map__online(); in build_node_mask()
247 if (!cpu_map) in build_node_mask()
250 nr_cpus = perf_cpu_map__nr(cpu_map); in build_node_mask()
252 cpu = cpu_map->map[c]; /* map c index to online cpu index */ in build_node_mask()
H A Dtool.h73 cpu_map, member
H A Dsession.c525 if (tool->cpu_map == NULL) in perf_tool__fill_defaults()
526 tool->cpu_map = process_event_cpu_map_stub; in perf_tool__fill_defaults()
887 struct perf_record_cpu_map_data *data = &event->cpu_map.data; in perf_event__cpu_map_swap()
1620 return tool->cpu_map(session, event); in perf_session__process_user_event()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dcpumap.c77 struct bpf_cpu_map_entry **cpu_map; member
123 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc()
126 if (!cmap->cpu_map) in cpu_map_alloc()
525 old_rcpu = xchg(&cmap->cpu_map[key_cpu], rcpu); in __cpu_map_entry_replace()
608 rcpu = READ_ONCE(cmap->cpu_map[i]); in cpu_map_free()
615 bpf_map_area_free(cmap->cpu_map); in cpu_map_free()
627 rcpu = READ_ONCE(cmap->cpu_map[key]); in __cpu_map_lookup_elem()
/OK3568_Linux_fs/kernel/mm/
H A Dpercpu.c2260 __alignof__(ai->groups[0].cpu_map[0])); in pcpu_alloc_alloc_info()
2261 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); in pcpu_alloc_alloc_info()
2269 ai->groups[0].cpu_map = ptr; in pcpu_alloc_alloc_info()
2272 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info()
2338 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
2340 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2486 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2680 unsigned int *cpu_map; in pcpu_build_alloc_info() local
2766 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info()
2769 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dcpumap.c19 struct perf_record_cpu_map *map_event = &event->cpu_map; in process_event_mask()
53 struct perf_record_cpu_map *map_event = &event->cpu_map; in process_event_cpus()
/OK3568_Linux_fs/kernel/tools/perf/arch/arm/util/
H A Dcs-etm.c644 struct perf_cpu_map *cpu_map; in cs_etm_info_fill() local
659 cpu_map = online_cpus; in cs_etm_info_fill()
668 cpu_map = event_cpus; in cs_etm_info_fill()
671 nr_cpu = perf_cpu_map__nr(cpu_map); in cs_etm_info_fill()
685 if (cpu_map__has(cpu_map, i)) in cs_etm_info_fill()
/OK3568_Linux_fs/kernel/tools/perf/arch/nds32/util/
H A Dheader.c15 struct cpu_map *cpus; in get_cpuid_str()
/OK3568_Linux_fs/kernel/tools/perf/python/
H A Dtwatch.py12 cpus = perf.cpu_map()
H A Dtracepoint.py19 cpus = perf.cpu_map()
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Disst_if.h63 struct isst_if_cpu_map cpu_map[1]; member
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_cpumap_attach.c36 map_fd = bpf_map__fd(skel->maps.cpu_map); in test_xdp_with_cpumap_helpers()
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dcoretemp.c91 u16 cpu_map[NUM_REAL_CORES]; member
473 pdata->cpu_map[index] = topology_core_id(cpu); in create_core_data()
692 if (pd->cpu_map[i] == topology_core_id(cpu)) { in coretemp_cpu_offline()
/OK3568_Linux_fs/kernel/include/linux/
H A Dpercpu.h71 unsigned int *cpu_map; /* unit->cpu map, empty member
/OK3568_Linux_fs/kernel/drivers/scsi/lpfc/
H A Dlpfc_init.c1249 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
6993 phba->sli4_hba.cpu_map = kcalloc(phba->sli4_hba.num_possible_cpu, in lpfc_sli4_driver_resource_setup()
6996 if (!phba->sli4_hba.cpu_map) { in lpfc_sli4_driver_resource_setup()
7058 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_setup()
7104 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_unset()
9042 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
9075 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
9088 eqcpup = &phba->sli4_hba.cpu_map[eqcpu]; in lpfc_sli4_queue_create()
9649 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_setup()
9684 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_setup()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/perf/include/perf/
H A Devent.h409 struct perf_record_cpu_map cpu_map; member
/OK3568_Linux_fs/u-boot/arch/x86/cpu/
H A Dmp_init.c51 struct cpu_map { struct

12