Home
last modified time | relevance | path

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

/linux-4.1.27/tools/perf/util/
Dcpumap.h10 struct cpu_map { struct
15 struct cpu_map *cpu_map__new(const char *cpu_list); argument
16 struct cpu_map *cpu_map__dummy_new(void);
17 void cpu_map__delete(struct cpu_map *map);
18 struct cpu_map *cpu_map__read(FILE *file);
19 size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
20 int cpu_map__get_socket(struct cpu_map *map, int idx);
21 int cpu_map__get_core(struct cpu_map *map, int idx);
22 int cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp);
23 int cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep);
[all …]
Dcpumap.c9 static struct cpu_map *cpu_map__default_new(void) in cpu_map__default_new()
11 struct cpu_map *cpus; in cpu_map__default_new()
30 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new()
33 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
43 struct cpu_map *cpu_map__read(FILE *file) in cpu_map__read()
45 struct cpu_map *cpus = NULL; in cpu_map__read()
98 static struct cpu_map *cpu_map__read_all_cpu_map(void) in cpu_map__read_all_cpu_map()
100 struct cpu_map *cpus = NULL; in cpu_map__read_all_cpu_map()
112 struct cpu_map *cpu_map__new(const char *cpu_list) in cpu_map__new()
114 struct cpu_map *cpus = NULL; in cpu_map__new()
[all …]
Devlist.h15 struct cpu_map;
52 struct cpu_map *cpus;
64 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus,
147 struct cpu_map *cpus, in perf_evlist__set_maps()
Devsel.h85 struct cpu_map *cpus;
110 struct cpu_map;
197 struct cpu_map *cpus);
200 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
Drecord.c60 struct cpu_map *cpus; in perf_probe_api()
217 struct cpu_map *cpus = cpu_map__new(NULL); in perf_evlist__can_select_event()
Dpmu.h23 struct cpu_map *cpus;
Dpython.c366 struct cpu_map *cpus;
622 struct cpu_map *cpus = NULL; in pyrf_evsel__open()
691 struct cpu_map *cpus; in pyrf_evlist__init()
Dpmu.c407 static struct cpu_map *pmu_cpumask(const char *name) in pmu_cpumask()
412 struct cpu_map *cpus; in pmu_cpumask()
Devsel.c1134 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in __perf_evsel__open()
1294 struct cpu_map map;
1309 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in perf_evsel__open()
1324 struct cpu_map *cpus) in perf_evsel__open_per_cpu()
Devlist.c35 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, in perf_evlist__init()
999 const struct cpu_map *cpus = evlist->cpus; in perf_evlist__mmap()
Dsvghelper.c734 struct cpu_map *m; in str_to_bitmap()
Dparse-events.c277 char *name, struct cpu_map *cpus) in __add_event()
Dsession.c1621 struct cpu_map *map; in perf_session__cpu_bitmap()
Dheader.c703 struct cpu_map *node_map = NULL; in write_numa_topology()
/linux-4.1.27/arch/ia64/mm/
Ddiscontig.c188 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()
Dcontig.c163 gi->cpu_map[gi->nr_units++] = cpu; in setup_per_cpu_areas()
/linux-4.1.27/mm/
Dpercpu.c1384 __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()
1789 unsigned int *cpu_map; in pcpu_build_alloc_info() local
1874 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info()
1877 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
[all …]
/linux-4.1.27/drivers/soc/ti/
Dknav_qmss_acc.c217 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()
Dknav_qmss_queue.c108 unsigned long cpu_map; in knav_queue_setup_irq() local
113 cpu_map = range->irqs[queue].cpu_map; in knav_queue_setup_irq()
119 if (cpu_map) { in knav_queue_setup_irq()
120 ret = irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); in knav_queue_setup_irq()
1226 range->irqs[i].cpu_map = in knav_setup_queue_range()
Dknav_qmss.h324 u32 cpu_map; member
/linux-4.1.27/tools/perf/python/
Dtwatch.py19 cpus = perf.cpu_map()
/linux-4.1.27/tools/perf/tests/
Dopen-syscall-all-cpus.c10 struct cpu_map *cpus; in test__open_syscall_event_on_all_cpus()
Dkeep-tracking.c64 struct cpu_map *cpus = NULL; in test__keep_tracking()
Dmmap-basic.c23 struct cpu_map *cpus; in test__basic_mmap()
Dperf-time-to-tsc.c49 struct cpu_map *cpus = NULL; in test__perf_time_to_tsc()
Dcode-reading.c403 struct cpu_map *cpus = NULL; in do_test_code_reading()
Dswitch-tracking.c322 struct cpu_map *cpus = NULL; in test__switch_tracking()
/linux-4.1.27/include/linux/
Dpercpu.h63 unsigned int *cpu_map; /* unit->cpu map, empty member
Dnetdevice.h728 struct xps_map __rcu *cpu_map[0]; member
/linux-4.1.27/kernel/sched/
Dcore.c6090 static void __sdt_free(const struct cpumask *cpu_map);
6091 static int __sdt_alloc(const struct cpumask *cpu_map);
6094 const struct cpumask *cpu_map) in __free_domain_allocs() argument
6103 __sdt_free(cpu_map); /* fall through */ in __free_domain_allocs()
6110 const struct cpumask *cpu_map) in __visit_domain_allocation_hell() argument
6114 if (__sdt_alloc(cpu_map)) in __visit_domain_allocation_hell()
6587 static int __sdt_alloc(const struct cpumask *cpu_map) in __sdt_alloc() argument
6607 for_each_cpu(j, cpu_map) { in __sdt_alloc()
6640 static void __sdt_free(const struct cpumask *cpu_map) in __sdt_free() argument
6648 for_each_cpu(j, cpu_map) { in __sdt_free()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-stat.c145 static struct cpu_map *aggr_map;
146 static int (*aggr_get_id)(struct cpu_map *m, int cpu);
166 static inline struct cpu_map *perf_evsel__cpus(struct perf_evsel *evsel) in perf_evsel__cpus()
401 struct cpu_map *cpus = perf_evsel__cpus(counter); in check_per_pkg()
/linux-4.1.27/net/core/
Ddev.c1911 map = xmap_dereference(dev_maps->cpu_map[cpu]); in remove_xps_queue()
1918 RCU_INIT_POINTER(dev_maps->cpu_map[cpu], NULL); in remove_xps_queue()
2023 map = dev_maps ? xmap_dereference(dev_maps->cpu_map[cpu]) : in netif_set_xps_queue()
2030 RCU_INIT_POINTER(new_dev_maps->cpu_map[cpu], map); in netif_set_xps_queue()
2041 map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2055 map = xmap_dereference(dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2056 RCU_INIT_POINTER(new_dev_maps->cpu_map[cpu], map); in netif_set_xps_queue()
2066 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2067 map = xmap_dereference(dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2109 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
[all …]
Dflow_dissector.c432 dev_maps->cpu_map[skb->sender_cpu - 1]); in get_xps_queue()
Dnet-sysfs.c1172 rcu_dereference(dev_maps->cpu_map[i]); in show_xps_map()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_init.c5438 phba->sli4_hba.cpu_map = kzalloc((sizeof(struct lpfc_vector_map_info) * in lpfc_sli4_driver_resource_setup()
5441 if (!phba->sli4_hba.cpu_map) { in lpfc_sli4_driver_resource_setup()
5455 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_setup()
5464 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_driver_resource_setup()
5524 kfree(phba->sli4_hba.cpu_map); in lpfc_sli4_driver_resource_unset()
8615 cpup = phba->sli4_hba.cpu_map; in lpfc_find_next_cpu()
8639 cpup = phba->sli4_hba.cpu_map; in lpfc_find_next_cpu()
8681 memset(phba->sli4_hba.cpu_map, 0xff, in lpfc_sli4_set_affinity()
8692 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_set_affinity()
8718 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_set_affinity()
[all …]
Dlpfc_sli4.h607 struct lpfc_vector_map_info *cpu_map; member
Dlpfc_attr.c4338 cpup = &phba->sli4_hba.cpu_map[phba->sli4_hba.curr_disp_cpu]; in lpfc_fcp_cpu_map_show()
Dlpfc_sli.c8160 cpup = phba->sli4_hba.cpu_map; in lpfc_sli4_scmd_to_wqidx_distr()
/linux-4.1.27/drivers/s390/char/
Dzcore.c51 int cpu_map[NR_CPUS]; member