Home
last modified time | relevance | path

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

123

/Linux-v4.19/tools/perf/util/
Dcpumap.h12 struct cpu_map { struct
18 struct cpu_map *cpu_map__new(const char *cpu_list); argument
19 struct cpu_map *cpu_map__empty_new(int nr);
20 struct cpu_map *cpu_map__dummy_new(void);
21 struct cpu_map *cpu_map__new_data(struct cpu_map_data *data);
22 struct cpu_map *cpu_map__read(FILE *file);
23 size_t cpu_map__snprint(struct cpu_map *map, char *buf, size_t size);
24 size_t cpu_map__snprint_mask(struct cpu_map *map, char *buf, size_t size);
25 size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
27 int cpu_map__get_socket(struct cpu_map *map, int idx, void *data);
[all …]
Dcpumap.c20 static struct cpu_map *cpu_map__default_new(void) in cpu_map__default_new()
22 struct cpu_map *cpus; in cpu_map__default_new()
42 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new()
45 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
56 struct cpu_map *cpu_map__read(FILE *file) in cpu_map__read()
58 struct cpu_map *cpus = NULL; in cpu_map__read()
111 static struct cpu_map *cpu_map__read_all_cpu_map(void) in cpu_map__read_all_cpu_map()
113 struct cpu_map *cpus = NULL; in cpu_map__read_all_cpu_map()
125 struct cpu_map *cpu_map__new(const char *cpu_list) in cpu_map__new()
127 struct cpu_map *cpus = NULL; in cpu_map__new()
[all …]
Devsel.h112 struct cpu_map *cpus;
113 struct cpu_map *own_cpus;
170 struct cpu_map;
175 static inline struct cpu_map *perf_evsel__cpus(struct perf_evsel *evsel) in perf_evsel__cpus()
278 struct cpu_map *cpus);
281 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
Devlist.h21 struct cpu_map;
48 struct cpu_map *cpus;
64 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus,
181 void perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus,
Drecord.c63 struct cpu_map *cpus; in perf_probe_api()
118 struct cpu_map *cpus; in perf_can_record_cpu_wide()
278 struct cpu_map *cpus = cpu_map__new(NULL); in perf_evlist__can_select_event()
Devent.h648 struct cpu_map_event cpu_map; member
660 struct cpu_map;
679 struct cpu_map *cpus,
822 void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max);
823 void cpu_map_data__synthesize(struct cpu_map_data *data, struct cpu_map *map,
Denv.h27 struct cpu_map *map;
/Linux-v4.19/tools/perf/tests/
Dcpumap.c17 struct cpu_map_event *map_event = &event->cpu_map; in process_event_mask()
20 struct cpu_map *map; in process_event_mask()
51 struct cpu_map_event *map_event = &event->cpu_map; in process_event_cpus()
54 struct cpu_map *map; in process_event_cpus()
78 struct cpu_map *cpus; in test__cpu_map_synthesize()
100 struct cpu_map *map = cpu_map__new(str); in cpu_map_print()
Dtopology.c60 static int check_cpu_topology(char *path, struct cpu_map *map) in check_cpu_topology()
119 struct cpu_map *map; in test__session_topology()
Devent-times.c113 struct cpu_map *cpus; in attach__cpu_disabled()
142 struct cpu_map *cpus; in attach__cpu_enabled()
Dbitmap.c12 struct cpu_map *map = cpu_map__new(str); in get_bitmap()
/Linux-v4.19/kernel/sched/
Dtopology.c981 static void __sdt_free(const struct cpumask *cpu_map);
982 static int __sdt_alloc(const struct cpumask *cpu_map);
985 const struct cpumask *cpu_map) in __free_domain_allocs() argument
996 __sdt_free(cpu_map); in __free_domain_allocs()
1004 __visit_domain_allocation_hell(struct s_data *d, const struct cpumask *cpu_map) in __visit_domain_allocation_hell() argument
1008 if (__sdt_alloc(cpu_map)) in __visit_domain_allocation_hell()
1081 const struct cpumask *cpu_map, in sd_init() argument
1141 cpumask_and(sched_domain_span(sd), cpu_map, tl->mask(cpu)); in sd_init()
1500 static int __sdt_alloc(const struct cpumask *cpu_map) in __sdt_alloc() argument
1524 for_each_cpu(j, cpu_map) { in __sdt_alloc()
[all …]
/Linux-v4.19/tools/perf/arch/arm/util/
Dcs-etm.c71 const struct cpu_map *cpus = evlist->cpus; in cs_etm_recording_options()
290 struct cpu_map *event_cpus = evlist->cpus; in cs_etm_info_priv_size()
291 struct cpu_map *online_cpus = cpu_map__new(NULL); in cs_etm_info_priv_size()
449 struct cpu_map *cpu_map; in cs_etm_info_fill() local
450 struct cpu_map *event_cpus = session->evlist->cpus; in cs_etm_info_fill()
451 struct cpu_map *online_cpus = cpu_map__new(NULL); in cs_etm_info_fill()
464 cpu_map = online_cpus; in cs_etm_info_fill()
473 cpu_map = event_cpus; in cs_etm_info_fill()
476 nr_cpu = cpu_map__nr(cpu_map); in cs_etm_info_fill()
490 if (cpu_map__has(cpu_map, i)) in cs_etm_info_fill()
/Linux-v4.19/arch/ia64/mm/
Ddiscontig.c185 unsigned int *cpu_map; in setup_per_cpu_areas() local
195 cpu_map = ai->groups[0].cpu_map; in setup_per_cpu_areas()
209 cpu_map[unit++] = cpu; in setup_per_cpu_areas()
234 cpu = cpu_map[unit]; in setup_per_cpu_areas()
246 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
/Linux-v4.19/kernel/bpf/
Dcpumap.c67 struct bpf_cpu_map_entry **cpu_map; member
127 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc()
130 if (!cmap->cpu_map) in cpu_map_alloc()
409 old_rcpu = xchg(&cmap->cpu_map[key_cpu], rcpu); in __cpu_map_entry_replace()
504 rcpu = READ_ONCE(cmap->cpu_map[i]); in cpu_map_free()
512 bpf_map_area_free(cmap->cpu_map); in cpu_map_free()
524 rcpu = READ_ONCE(cmap->cpu_map[key]); in __cpu_map_lookup_elem()
657 struct bpf_cpu_map_entry *rcpu = READ_ONCE(cmap->cpu_map[bit]); in __cpu_map_flush()
/Linux-v4.19/samples/bpf/
Dxdp_redirect_cpu_kern.c21 struct bpf_map_def SEC("maps") cpu_map = {
227 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum0_no_touch()
270 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum1_touch_data()
318 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum2_round_robin()
386 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum3_proto_separate()
462 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum4_ddos_filter_pktgen()
565 return bpf_redirect_map(&cpu_map, cpu_dest, 0); in xdp_prognum5_lb_hash_ip_pairs()
/Linux-v4.19/drivers/soc/ti/
Dknav_qmss_acc.c208 unsigned long cpu_map; in knav_range_setup_acc_irq() local
215 cpu_map = range->irqs[0].cpu_map; in knav_range_setup_acc_irq()
219 cpu_map = range->irqs[queue].cpu_map; in knav_range_setup_acc_irq()
242 if (!ret && cpu_map) { in knav_range_setup_acc_irq()
243 ret = irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); in knav_range_setup_acc_irq()
/Linux-v4.19/mm/
Dpercpu.c1888 __alignof__(ai->groups[0].cpu_map[0])); in pcpu_alloc_alloc_info()
1889 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); in pcpu_alloc_alloc_info()
1897 ai->groups[0].cpu_map = ptr; in pcpu_alloc_alloc_info()
1900 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info()
1966 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
1968 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2098 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2285 unsigned int *cpu_map; in pcpu_build_alloc_info() local
2371 cpu_map = ai->groups[0].cpu_map; in pcpu_build_alloc_info()
2374 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
[all …]
/Linux-v4.19/tools/perf/
Dbuiltin-stat.c146 typedef int (*aggr_get_id_t)(struct cpu_map *m, int cpu);
175 static struct cpu_map *aggr_map;
196 struct cpu_map *cpus;
532 struct cpu_map *cpus = counter->cpus; in store_counter_ids()
2044 static int perf_stat__get_socket(struct cpu_map *map, int cpu) in perf_stat__get_socket()
2049 static int perf_stat__get_core(struct cpu_map *map, int cpu) in perf_stat__get_core()
2054 static int cpu_map__get_max(struct cpu_map *map) in cpu_map__get_max()
2066 static struct cpu_map *cpus_aggr_map;
2068 static int perf_stat__get_aggr(aggr_get_id_t get_id, struct cpu_map *map, int idx) in perf_stat__get_aggr()
2083 static int perf_stat__get_socket_cached(struct cpu_map *map, int idx) in perf_stat__get_socket_cached()
[all …]
Dbuiltin-ftrace.c169 static int set_tracing_cpumask(struct cpu_map *cpumap) in set_tracing_cpumask()
196 struct cpu_map *cpumap = ftrace->evlist->cpus; in set_tracing_cpu()
206 struct cpu_map *cpumap = cpu_map__new(NULL); in reset_tracing_cpu()
/Linux-v4.19/tools/perf/bench/
Dfutex-wake.c93 pthread_attr_t thread_attr, struct cpu_map *cpu) in block_threads()
126 struct cpu_map *cpu; in bench_futex_wake()
Dfutex-requeue.c87 pthread_attr_t thread_attr, struct cpu_map *cpu) in block_threads()
120 struct cpu_map *cpu; in bench_futex_requeue()
Dfutex-lock-pi.c118 struct cpu_map *cpu) in create_threads()
152 struct cpu_map *cpu; in bench_futex_lock_pi()
/Linux-v4.19/tools/perf/python/
Dtwatch.py19 cpus = perf.cpu_map()
/Linux-v4.19/tools/perf/arch/arm64/util/
Dheader.c19 struct cpu_map *cpus; in get_cpuid_str()

123