Home
last modified time | relevance | path

Searched refs:nr_cpus (Results 1 – 25 of 26) sorted by relevance

12

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
Dcpuset_base_ops_testset.sh33 nr_cpus=$NR_CPUS
112 $nr_cpus WRITE_ERROR
113 $cpus_all 0-$((nr_cpus-1))
114 ${cpus_all}$nr_cpus WRITE_ERROR
117 0-$((nr_cpus-1)) 0-$((nr_cpus-1))
119 0-$nr_cpus WRITE_ERROR
120 0--$((nr_cpus-1)) WRITE_ERROR
126 if [ $nr_cpus -ge 3 ]; then
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c28 static int nr_cpus; variable
46 unsigned long long value0[nr_cpus], value1[nr_cpus]; in map_subset()
77 while (next < nr_cpus) { in sched_next_online()
100 unsigned long long key, value[nr_cpus]; in test_lru_sanity0()
110 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0()
188 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity1()
264 unsigned long long key, value[nr_cpus]; in test_lru_sanity2()
371 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity3()
436 unsigned long long key, value[nr_cpus]; in test_lru_sanity4()
447 3 * tgt_free * nr_cpus); in test_lru_sanity4()
[all …]
Dtest_maps.c158 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_hashmap_percpu() local
171 for (i = 0; i < nr_cpus; i++) in test_hashmap_percpu()
233 for (i = 0; i < nr_cpus; i++) in test_hashmap_percpu()
366 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_arraymap_percpu() local
377 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu()
396 bpf_percpu(values, nr_cpus - 1) == 0); in test_arraymap_percpu()
425 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_arraymap_percpu_many_keys() local
441 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys()
448 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys()
453 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys()
Dtest_progs.c208 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_l4lb() local
218 } stats[nr_cpus]; in test_l4lb()
273 for (i = 0; i < nr_cpus; i++) { in test_l4lb()
297 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_xdp_noinline() local
307 } stats[nr_cpus]; in test_xdp_noinline()
362 for (i = 0; i < nr_cpus; i++) { in test_xdp_noinline()
/external/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/
Dftrace_tracing_cpumask.sh25 nr_cpus=`tst_ncpus`
29 if [ $nr_cpus -gt 32 ]; then
30 group_cnt=$((nr_cpus / 32))
32 rem=$((nr_cpus % 32))
38 range=$((nr_cpus - 1))
Dftrace_trace_stat.sh19 nr_cpus=`tst_ncpus`
36 cpu=$(tst_random 0 $((nr_cpus - 1)))
/external/u-boot/arch/arm/mach-uniphier/arm32/
Dpsci.c51 int nr_cpus, i; in uniphier_smp_kick_all_cpus() local
54 nr_cpus = uniphier_get_nr_cpus(); in uniphier_smp_kick_all_cpus()
55 if (nr_cpus == 1) in uniphier_smp_kick_all_cpus()
58 for (i = 0; i < nr_cpus; i++) /* lock ways for all CPUs */ in uniphier_smp_kick_all_cpus()
83 for (i = 1; i < nr_cpus; i++) in uniphier_smp_kick_all_cpus()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_cpu_detect.c313 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
316 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
317 if (util_cpu_caps.nr_cpus == -1) in util_cpu_detect()
318 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
329 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
332 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
431 debug_printf("util_cpu_caps.nr_cpus = %u\n", util_cpu_caps.nr_cpus); in util_cpu_detect()
Du_cpu_detect.h49 int nr_cpus; member
/external/mesa3d/src/gallium/auxiliary/util/
Du_cpu_detect.c373 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
376 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
377 if (util_cpu_caps.nr_cpus == ~0u) in util_cpu_detect()
378 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
389 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
392 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
517 debug_printf("util_cpu_caps.nr_cpus = %u\n", util_cpu_caps.nr_cpus); in util_cpu_detect()
Du_cpu_detect.h49 unsigned nr_cpus; member
/external/linux-kselftest/tools/testing/selftests/vm/
Duserfaultfd.c64 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size; variable
588 pthread_t locking_threads[nr_cpus]; in stress()
589 pthread_t uffd_threads[nr_cpus]; in stress()
590 pthread_t background_threads[nr_cpus]; in stress()
594 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress()
613 for (cpu = 0; cpu < nr_cpus; cpu++) in stress()
631 for (cpu = 0; cpu < nr_cpus; cpu++) in stress()
635 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress()
1043 unsigned long userfaults[nr_cpus]; in userfaultfd_stress()
1075 pipefd = malloc(sizeof(int) * nr_cpus * 2); in userfaultfd_stress()
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_cpu_hog.c116 long nr_cpus = 0; in checkopt() local
119 nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in checkopt()
120 if (nr_cpus <= 0) { in checkopt()
149 nprocs = 2 * nr_cpus; in checkopt()
Dcpuset_sched_domains_test.sh35 nr_cpus=$NR_CPUS
Dcpuset_load_balance_test.sh35 nr_cpus=$NR_CPUS
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/
Dfunctions.sh76 if test "$3" -gt "$nr_cpus"
78 echo $nr_cpus
/external/linux-kselftest/tools/testing/selftests/rcutorture/configs/rcu/
DTREE01.boot1 maxcpus=8 nr_cpus=43
/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dmp.c287 unsigned int i, cpu, nr_cpus = cpu_numcores(); in plat_mp_up() local
289 for_each_cpu(i, cpu, nr_cpus, mask) { in plat_mp_up()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/
Dcpuset_inherit_testset.sh33 nr_cpus=$NR_CPUS
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c669 screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0; in llvmpipe_create_screen()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_hotplug_test.sh35 nr_cpus=$NR_CPUS
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/
Dcpuset_memory_spread_testset.sh34 nr_cpus=$NR_CPUS
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
Dcpuset_hierarchy_test.sh33 nr_cpus=$NR_CPUS
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh35 nr_cpus=$NR_CPUS
/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_testplan.txt170 sysctl_sched_wakeup_granularity = (1 + ln(nr_cpus))*default_gran_logic.

12