/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/prog_tests/ |
D | perf_buffer.c | 22 int err, prog_fd, nr_cpus, i, duration = 0; in test_perf_buffer() local 33 nr_cpus = libbpf_num_possible_cpus(); in test_perf_buffer() 34 if (CHECK(nr_cpus < 0, "nr_cpus", "err %d\n", nr_cpus)) in test_perf_buffer() 66 for (i = 0; i < nr_cpus; i++) { in test_perf_buffer() 84 if (CHECK(CPU_COUNT(&cpu_seen) != nr_cpus, "seen_cpu_cnt", in test_perf_buffer() 85 "expect %d, seen %d\n", nr_cpus, CPU_COUNT(&cpu_seen))) in test_perf_buffer()
|
D | xdp_noinline.c | 7 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_xdp_noinline() local 17 } stats[nr_cpus]; in test_xdp_noinline() 70 for (i = 0; i < nr_cpus; i++) { in test_xdp_noinline()
|
D | l4lb_all.c | 6 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_l4lb() local 16 } stats[nr_cpus]; in test_l4lb() 69 for (i = 0; i < nr_cpus; i++) { in test_l4lb()
|
/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/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 27 static int nr_cpus; variable 107 unsigned long long value0[nr_cpus], value1[nr_cpus]; in map_subset() 138 while (next < nr_cpus) { in sched_next_online() 161 unsigned long long key, value[nr_cpus]; in test_lru_sanity0() 171 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0() 250 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity1() 326 unsigned long long key, value[nr_cpus]; in test_lru_sanity2() 434 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity3() 499 unsigned long long key, value[nr_cpus]; in test_lru_sanity4() 510 3 * tgt_free * nr_cpus); in test_lru_sanity4() [all …]
|
D | test_maps.c | 149 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_hashmap_percpu() local 162 for (i = 0; i < nr_cpus; i++) in test_hashmap_percpu() 224 for (i = 0; i < nr_cpus; i++) in test_hashmap_percpu() 402 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_arraymap_percpu() local 413 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu() 432 bpf_percpu(values, nr_cpus - 1) == 0); in test_arraymap_percpu() 461 unsigned int nr_cpus = bpf_num_possible_cpus(); in test_arraymap_percpu_many_keys() local 477 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys() 484 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys() 489 for (i = 0; i < nr_cpus; i++) in test_arraymap_percpu_many_keys()
|
/external/mesa3d/src/util/ |
D | u_cpu_detect.c | 438 util_cpu_caps.cores_per_L3 = util_cpu_caps.nr_cpus; in get_cpu_topology() 452 if (cache_level != 3 || cores_per_L3 == util_cpu_caps.nr_cpus) in get_cpu_topology() 477 for (unsigned i = 0; i < util_cpu_caps.nr_cpus && i < UTIL_MAX_CPUS; in get_cpu_topology() 499 util_cpu_caps.num_L3_caches = util_cpu_caps.nr_cpus / cores_per_L3; in get_cpu_topology() 504 for (unsigned i = 0; i < util_cpu_caps.nr_cpus && i < UTIL_MAX_CPUS; in get_cpu_topology() 524 for (int j = util_cpu_caps.nr_cpus - 1; j >= 0; j -= 32) in get_cpu_topology() 550 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect_once() 553 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect_once() 554 if (util_cpu_caps.nr_cpus == ~0) in util_cpu_detect_once() 555 util_cpu_caps.nr_cpus = 1; in util_cpu_detect_once() [all …]
|
D | u_cpu_detect.h | 59 int nr_cpus; member
|
/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/igt-gpu-tools/overlay/ |
D | gpu-perf.c | 222 n = gp->nr_cpus * (gp->nr_events+1); in perf_tracepoint_open() 230 fd += gp->nr_events * gp->nr_cpus; in perf_tracepoint_open() 231 sample += gp->nr_events * gp->nr_cpus; in perf_tracepoint_open() 232 for (n = 0; n < gp->nr_cpus; n++) { in perf_tracepoint_open() 255 gp->map = malloc(sizeof(void *)*gp->nr_cpus); in perf_mmap() 260 for (j = 0; j < gp->nr_cpus; j++) { in perf_mmap() 267 for (j = 0; j < gp->nr_cpus; j++) in perf_mmap() 426 gp->nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in gpu_perf_init() 453 int m = n * gp->nr_cpus + cpu; in process_sample() 475 for (n = 0; n < gp->nr_cpus; n++) { in gpu_perf_update()
|
D | gpu-perf.h | 36 int nr_cpus; member
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | userfaultfd.c | 62 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size; variable 586 pthread_t locking_threads[nr_cpus]; in stress() 587 pthread_t uffd_threads[nr_cpus]; in stress() 588 pthread_t background_threads[nr_cpus]; in stress() 592 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress() 611 for (cpu = 0; cpu < nr_cpus; cpu++) in stress() 629 for (cpu = 0; cpu < nr_cpus; cpu++) in stress() 633 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress() 1041 unsigned long userfaults[nr_cpus]; in userfaultfd_stress() 1073 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 | 63 if test "$3" -gt "$nr_cpus" 65 echo $nr_cpus
|
/external/igt-gpu-tools/lib/ |
D | igt_perf.c | 35 int nr_cpus = get_nprocs_conf(); in _perf_open() local 50 } while ((ret < 0 && errno == EINVAL) && (cpu < nr_cpus)); in _perf_open()
|
/external/linux-kselftest/android/patches/ |
D | 0013-run_vmtests.patch | 24 -# hugetlb test requires a minimum of 2 * nr_cpus huge pages. Take 27 -nr_cpus=$(nproc) 29 -half_ufd_size_MB=$((((nr_cpus * hpgsize_MB + 127) / 128) * 128)) 179 +## hugetlb test requires a minimum of 2 * nr_cpus huge pages. Take 182 +#nr_cpus=$(nproc) 184 +#half_ufd_size_MB=$((((nr_cpus * hpgsize_MB + 127) / 128) * 128))
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/configs/rcu/ |
D | TREE01.boot | 1 maxcpus=8 nr_cpus=43
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/ |
D | cpuset_inherit_testset.sh | 33 nr_cpus=$NR_CPUS
|
/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
|