/linux-4.4.14/tools/perf/util/ |
D | cpumap.h | 11 struct cpu_map { struct 17 struct cpu_map *cpu_map__new(const char *cpu_list); argument 18 struct cpu_map *cpu_map__empty_new(int nr); 19 struct cpu_map *cpu_map__dummy_new(void); 20 struct cpu_map *cpu_map__read(FILE *file); 21 size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp); 23 int cpu_map__get_socket(struct cpu_map *map, int idx, void *data); 25 int cpu_map__get_core(struct cpu_map *map, int idx, void *data); 26 int cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp); 27 int cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep); [all …]
|
D | cpumap.c | 10 static struct cpu_map *cpu_map__default_new(void) in cpu_map__default_new() 12 struct cpu_map *cpus; in cpu_map__default_new() 32 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new() 35 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new() 46 struct cpu_map *cpu_map__read(FILE *file) in cpu_map__read() 48 struct cpu_map *cpus = NULL; in cpu_map__read() 101 static struct cpu_map *cpu_map__read_all_cpu_map(void) in cpu_map__read_all_cpu_map() 103 struct cpu_map *cpus = NULL; in cpu_map__read_all_cpu_map() 115 struct cpu_map *cpu_map__new(const char *cpu_list) in cpu_map__new() 117 struct cpu_map *cpus = NULL; in cpu_map__new() [all …]
|
D | evsel.h | 102 struct cpu_map *cpus; 103 struct cpu_map *own_cpus; 134 struct cpu_map; 139 static inline struct cpu_map *perf_evsel__cpus(struct perf_evsel *evsel) in perf_evsel__cpus() 233 struct cpu_map *cpus); 236 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
|
D | evlist.h | 17 struct cpu_map; 57 struct cpu_map *cpus; 70 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 162 void perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus,
|
D | record.c | 60 struct cpu_map *cpus; in perf_probe_api() 115 struct cpu_map *cpus; in perf_can_record_cpu_wide() 260 struct cpu_map *cpus = cpu_map__new(NULL); in perf_evlist__can_select_event()
|
D | pmu.h | 24 struct cpu_map *cpus;
|
D | evlist.c | 36 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, in perf_evlist__init() 1134 const struct cpu_map *cpus = evlist->cpus; in perf_evlist__mmap_ex() 1175 struct cpu_map *cpus; in perf_evlist__create_maps() 1202 void perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, in perf_evlist__set_maps() 1442 struct cpu_map *cpus; in perf_evlist__create_syswide_maps()
|
D | stat.c | 203 struct cpu_map *cpus = perf_evsel__cpus(counter); in check_per_pkg()
|
D | python.c | 412 struct cpu_map *cpus; 671 struct cpu_map *cpus = NULL; in pyrf_evsel__open() 740 struct cpu_map *cpus; in pyrf_evlist__init()
|
D | pmu.c | 427 static struct cpu_map *pmu_cpumask(const char *name) in pmu_cpumask() 432 struct cpu_map *cpus; in pmu_cpumask()
|
D | evsel.c | 1291 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in __perf_evsel__open() 1467 struct cpu_map map; 1482 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in perf_evsel__open() 1497 struct cpu_map *cpus) in perf_evsel__open_per_cpu()
|
D | svghelper.c | 734 struct cpu_map *m; in str_to_bitmap()
|
D | parse-events.c | 287 char *name, struct cpu_map *cpus, in __add_event()
|
D | session.c | 1888 struct cpu_map *map; in perf_session__cpu_bitmap()
|
D | header.c | 688 struct cpu_map *node_map = NULL; in write_numa_topology()
|
/linux-4.4.14/arch/ia64/mm/ |
D | discontig.c | 188 unsigned int *cpu_map; in setup_per_cpu_areas() local 198 cpu_map = ai->groups[0].cpu_map; in setup_per_cpu_areas() 212 cpu_map[unit++] = cpu; in setup_per_cpu_areas() 237 cpu = cpu_map[unit]; in setup_per_cpu_areas() 249 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
|
D | contig.c | 163 gi->cpu_map[gi->nr_units++] = cpu; in setup_per_cpu_areas()
|
/linux-4.4.14/mm/ |
D | percpu.c | 1384 __alignof__(ai->groups[0].cpu_map[0])); in pcpu_alloc_alloc_info() 1385 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); in pcpu_alloc_alloc_info() 1393 ai->groups[0].cpu_map = ptr; in pcpu_alloc_alloc_info() 1396 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info() 1462 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info() 1464 gi->cpu_map[unit]); in pcpu_dump_alloc_info() 1588 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk() 1788 unsigned int *cpu_map; in pcpu_build_alloc_info() local 1873 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info() 1876 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info() [all …]
|
/linux-4.4.14/tools/perf/tests/ |
D | topology.c | 56 static int check_cpu_topology(char *path, struct cpu_map *map) in check_cpu_topology() 90 struct cpu_map *map; in test_session_topology()
|
D | task-exit.c | 46 struct cpu_map *cpus; in test__task_exit()
|
D | openat-syscall-all-cpus.c | 13 struct cpu_map *cpus; in test__openat_syscall_event_on_all_cpus()
|
D | sw-clock.c | 37 struct cpu_map *cpus; in __test__sw_clock_freq()
|
D | keep-tracking.c | 64 struct cpu_map *cpus = NULL; in test__keep_tracking()
|
D | mmap-basic.c | 24 struct cpu_map *cpus; in test__basic_mmap()
|
D | switch-tracking.c | 322 struct cpu_map *cpus = NULL; in test__switch_tracking()
|
D | code-reading.c | 452 struct cpu_map *cpus = NULL; in do_test_code_reading()
|
/linux-4.4.14/drivers/soc/ti/ |
D | knav_qmss_acc.c | 217 unsigned long cpu_map; in knav_range_setup_acc_irq() local 224 cpu_map = range->irqs[0].cpu_map; in knav_range_setup_acc_irq() 228 cpu_map = range->irqs[queue].cpu_map; in knav_range_setup_acc_irq() 251 if (!ret && cpu_map) { in knav_range_setup_acc_irq() 252 ret = irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); in knav_range_setup_acc_irq()
|
D | knav_qmss_queue.c | 114 unsigned long cpu_map; in knav_queue_setup_irq() local 119 cpu_map = range->irqs[queue].cpu_map; in knav_queue_setup_irq() 125 if (cpu_map) { in knav_queue_setup_irq() 126 ret = irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); in knav_queue_setup_irq() 1232 range->irqs[i].cpu_map = in knav_setup_queue_range()
|
D | knav_qmss.h | 325 u32 cpu_map; member
|
/linux-4.4.14/tools/perf/ |
D | builtin-stat.c | 103 typedef int (*aggr_get_id_t)(struct cpu_map *m, int cpu); 123 static struct cpu_map *aggr_map; 994 static int perf_stat__get_socket(struct cpu_map *map, int cpu) in perf_stat__get_socket() 999 static int perf_stat__get_core(struct cpu_map *map, int cpu) in perf_stat__get_core() 1004 static int cpu_map__get_max(struct cpu_map *map) in cpu_map__get_max() 1016 static struct cpu_map *cpus_aggr_map; 1018 static int perf_stat__get_aggr(aggr_get_id_t get_id, struct cpu_map *map, int idx) in perf_stat__get_aggr() 1033 static int perf_stat__get_socket_cached(struct cpu_map *map, int idx) in perf_stat__get_socket_cached() 1038 static int perf_stat__get_core_cached(struct cpu_map *map, int idx) in perf_stat__get_core_cached()
|
/linux-4.4.14/tools/perf/python/ |
D | twatch.py | 19 cpus = perf.cpu_map()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | gk20a.c | 111 void __iomem * (*cpu_map)(struct nvkm_memory *); member 214 node->vaddr = imem->cpu_map(memory); in gk20a_instobj_acquire() 612 imem->cpu_map = gk20a_instobj_cpu_map_iommu; in gk20a_instmem_new() 623 imem->cpu_map = gk20a_instobj_cpu_map_dma; in gk20a_instmem_new()
|
/linux-4.4.14/include/linux/ |
D | percpu.h | 63 unsigned int *cpu_map; /* unit->cpu map, empty member
|
D | netdevice.h | 730 struct xps_map __rcu *cpu_map[0]; member
|
/linux-4.4.14/kernel/sched/ |
D | core.c | 6347 static void __sdt_free(const struct cpumask *cpu_map); 6348 static int __sdt_alloc(const struct cpumask *cpu_map); 6351 const struct cpumask *cpu_map) in __free_domain_allocs() argument 6360 __sdt_free(cpu_map); /* fall through */ in __free_domain_allocs() 6367 const struct cpumask *cpu_map) in __visit_domain_allocation_hell() argument 6371 if (__sdt_alloc(cpu_map)) in __visit_domain_allocation_hell() 6847 static int __sdt_alloc(const struct cpumask *cpu_map) in __sdt_alloc() argument 6867 for_each_cpu(j, cpu_map) { in __sdt_alloc() 6900 static void __sdt_free(const struct cpumask *cpu_map) in __sdt_free() argument 6908 for_each_cpu(j, cpu_map) { in __sdt_free() [all …]
|
/linux-4.4.14/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 51 struct cpu_map *cpus = NULL; in test__perf_time_to_tsc()
|
/linux-4.4.14/net/core/ |
D | dev.c | 1943 map = xmap_dereference(dev_maps->cpu_map[cpu]); in remove_xps_queue() 1950 RCU_INIT_POINTER(dev_maps->cpu_map[cpu], NULL); in remove_xps_queue() 2055 map = dev_maps ? xmap_dereference(dev_maps->cpu_map[cpu]) : in netif_set_xps_queue() 2062 RCU_INIT_POINTER(new_dev_maps->cpu_map[cpu], map); in netif_set_xps_queue() 2073 map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue() 2087 map = xmap_dereference(dev_maps->cpu_map[cpu]); in netif_set_xps_queue() 2088 RCU_INIT_POINTER(new_dev_maps->cpu_map[cpu], map); in netif_set_xps_queue() 2098 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue() 2099 map = xmap_dereference(dev_maps->cpu_map[cpu]); in netif_set_xps_queue() 2141 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue() [all …]
|
D | net-sysfs.c | 1189 rcu_dereference(dev_maps->cpu_map[i]); in show_xps_map()
|
/linux-4.4.14/tools/perf/arch/x86/util/ |
D | intel-bts.c | 119 const struct cpu_map *cpus = evlist->cpus; in intel_bts_recording_options()
|
D | intel-pt.c | 504 const struct cpu_map *cpus = evlist->cpus; in intel_pt_recording_options()
|
/linux-4.4.14/drivers/scsi/lpfc/ |
D | lpfc_init.c | 5457 phba->sli4_hba.cpu_map = kzalloc((sizeof(struct lpfc_vector_map_info) * in lpfc_sli4_driver_resource_setup() 5460 if (!phba->sli4_hba.cpu_map) { in lpfc_sli4_driver_resource_setup() 5474 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_setup() 5483 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_driver_resource_setup() 5543 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_unset() 8636 cpup = phba->sli4_hba.cpu_map; in lpfc_find_next_cpu() 8660 cpup = phba->sli4_hba.cpu_map; in lpfc_find_next_cpu() 8701 memset(phba->sli4_hba.cpu_map, 0xff, in lpfc_sli4_set_affinity() 8712 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_set_affinity() 8738 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_set_affinity() [all …]
|
D | lpfc_sli4.h | 607 struct lpfc_vector_map_info *cpu_map; member
|
D | lpfc_attr.c | 4338 cpup = &phba->sli4_hba.cpu_map[phba->sli4_hba.curr_disp_cpu]; in lpfc_fcp_cpu_map_show()
|
D | lpfc_scsi.c | 3873 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_scmd_to_wqidx_distr()
|
/linux-4.4.14/drivers/s390/char/ |
D | zcore.c | 51 int cpu_map[NR_CPUS]; member
|