/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/ |
D | cpuset_base_ops_testset.sh | 33 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/ |
D | test_lru_map.c | 28 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 …]
|
D | test_maps.c | 158 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()
|
D | test_progs.c | 208 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/ |
D | ftrace_tracing_cpumask.sh | 25 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))
|
D | ftrace_trace_stat.sh | 19 nr_cpus=`tst_ncpus` 36 cpu=$(tst_random 0 $((nr_cpus - 1)))
|
/external/u-boot/arch/arm/mach-uniphier/arm32/ |
D | psci.c | 51 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/ |
D | u_cpu_detect.c | 313 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()
|
D | u_cpu_detect.h | 49 int nr_cpus; member
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_cpu_detect.c | 373 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()
|
D | u_cpu_detect.h | 49 unsigned nr_cpus; member
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | userfaultfd.c | 64 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/ |
D | cpuset_cpu_hog.c | 116 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()
|
D | cpuset_sched_domains_test.sh | 35 nr_cpus=$NR_CPUS
|
D | cpuset_load_balance_test.sh | 35 nr_cpus=$NR_CPUS
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
D | functions.sh | 76 if test "$3" -gt "$nr_cpus" 78 echo $nr_cpus
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/configs/rcu/ |
D | TREE01.boot | 1 maxcpus=8 nr_cpus=43
|
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
D | mp.c | 287 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/ |
D | cpuset_inherit_testset.sh | 33 nr_cpus=$NR_CPUS
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_screen.c | 669 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/ |
D | cpuset_hotplug_test.sh | 35 nr_cpus=$NR_CPUS
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/ |
D | cpuset_memory_spread_testset.sh | 34 nr_cpus=$NR_CPUS
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
D | cpuset_hierarchy_test.sh | 33 nr_cpus=$NR_CPUS
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_testset.sh | 35 nr_cpus=$NR_CPUS
|
/external/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_testplan.txt | 170 sysctl_sched_wakeup_granularity = (1 + ln(nr_cpus))*default_gran_logic.
|