/kernel/linux/linux-5.10/tools/lib/perf/ |
H A D | cpumap.c | 15 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); in perf_cpu_map__dummy_new() local 17 if (cpus != NULL) { in perf_cpu_map__dummy_new() 18 cpus->nr = 1; in perf_cpu_map__dummy_new() 19 cpus->map[0] = -1; in perf_cpu_map__dummy_new() 20 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__dummy_new() 23 return cpus; in perf_cpu_map__dummy_new() 50 struct perf_cpu_map *cpus; in cpu_map__default_new() local 57 cpus = malloc(sizeof(*cpus) in cpu_map__default_new() 79 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); cpu_map__trim_new() local 101 struct perf_cpu_map *cpus = NULL; perf_cpu_map__read() local 159 struct perf_cpu_map *cpus = NULL; cpu_map__read_all_cpu_map() local 173 struct perf_cpu_map *cpus = NULL; perf_cpu_map__new() local 248 perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) perf_cpu_map__cpu() argument 256 perf_cpu_map__nr(const struct perf_cpu_map *cpus) perf_cpu_map__nr() argument 266 perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu) perf_cpu_map__idx() argument [all...] |
H A D | evlist.c | 42 * We already have cpus for evsel (via PMU sysfs) so in __perf_evlist__propagate_maps() 46 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps() 47 evsel->cpus = perf_cpu_map__get(evlist->cpus); in __perf_evlist__propagate_maps() 48 } else if (!evsel->system_wide && perf_cpu_map__empty(evlist->cpus)) { in __perf_evlist__propagate_maps() 49 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps() 50 evsel->cpus = perf_cpu_map__get(evlist->cpus); in __perf_evlist__propagate_maps() 51 } else if (evsel->cpus != evsel->own_cpus) { in __perf_evlist__propagate_maps() 52 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps() 149 perf_evlist__set_maps(struct perf_evlist *evlist, struct perf_cpu_map *cpus, struct perf_thread_map *threads) perf_evlist__set_maps() argument 573 const struct perf_cpu_map *cpus = evlist->cpus; perf_evlist__mmap_ops() local [all...] |
/kernel/linux/linux-6.6/tools/lib/perf/ |
H A D | cpumap.c | 20 RC_STRUCT(perf_cpu_map) *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() 23 if (ADD_RC_CHK(result, cpus)) { in perf_cpu_map__alloc() 24 cpus->nr = nr_cpus; in perf_cpu_map__alloc() 25 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__alloc() 32 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__dummy_new() local 34 if (cpus) in perf_cpu_map__dummy_new() 35 RC_CHK_ACCESS(cpus)->map[0].cpu = -1; in perf_cpu_map__dummy_new() 37 return cpus; in perf_cpu_map__dummy_new() 71 struct perf_cpu_map *cpus; in cpu_map__default_new() local 102 __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) __perf_cpu_map__cpu() argument 110 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr_cpus); cpu_map__trim_new() local 134 struct perf_cpu_map *cpus = NULL; perf_cpu_map__read() local 192 struct perf_cpu_map *cpus = NULL; cpu_map__read_all_cpu_map() local 206 struct perf_cpu_map *cpus = NULL; perf_cpu_map__new() local 281 __perf_cpu_map__nr(const struct perf_cpu_map *cpus) __perf_cpu_map__nr() argument 286 perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) perf_cpu_map__cpu() argument 298 perf_cpu_map__nr(const struct perf_cpu_map *cpus) perf_cpu_map__nr() argument 308 perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) perf_cpu_map__idx() argument 333 perf_cpu_map__has(const struct perf_cpu_map *cpus, struct perf_cpu cpu) perf_cpu_map__has() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | openat-syscall-all-cpus.c | 26 struct perf_cpu_map *cpus; in test__openat_syscall_event_on_all_cpus() local 39 cpus = perf_cpu_map__new(NULL); in test__openat_syscall_event_on_all_cpus() 40 if (cpus == NULL) { in test__openat_syscall_event_on_all_cpus() 54 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus() 61 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__openat_syscall_event_on_all_cpus() 66 * without CPU_ALLOC. 1024 cpus in 2010 still seems in test__openat_syscall_event_on_all_cpus() 69 if (cpus->map[cpu] >= CPU_SETSIZE) { in test__openat_syscall_event_on_all_cpus() 70 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); in test__openat_syscall_event_on_all_cpus() 74 CPU_SET(cpus->map[cpu], &cpu_set); in test__openat_syscall_event_on_all_cpus() 77 cpus in test__openat_syscall_event_on_all_cpus() [all...] |
H A D | cpumap.c | 54 struct cpu_map_entries *cpus; in process_event_cpus() local 62 cpus = (struct cpu_map_entries *)data->data; in process_event_cpus() 64 TEST_ASSERT_VAL("wrong nr", cpus->nr == 2); in process_event_cpus() 65 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[0] == 1); in process_event_cpus() 66 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[1] == 256); in process_event_cpus() 80 struct perf_cpu_map *cpus; in test__cpu_map_synthesize() local 83 cpus = perf_cpu_map__new("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19"); in test__cpu_map_synthesize() 86 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_mask, NULL)); in test__cpu_map_synthesize() 88 perf_cpu_map__put(cpus); in test__cpu_map_synthesize() 91 cpus in test__cpu_map_synthesize() [all...] |
H A D | event-times.c | 115 struct perf_cpu_map *cpus; in attach__cpu_disabled() local 120 cpus = perf_cpu_map__new("0"); in attach__cpu_disabled() 121 if (cpus == NULL) { in attach__cpu_disabled() 128 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_disabled() 137 perf_cpu_map__put(cpus); in attach__cpu_disabled() 144 struct perf_cpu_map *cpus; in attach__cpu_enabled() local 149 cpus = perf_cpu_map__new("0"); in attach__cpu_enabled() 150 if (cpus == NULL) { in attach__cpu_enabled() 155 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_enabled() 159 perf_cpu_map__put(cpus); in attach__cpu_enabled() [all...] |
/kernel/linux/linux-6.6/tools/lib/perf/tests/ |
H A D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap() local 24 cpus = perf_cpu_map__dummy_new(); in test_cpumap() 25 if (!cpus) in test_cpumap() 28 perf_cpu_map__get(cpus); in test_cpumap() 29 perf_cpu_map__put(cpus); in test_cpumap() 30 perf_cpu_map__put(cpus); in test_cpumap() 32 cpus = perf_cpu_map__default_new(); in test_cpumap() 33 if (!cpus) in test_cpumap() 36 perf_cpu_map__for_each_cpu(cpu, idx, cpus) in test_cpumap() 39 perf_cpu_map__put(cpus); in test_cpumap() [all...] |
/kernel/linux/linux-5.10/tools/perf/arch/arm64/util/ |
H A D | header.c | 17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument 26 cpus = perf_cpu_map__get(cpus); in _get_cpuid() 28 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) { in _get_cpuid() 33 sysfs, cpus->map[cpu]); in _get_cpuid() 57 perf_cpu_map__put(cpus); in _get_cpuid() 67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid() local 70 if (!cpus) in get_cpuid() 73 ret = _get_cpuid(buf, sz, cpus); in get_cpuid() 75 perf_cpu_map__put(cpus); in get_cpuid() [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | sys_riscv.c | 86 const struct cpumask *cpus) in hwprobe_arch_id() 92 for_each_cpu(cpu, cpus) { in hwprobe_arch_id() 126 const struct cpumask *cpus) in hwprobe_isa_ext0() 145 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0() 168 static u64 hwprobe_misaligned(const struct cpumask *cpus) in hwprobe_misaligned() argument 173 for_each_cpu(cpu, cpus) { in hwprobe_misaligned() 192 const struct cpumask *cpus) in hwprobe_one_pair() 198 hwprobe_arch_id(pair, cpus); in hwprobe_one_pair() 211 hwprobe_isa_ext0(pair, cpus); in hwprobe_one_pair() 215 pair->value = hwprobe_misaligned(cpus); in hwprobe_one_pair() 85 hwprobe_arch_id(struct riscv_hwprobe *pair, const struct cpumask *cpus) hwprobe_arch_id() argument 125 hwprobe_isa_ext0(struct riscv_hwprobe *pair, const struct cpumask *cpus) hwprobe_isa_ext0() argument 191 hwprobe_one_pair(struct riscv_hwprobe *pair, const struct cpumask *cpus) hwprobe_one_pair() argument 237 cpumask_t cpus; do_riscv_hwprobe() local [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/arm64/util/ |
H A D | header.c | 19 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument 28 cpus = perf_cpu_map__get(cpus); in _get_cpuid() 30 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) { in _get_cpuid() 35 sysfs, RC_CHK_ACCESS(cpus)->map[cpu].cpu); in _get_cpuid() 54 perf_cpu_map__put(cpus); in _get_cpuid() 60 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid() local 63 if (!cpus) in get_cpuid() 66 ret = _get_cpuid(buf, sz, cpus); in get_cpuid() 68 perf_cpu_map__put(cpus); in get_cpuid() [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/boards/ |
H A D | sof_cs42l42.c | 301 struct snd_soc_dai_link_component *cpus, in create_spk_amp_dai_links() 336 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links() 339 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_spk_amp_dai_links() 341 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links() 354 struct snd_soc_dai_link_component *cpus, in create_hp_codec_dai_links() 374 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links() 377 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_hp_codec_dai_links() 380 if (!links[*id].cpus in create_hp_codec_dai_links() 299 create_spk_amp_dai_links(struct device *dev, struct snd_soc_dai_link *links, struct snd_soc_dai_link_component *cpus, int *id, int ssp_amp) create_spk_amp_dai_links() argument 352 create_hp_codec_dai_links(struct device *dev, struct snd_soc_dai_link *links, struct snd_soc_dai_link_component *cpus, int *id, int ssp_codec) create_hp_codec_dai_links() argument 391 create_dmic_dai_links(struct device *dev, struct snd_soc_dai_link *links, struct snd_soc_dai_link_component *cpus, int *id, int dmic_be_num) create_dmic_dai_links() argument 432 create_hdmi_dai_links(struct device *dev, struct snd_soc_dai_link *links, struct snd_soc_dai_link_component *cpus, int *id, int hdmi_num) create_hdmi_dai_links() argument 491 create_bt_offload_dai_links(struct device *dev, struct snd_soc_dai_link *links, struct snd_soc_dai_link_component *cpus, int *id, int ssp_bt) create_bt_offload_dai_links() argument 538 struct snd_soc_dai_link_component *cpus; sof_card_dai_links_create() local [all...] |
H A D | sof_ssp_amp.c | 198 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local 204 cpus = devm_kcalloc(dev, sof_ssp_amp_card.num_links, in sof_card_dai_links_create() 206 if (!links || !cpus) in sof_card_dai_links_create() 220 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 221 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 223 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 257 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 259 links[id].cpus in sof_card_dai_links_create() [all...] |
/kernel/linux/linux-6.6/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 34 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 35 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 49 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ 50 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 51 (idx) < perf_cpu_map__nr(cpus); \ 52 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 54 #define perf_cpu_map__for_each_idx(idx, cpus) \ 55 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | cpumap.c | 21 static struct perf_cpu_map *cpu_map__from_entries(struct cpu_map_entries *cpus) in cpu_map__from_entries() argument 25 map = perf_cpu_map__empty_new(cpus->nr); in cpu_map__from_entries() 29 for (i = 0; i < cpus->nr; i++) { in cpu_map__from_entries() 35 if (cpus->cpu[i] == (u16) -1) in cpu_map__from_entries() 38 map->map[i] = (int) cpus->cpu[i]; in cpu_map__from_entries() 83 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr); in perf_cpu_map__empty_new() local 85 if (cpus != NULL) { in perf_cpu_map__empty_new() 88 cpus->nr = nr; in perf_cpu_map__empty_new() 90 cpus in perf_cpu_map__empty_new() 131 cpu_map__build_map(struct perf_cpu_map *cpus, struct perf_cpu_map **res, int (*f)(struct perf_cpu_map *map, int cpu, void *data), void *data) cpu_map__build_map() argument 251 cpu_map__build_socket_map(struct perf_cpu_map *cpus, struct perf_cpu_map **sockp) cpu_map__build_socket_map() argument 256 cpu_map__build_die_map(struct perf_cpu_map *cpus, struct perf_cpu_map **diep) cpu_map__build_die_map() argument 261 cpu_map__build_core_map(struct perf_cpu_map *cpus, struct perf_cpu_map **corep) cpu_map__build_core_map() argument 266 cpu_map__build_node_map(struct perf_cpu_map *cpus, struct perf_cpu_map **numap) cpu_map__build_node_map() argument 478 cpu_map__has(struct perf_cpu_map *cpus, int cpu) cpu_map__has() argument 483 cpu_map__cpu(struct perf_cpu_map *cpus, int idx) cpu_map__cpu() argument [all...] |
H A D | perf_api_probe.c | 63 struct perf_cpu_map *cpus; in perf_probe_api() local 66 cpus = perf_cpu_map__new(NULL); in perf_probe_api() 67 if (!cpus) in perf_probe_api() 69 cpu = cpus->map[0]; in perf_probe_api() 70 perf_cpu_map__put(cpus); in perf_probe_api() 128 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide() local 131 cpus = perf_cpu_map__new(NULL); in perf_can_record_cpu_wide() 132 if (!cpus) in perf_can_record_cpu_wide() 134 cpu = cpus->map[0]; in perf_can_record_cpu_wide() 135 perf_cpu_map__put(cpus); in perf_can_record_cpu_wide() [all...] |
/kernel/linux/linux-5.10/drivers/clk/sunxi/ |
H A D | clk-sun9i-cpus.c | 22 * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk 55 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_recalc_rate() local 60 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate() 155 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_set_rate() local 162 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_set_rate() 170 writel(reg, cpus->reg); in sun9i_a80_cpus_clk_set_rate() 188 struct sun9i_a80_cpus_clk *cpus; in sun9i_a80_cpus_setup() local 193 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL); in sun9i_a80_cpus_setup() 194 if (!cpus) in sun9i_a80_cpus_setup() [all...] |
/kernel/linux/linux-6.6/drivers/clk/sunxi/ |
H A D | clk-sun9i-cpus.c | 22 * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk 55 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_recalc_rate() local 60 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate() 155 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_set_rate() local 162 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_set_rate() 170 writel(reg, cpus->reg); in sun9i_a80_cpus_clk_set_rate() 188 struct sun9i_a80_cpus_clk *cpus; in sun9i_a80_cpus_setup() local 193 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL); in sun9i_a80_cpus_setup() 194 if (!cpus) in sun9i_a80_cpus_setup() [all...] |
/kernel/linux/linux-5.10/tools/lib/perf/tests/ |
H A D | test-evlist.c | 30 struct perf_cpu_map *cpus; in test_stat_cpu() local 43 cpus = perf_cpu_map__new(NULL); in test_stat_cpu() 44 __T("failed to create cpus", cpus); in test_stat_cpu() 59 perf_evlist__set_maps(evlist, cpus, NULL); in test_stat_cpu() 65 cpus = perf_evsel__cpus(evsel); in test_stat_cpu() 67 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { in test_stat_cpu() 78 perf_cpu_map__put(cpus); in test_stat_cpu() 200 struct perf_cpu_map *cpus; in test_mmap_thread() local 246 cpus in test_mmap_thread() 310 struct perf_cpu_map *cpus; test_mmap_cpus() local [all...] |
H A D | test-cpumap.c | 15 struct perf_cpu_map *cpus; in main() local 21 cpus = perf_cpu_map__dummy_new(); in main() 22 if (!cpus) in main() 25 perf_cpu_map__get(cpus); in main() 26 perf_cpu_map__put(cpus); in main() 27 perf_cpu_map__put(cpus); in main()
|
/kernel/linux/linux-5.10/tools/perf/arch/nds32/util/ |
H A D | header.c | 15 struct cpu_map *cpus; in get_cpuid_str() local 18 if (!sysfs || !pmu || !pmu->cpus) in get_cpuid_str() 25 cpus = cpu_map__get(pmu->cpus); in get_cpuid_str() 26 sprintf(buf, "0x%x", cpus->nr - 1); in get_cpuid_str() 27 cpu_map__put(cpus); in get_cpuid_str()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | perf_api_probe.c | 63 struct perf_cpu_map *cpus; in perf_probe_api() local 67 cpus = perf_cpu_map__new(NULL); in perf_probe_api() 68 if (!cpus) in perf_probe_api() 70 cpu = perf_cpu_map__cpu(cpus, 0); in perf_probe_api() 71 perf_cpu_map__put(cpus); in perf_probe_api() 139 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide() local 143 cpus = perf_cpu_map__new(NULL); in perf_can_record_cpu_wide() 144 if (!cpus) in perf_can_record_cpu_wide() 147 cpu = perf_cpu_map__cpu(cpus, 0); in perf_can_record_cpu_wide() 148 perf_cpu_map__put(cpus); in perf_can_record_cpu_wide() [all...] |
/kernel/linux/linux-5.10/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 18 LIBPERF_API int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 19 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 23 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ 24 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 25 (idx) < perf_cpu_map__nr(cpus); \ 26 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | openat-syscall-all-cpus.c | 27 struct perf_cpu_map *cpus; in test__openat_syscall_event_on_all_cpus() local 40 cpus = perf_cpu_map__new(NULL); in test__openat_syscall_event_on_all_cpus() 41 if (cpus == NULL) { in test__openat_syscall_event_on_all_cpus() 56 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus() 64 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 69 * without CPU_ALLOC. 1024 cpus in 2010 still seems in test__openat_syscall_event_on_all_cpus() 91 evsel->core.cpus = perf_cpu_map__get(cpus); in test__openat_syscall_event_on_all_cpus() 95 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 121 perf_cpu_map__put(cpus); in test__openat_syscall_event_on_all_cpus() [all...] |
H A D | event-times.c | 115 struct perf_cpu_map *cpus; in attach__cpu_disabled() local 120 cpus = perf_cpu_map__new("0"); in attach__cpu_disabled() 121 if (cpus == NULL) { in attach__cpu_disabled() 128 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_disabled() 137 perf_cpu_map__put(cpus); in attach__cpu_disabled() 144 struct perf_cpu_map *cpus; in attach__cpu_enabled() local 149 cpus = perf_cpu_map__new("0"); in attach__cpu_enabled() 150 if (cpus == NULL) { in attach__cpu_enabled() 155 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_enabled() 159 perf_cpu_map__put(cpus); in attach__cpu_enabled() [all...] |
/kernel/linux/linux-6.6/scripts/gdb/linux/ |
H A D | interrupts.py | 8 from linux import cpus namespace 39 for cpu in cpus.each_online_cpu(): 40 any_count += cpus.per_cpu(desc['kstat_irqs'], cpu) 46 for cpu in cpus.each_online_cpu(): 48 count = cpus.per_cpu(desc['kstat_irqs'], cpu) 103 for cpu in cpus.each_online_cpu(): 104 stat = cpus.per_cpu(irq_stat, cpu) 112 for cpu in cpus.each_online_cpu(): 113 text += "%10u " % (cpus.per_cpu(pvar, cpu)) 179 for cpu in cpus [all...] |