Searched refs:cpus (Results 1 - 25 of 353) sorted by relevance

1234567891011>>

/linux-master/tools/lib/perf/tests/
H A Dtest-cpumap.c16 struct perf_cpu_map *cpus; local
24 cpus = perf_cpu_map__new_any_cpu();
25 if (!cpus)
28 perf_cpu_map__get(cpus);
29 perf_cpu_map__put(cpus);
30 perf_cpu_map__put(cpus);
32 cpus = perf_cpu_map__new_online_cpus();
33 if (!cpus)
36 perf_cpu_map__for_each_cpu(cpu, idx, cpus)
39 perf_cpu_map__put(cpus);
[all...]
/linux-master/tools/testing/selftests/riscv/hwprobe/
H A Dwhich-cpus.c22 "which-cpus: [-h] [<key=value> [<key=value> ...]]\n\n"
25 " <key=value>, outputs the cpulist for cpus which all match the given set\n"
29 static void print_cpulist(cpu_set_t *cpus) argument
33 if (!CPU_COUNT(cpus)) {
34 printf("cpus: None\n");
38 printf("cpus:");
39 for (int i = 0, c = 0; i < CPU_COUNT(cpus); i++, c++) {
40 if (start != end && !CPU_ISSET(c, cpus))
43 while (!CPU_ISSET(c, cpus))
59 static void do_which_cpus(int argc, char **argv, cpu_set_t *cpus) argument
87 cpu_set_t cpus_aff, cpus; local
[all...]
H A DMakefile7 TEST_GEN_PROGS := hwprobe cbo which-cpus
17 $(OUTPUT)/which-cpus: which-cpus.c sys_hwprobe.S
H A Dhwprobe.c8 unsigned long cpus; local
15 cpus = -1;
24 out = riscv_hwprobe(pairs, 8, 1, &cpus, 0);
46 out = riscv_hwprobe(pairs, 8, 0, &cpus, 0);
53 out = riscv_hwprobe(pairs, 1, 1, &cpus, 0);
H A Dhwprobe.h23 size_t cpusetsize, unsigned long *cpus, unsigned int flags);
/linux-master/tools/lib/perf/include/perf/
H A Dcpumap.h51 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
59 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
89 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \
90 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
91 (idx) < perf_cpu_map__nr(cpus); \
92 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
94 #define perf_cpu_map__for_each_cpu_skip_any(_cpu, idx, cpus) \
95 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
96 (idx) < perf_cpu_map__nr(cpus); \
97 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, id
[all...]
/linux-master/tools/lib/perf/
H A Dcpumap.c21 RC_STRUCT(perf_cpu_map) *cpus;
27 cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus);
28 if (ADD_RC_CHK(result, cpus)) {
29 cpus->nr = nr_cpus;
30 refcount_set(&cpus->refcnt, 1);
37 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); local
39 if (cpus)
40 RC_CHK_ACCESS(cpus)->map[0].cpu = -1;
42 return cpus;
76 struct perf_cpu_map *cpus; local
102 struct perf_cpu_map *cpus = NULL; local
115 struct perf_cpu_map *cpus = cpu_map__new_sysfs_online(); local
131 __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) argument
139 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr_cpus); local
163 struct perf_cpu_map *cpus = NULL; local
219 struct perf_cpu_map *cpus = NULL; local
296 __perf_cpu_map__nr(const struct perf_cpu_map *cpus) argument
301 perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) argument
313 perf_cpu_map__nr(const struct perf_cpu_map *cpus) argument
336 perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) argument
361 perf_cpu_map__has(const struct perf_cpu_map *cpus, struct perf_cpu cpu) argument
[all...]
/linux-master/tools/perf/python/
H A Dtwatch.py12 cpus = perf.cpu_map()
28 evsel.open(cpus = cpus, threads = threads);
29 evlist = perf.evlist(cpus, threads)
34 for cpu in cpus:
/linux-master/tools/testing/selftests/rcutorture/bin/
H A Djitter.sh58 if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 |
63 cpus=
66 cpus="$cpus $nohotplugcpus"
68 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN {
70 ncpus = split(cpus, ca);
/linux-master/arch/riscv/kernel/vdso/
H A Dhwprobe.c12 size_t cpusetsize, unsigned long *cpus,
16 size_t cpusetsize, unsigned long *cpus,
21 bool all_cpus = !cpusetsize && !cpus;
27 * stashed away only for the "all cpus" case. If all CPUs are
32 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags);
51 size_t cpusetsize, unsigned long *cpus,
58 unsigned char *c = (unsigned char *)cpus;
63 if (!cpusetsize || !cpus)
74 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags);
103 size_t cpusetsize, unsigned long *cpus,
15 riscv_vdso_get_values(struct riscv_hwprobe *pairs, size_t pair_count, size_t cpusetsize, unsigned long *cpus, unsigned int flags) argument
50 riscv_vdso_get_cpus(struct riscv_hwprobe *pairs, size_t pair_count, size_t cpusetsize, unsigned long *cpus, unsigned int flags) argument
106 __vdso_riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count, size_t cpusetsize, unsigned long *cpus, unsigned int flags) argument
[all...]
/linux-master/arch/riscv/kernel/
H A Dsys_hwprobe.c20 const struct cpumask *cpus)
26 for_each_cpu(cpu, cpus) {
60 const struct cpumask *cpus)
79 for_each_cpu(cpu, cpus) {
143 static bool hwprobe_ext0_has(const struct cpumask *cpus, unsigned long ext) argument
147 hwprobe_isa_ext0(&pair, cpus);
152 static u64 hwprobe_misaligned(const struct cpumask *cpus) argument
157 for_each_cpu(cpu, cpus) {
175 static u64 hwprobe_misaligned(const struct cpumask *cpus) argument
188 const struct cpumask *cpus)
19 hwprobe_arch_id(struct riscv_hwprobe *pair, const struct cpumask *cpus) argument
59 hwprobe_isa_ext0(struct riscv_hwprobe *pair, const struct cpumask *cpus) argument
187 hwprobe_one_pair(struct riscv_hwprobe *pair, const struct cpumask *cpus) argument
239 cpumask_t cpus; local
294 cpumask_t cpus, one_cpu; local
[all...]
/linux-master/tools/testing/selftests/cpufreq/
H A Dcpu.sh17 cpus=$(ls $CPUROOT | grep "cpu[0-9].*")
18 for cpu in $cpus; do
25 cpus=$(ls $CPUROOT | grep "cpu[1-9].*")
26 for cpu in $cpus; do
/linux-master/tools/perf/arch/arm64/util/
H A Dheader.c17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) argument
26 perf_cpu_map__for_each_cpu(cpu, idx, cpus) {
55 struct perf_cpu_map *cpus = perf_cpu_map__new_online_cpus(); local
58 if (!cpus)
61 ret = _get_cpuid(buf, sz, cpus);
63 perf_cpu_map__put(cpus);
73 if (!pmu || !pmu->cpus)
80 /* read midr from list of cpus mapped to this pmu */
81 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus);
/linux-master/sound/soc/intel/boards/
H A Dsof_board_helpers.c109 struct snd_soc_dai_link_component *cpus; local
119 /* cpus */
120 cpus = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component),
122 if (!cpus)
127 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "ssp%d-port",
130 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin",
133 if (!cpus->dai_name)
136 link->cpus = cpus;
156 struct snd_soc_dai_link_component *cpus; local
206 struct snd_soc_dai_link_component *cpus, *codecs; local
265 struct snd_soc_dai_link_component *cpus; local
305 struct snd_soc_dai_link_component *cpus; local
346 struct snd_soc_dai_link_component *cpus; local
[all...]
/linux-master/tools/perf/util/
H A Dperf_api_probe.c63 struct perf_cpu_map *cpus; local
67 cpus = perf_cpu_map__new_online_cpus();
68 if (!cpus)
70 cpu = perf_cpu_map__cpu(cpus, 0);
71 perf_cpu_map__put(cpus);
139 struct perf_cpu_map *cpus; local
143 cpus = perf_cpu_map__new_online_cpus();
144 if (!cpus)
147 cpu = perf_cpu_map__cpu(cpus, 0);
148 perf_cpu_map__put(cpus);
[all...]
/linux-master/tools/perf/tests/
H A Dopenat-syscall-all-cpus.c27 struct perf_cpu_map *cpus; local
40 cpus = perf_cpu_map__new_online_cpus();
41 if (cpus == NULL) {
56 if (evsel__open(evsel, cpus, threads) < 0) {
64 perf_cpu_map__for_each_cpu(cpu, idx, cpus) {
69 * without CPU_ALLOC. 1024 cpus in 2010 still seems
91 evsel->core.cpus = perf_cpu_map__get(cpus);
95 perf_cpu_map__for_each_cpu(cpu, idx, cpus) {
121 perf_cpu_map__put(cpus);
[all...]
H A Devent-times.c115 struct perf_cpu_map *cpus; local
120 cpus = perf_cpu_map__new("0");
121 if (cpus == NULL) {
128 err = evsel__open_per_cpu(evsel, cpus, -1);
137 perf_cpu_map__put(cpus);
144 struct perf_cpu_map *cpus; local
149 cpus = perf_cpu_map__new("0");
150 if (cpus == NULL) {
155 err = evsel__open_per_cpu(evsel, cpus, -1);
159 perf_cpu_map__put(cpus);
[all...]
/linux-master/tools/perf/arch/x86/util/
H A Devlist.c37 struct perf_cpu_map *cpus; local
44 cpus = perf_cpu_map__get(pmu->cpus);
45 evsel->core.cpus = cpus;
46 evsel->core.own_cpus = perf_cpu_map__get(cpus);
/linux-master/include/linux/
H A Dstop_machine.h13 * function to be executed on a single or multiple cpus preempting all
14 * other processes and monopolizing those cpus until it finishes.
18 * cpus are online.
102 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
114 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
120 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
125 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
144 const struct cpumask *cpus);
147 stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) argument
159 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) argument
165 stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) argument
[all...]
/linux-master/drivers/clk/sunxi/
H A Dclk-sun9i-cpus.c52 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); local
57 reg = readl(cpus->reg);
152 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); local
159 reg = readl(cpus->reg);
167 writel(reg, cpus->reg);
181 * sun9i_a80_cpus_setup() - Setup function for a80 cpus composite clk
189 struct sun9i_a80_cpus_clk *cpus; local
194 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL);
195 if (!cpus)
[all...]
/linux-master/drivers/cpufreq/
H A Dcpufreq-dt.c30 cpumask_var_t cpus; member in struct:private_data
50 if (cpumask_test_cpu(cpu, priv->cpus))
120 cpumask_copy(policy->cpus, priv->cpus);
202 if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL))
205 cpumask_set_cpu(cpu, priv->cpus);
223 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus);
233 if (dev_pm_opp_get_sharing_cpus(cpu_dev, priv->cpus))
238 * Initialize OPP tables for all priv->cpus. They will be shared by
242 * before updating priv->cpus
[all...]
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_cpuset_prs.sh25 SUBPARTS_CPUS=$CGROUP2/.__DEBUG__.cpuset.cpus.subpartitions
26 CPULIST=$(cat $CGROUP2/cpuset.cpus.effective)
29 [[ $NR_CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!"
71 echo 0-6 > test/cpuset.cpus
72 echo root > test/cpuset.cpus.partition
73 cat test/cpuset.cpus.partition | grep -q invalid
75 echo member > test/cpuset.cpus.partition
76 echo "" > test/cpuset.cpus
114 echo $EXPECTED_VAL > cpuset.cpus.partition
116 ACTUAL_VAL=$(cat cpuset.cpus
[all...]
/linux-master/arch/x86/include/asm/trace/
H A Dhyperv.h12 TP_PROTO(const struct cpumask *cpus,
14 TP_ARGS(cpus, info),
21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
60 TP_PROTO(const struct cpumask *cpus,
62 TP_ARGS(cpus, vector),
67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
/linux-master/sound/soc/meson/
H A Dgx-card.c60 link->dai_fmt = meson_card_parse_daifmt(node, link->cpus->of_node);
90 dai_link->cpus = cpu;
93 ret = meson_card_parse_dai(card, np, dai_link->cpus);
97 if (gx_card_cpu_identify(dai_link->cpus, "FIFO"))
105 if (gx_card_cpu_identify(dai_link->cpus, "CODEC CTRL")) {
112 if (gx_card_cpu_identify(dai_link->cpus, "I2S Encoder"))
/linux-master/arch/powerpc/boot/dts/fsl/
H A Dbsc9131si-pre.dtsi51 cpus {

Completed in 421 milliseconds

1234567891011>>