Home
last modified time | relevance | path

Searched refs:nr_cpus (Results 1 – 25 of 32) 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/prog_tests/
Dperf_buffer.c22 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()
Dxdp_noinline.c7 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()
Dl4lb_all.c6 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/
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/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c27 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 …]
Dtest_maps.c149 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/
Du_cpu_detect.c438 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 …]
Du_cpu_detect.h59 int nr_cpus; member
/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/igt-gpu-tools/overlay/
Dgpu-perf.c222 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()
Dgpu-perf.h36 int nr_cpus; member
/external/linux-kselftest/tools/testing/selftests/vm/
Duserfaultfd.c62 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/
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.sh63 if test "$3" -gt "$nr_cpus"
65 echo $nr_cpus
/external/igt-gpu-tools/lib/
Digt_perf.c35 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/
D0013-run_vmtests.patch24 -# 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/
DTREE01.boot1 maxcpus=8 nr_cpus=43
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/
Dcpuset_inherit_testset.sh33 nr_cpus=$NR_CPUS
/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

12