/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
cpus2use.sh | 25 ncpus=`grep '^processor' /proc/cpuinfo | wc -l` 27 awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'` 28 awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null ' 33 if (cpus2use < ncpus / 10) 34 cpus2use = ncpus / 10;
|
kvm-build.sh | 62 ncpus=`cpus2use.sh` 63 make O=$builddir -j$ncpus $TORTURE_KMAKE_ARG > $builddir/Make.out 2>&1
|
kvm.sh | 220 awk < $T/cfgcpu.sort > $T/cfgcpu.pack -v ncpus=$cpus ' 238 # that can be executed concurrently given ncpus. Note that a 242 while (nc != ncpus) { 244 nc = ncpus; 251 if (nc >= cpus[i] || nc == ncpus) { 308 -v ncpus=$cpus \ 340 if (cpusr[jn] > ncpus && ncpus != 0) 372 if (ja[1] == -1 && ncpus == 0) 375 njitter = ncpus; [all...] |
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/ |
sched_setaffinity.h | 36 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ 37 if (ncpus > CPU_SETSIZE) { \ 39 "Your libc does not support masks with %ld cpus", ncpus); \
|
sched_setaffinity01.c | 57 static long ncpus; variable 98 ncpus = tst_ncpus_max(); 101 mask = CPU_ALLOC(ncpus); 104 ncpus); 105 mask_size = CPU_ALLOC_SIZE(ncpus); 110 emask = CPU_ALLOC(ncpus + 1); 113 ncpus + 1); 114 emask_size = CPU_ALLOC_SIZE(ncpus + 1); 116 CPU_SET_S(ncpus, emask_size, emask);
|
/external/ltp/lib/ |
tst_cpu.c | 27 long ncpus = -1; local 29 ncpus = SAFE_SYSCONF(NULL, _SC_NPROCESSORS_ONLN); 33 return ncpus;
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
cpuinfo.h | 13 extern int ncpus;
|
cpuinfo.c | 25 int ncpus; variable 38 if (!ncpus) { 39 ncpus = get_ncpus(); 40 if (ncpus <= 0) 50 cpus = malloc(sizeof(*cpus) * ncpus); 53 memset(cpus, 0, sizeof(*cpus) * ncpus); 68 if (data >= ncpus) { 103 for (i = 0; i < ncpus; i++) { 225 if (ci < 0 || ci >= ncpus) { 256 if (!ncpus) { [all...] |
libcpuset.c | 1205 int ncpus = cpuset_cpus_nbits(); local 1209 for (cpu = 0; cpu < (unsigned int)ncpus; cpu++) 1223 if (cpu >= (unsigned int)ncpus 1248 int ncpus = cpuset_cpus_nbits(); local 1252 if ((cpunodemap.map = calloc(ncpus, sizeof(int))) == NULL) 1257 for (cpu = 0; cpu < (unsigned int)ncpus; cpu++) 1262 if (cpu >= (unsigned int)ncpus || mem >= (unsigned int)nmems) 1284 int ncpus = cpuset_cpus_nbits(); local 1293 for (cpu = 0; cpu < (unsigned int)ncpus; cpu++) { 1362 int ncpus = cpuset_cpus_nbits(); local 1381 int ncpus = cpuset_cpus_nbits(); local 1442 int ncpus = cpuset_cpus_nbits(); local 1521 int ncpus = cpuset_cpus_nbits(); local 1581 int ncpus = cpuset_cpus_nbits(); local 1634 int ncpus = cpuset_cpus_nbits(); local 1680 int ncpus = cpuset_cpus_nbits(); local 1713 int ncpus = cpuset_cpus_nbits(); local 1939 int ncpus = cpuset_cpus_nbits(); local [all...] |
/external/ltp/tools/apicmds/ |
Makefile | 30 kvercmp2 res resm ncpus ncpus_conf ncpus_max \
|
/external/swiftshader/third_party/LLVM/utils/lit/lit/ |
Util.py | 11 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 12 if isinstance(ncpus, int) and ncpus > 0: 13 return ncpus 18 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 19 if ncpus > 0: 20 return ncpus
|
/external/ltp/testcases/kernel/syscalls/brk/ |
brk01.c | 150 int ncpus; local 171 if ((ncpus = sysconf(_SC_NPROCESSORS_ONLN)) == -1) 176 * allow 2*ncpus copies to run. 185 max_size = max_size / (2 * ncpus);
|
/external/ltp/testcases/kernel/mem/cpuset/ |
cpuset01.c | 63 static long ncpus; variable 76 ncpus = count_cpu(); 112 exit(mem_hog_cpuset(ncpus > 1 ? ncpus : 1)); 228 int ncpus = 0; local 230 while (path_exist(PATH_SYS_SYSTEM "/cpu/cpu%d", ncpus)) 231 ncpus++; 233 return ncpus;
|
/external/strace/xlat/ |
gen.sh | 291 local ncpus="$(getconf _NPROCESSORS_ONLN)" 292 [ "${ncpus}" -ge 1 ] || 293 ncpus=1 304 if [ ${jobs} -ge ${ncpus} ]; then
|
/external/autotest/client/profilers/cpistat/ |
cpistat | 30 ncpus = os.sysconf('SC_NPROCESSORS_ONLN') variable 31 cpus = range(0, ncpus)
|
/external/autotest/client/tests/monotonic_time/src/ |
time_test.c | 234 int ncpus; local 256 ncpus = count_cpus(cpus); 258 if (nthreads != ncpus) { 260 ncpus, nthreads); 270 test->name, ncpus, duration); 272 INFO("running %s test on %d cpus", test->name, ncpus);
|
/external/llvm/utils/lit/lit/ |
util.py | 34 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 35 if isinstance(ncpus, int) and ncpus > 0: 36 return ncpus 41 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 42 if ncpus > 0: 45 return min(ncpus, 32)
|
/external/blktrace/ |
blktrace.c | 96 int fd, idx, ncpus; member in struct:devpath 218 int fd, ncpus; member in struct:cl_conn 277 static int ncpus; variable 866 hdr.max_cpus = ncpus; 1009 cl_fds = calloc(ncpus, sizeof(*cl_fds)); 1010 for (cpu = 0; cpu < ncpus; cpu++) { 1029 for (cpu = 0, fdp = cl_fds; cpu < ncpus; cpu++, fdp++) { 1052 dpp->ncpus = ncpus; 1056 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats)) [all...] |
blkparse.c | 64 int ncpus; member in struct:per_dev_info 324 int ncpus = pdi->ncpus; local 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); 339 new_space = (new_count - ncpus) * sizeof(struct per_cpu_info); 342 pdi->ncpus = new_count; 345 for (new_count = 0; new_count < pdi->ncpus; new_count++) { 361 if (cpu >= pdi->ncpus) 490 for (cpu = 0; cpu < pdi->ncpus; cpu++) { [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
cpuset_sched_domains_check.c | 118 for (i = 0; i < ncpus; i++) {
|
/external/blktrace/btreplay/ |
btreplay.c | 145 static int ncpus = 0; // Number of CPUs in the system variable 501 * get_ncpus - Sets up the global 'ncpus' value 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) 518 if (ncpus == 0) { 532 assert(0 <= tip->cpu && tip->cpu < ncpus); 547 for (i = 0; i < ncpus; i++) 863 assert(0 <= cpu && cpu < ncpus); [all...] |
/external/clang/utils/analyzer/ |
SATestBuild.py | 69 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 70 if isinstance(ncpus, int) and ncpus > 0: 71 return ncpus 76 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 77 if ncpus > 0: 78 return ncpus
|
/prebuilts/go/darwin-x86/src/cmd/vet/all/ |
main.go | 183 ncpus := runtime.GOMAXPROCS(-1) / len(pp) 184 if ncpus < 1 { 185 ncpus = 1 192 p.vet(ncpus) 199 func (p platform) vet(ncpus int) { 214 cmd := exec.Command(cmdGoPath, "install", "-p", strconv.Itoa(ncpus), "std")
|
/prebuilts/go/linux-x86/src/cmd/vet/all/ |
main.go | 183 ncpus := runtime.GOMAXPROCS(-1) / len(pp) 184 if ncpus < 1 { 185 ncpus = 1 192 p.vet(ncpus) 199 func (p platform) vet(ncpus int) { 214 cmd := exec.Command(cmdGoPath, "install", "-p", strconv.Itoa(ncpus), "std")
|
/external/ltp/testcases/kernel/mem/lib/ |
mem.c | 696 int ncpus = 0; local 702 while (path_exist(PATH_SYS_SYSTEM "/cpu/cpu%d", ncpus)) 703 ncpus++; 705 for (i = 0; i < ncpus; i++) {
|