/external/autotest/client/tests/monotonic_time/src/ |
H A D | cpuset.h | 13 int count_cpus(const cpu_set_t *cpus); 14 int parse_cpu_set(const char *s, cpu_set_t *cpus); 15 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus);
|
H A D | threads.h | 12 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg);
|
H A D | threads.c | 21 cpu_set_t cpus; member in struct:thread 38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) 49 * the CPUs specified by cpus. 52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg) argument 59 if (!CPU_ISSET(cpu, cpus)) 67 CPU_ZERO(&thread->cpus); 68 CPU_SET(cpu, &thread->cpus); 98 CPU_ZERO(&thread->cpus);
|
H A D | cpuset.c | 14 * Return the number of cpus in a cpu_set 16 int count_cpus(const cpu_set_t *cpus) argument 22 if (CPU_ISSET(cpu, cpus)) 32 int parse_cpu_set(const char *s, cpu_set_t *cpus) argument 34 CPU_ZERO(cpus); 73 CPU_SET(cpu, cpus); 110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus) argument 119 if (CPU_ISSET(cpu, cpus)) {
|
H A D | time_test.c | 38 { "cpus", required_argument, 0, 'c' }, 56 " -c,--cpus set of cpus to test (default: all)\n" 231 int run_test(cpu_set_t *cpus, long duration, struct test_info *test) argument 256 ncpus = count_cpus(cpus); 257 nthreads = create_per_cpu_threads(cpus, test_loop, test); 269 INFO("running %s test on %d cpus for %ld seconds", 272 INFO("running %s test on %d cpus", test->name, ncpus); 309 cpu_set_t cpus; local 325 * default to checking all cpus [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
H A D | cpuset_hierarchy_test.sh | 41 # test cpus 45 echo > "$CPUSET/father/cpus" || return 1 46 echo > "$CPUSET/father/child/cpus" || return 1 48 cpuset_log "father cpus $(cat "$CPUSET/father/cpus")" 49 cpuset_log "child cpus $(cat "$CPUSET/father/child/cpus")" 51 test -z "$(cat "$CPUSET/father/cpus")" || return 1 52 test -z "$(cat "$CPUSET/father/child/cpus")" || return 1 57 echo > "$CPUSET/father/cpus" || retur [all...] |
/external/lisa/libs/utils/analysis/ |
H A D | cpus_analysis.py | 57 cpus = range(self._platform['cpus_count']) 59 [len(sched_df[sched_df['__cpu'] == cpu]) for cpu in cpus], 60 index=cpus, 71 def plotCPU(self, cpus=None): 75 :param cpus: list of CPUs to be plotted 76 :type cpus: list(int) 83 # Filter on specified cpus 84 if cpus is None: 85 cpus = sorted(self._platform['clusters']['little'] + 87 cpus [all...] |
/external/linux-kselftest/tools/testing/selftests/cpufreq/ |
H A D | cpu.sh | 16 cpus=$(ls $CPUROOT | grep "cpu[0-9].*") 17 for cpu in $cpus; do 24 cpus=$(ls $CPUROOT | grep "cpu[1-9].*") 25 for cpu in $cpus; do
|
/external/ltp/testcases/kernel/controllers/cpuset/ |
H A D | cpuset_regression_test.sh | 39 tst_brkm TCONF "We need 2 cpus at least to have test" 63 cpus=cpuset.cpus 66 cpus=cpus 131 # ${cpus} is empty at the begin, that maybe make the system *crash*. 132 echo 0-1 > ${root_cpuset_dir}/testdir/${cpus} 135 "${root_cpuset_dir}/testdir/${cpus}' failed" 138 local cpus_value=$(cat ${root_cpuset_dir}/testdir/${cpus}) 140 tst_brkm TFAIL "${cpus} i [all...] |
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/ |
H A D | cpuhotplug_report_proc_interrupts | 29 my @cpus; 36 if (! @cpus) { 37 @cpus = split /\s+/, $line; 42 foreach my $cpu (@cpus) {
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/tests/ |
H A D | test_script.sh | 10 # NR_CPUS: Number of cpus to run tests with. Default specified by the test 70 cpus=${NR_CPUS:-${default_cpus}} 72 # Check if there are two few cpus to make the test fail. 73 if test $cpus -lt ${min_cpus_fail:-0}; then 77 cbmc_opts="-DNR_CPUS=${cpus} ${sync_srcu_mode_flags} ${test_cbmc_options} ${CBMC_FLAGS}"
|
/external/autotest/client/profilers/cpistat/ |
H A D | cpistat | 31 cpus = range(0, ncpus) variable 33 cpus = options.cpulist.split(',') variable 34 cpus = [ int(c) for c in cpus ] variable 42 s = perfmon.SystemWideSession(cpus, events) 61 for c in cpus: 69 for c in cpus:
|
/external/autotest/client/tests/tsc/src/ |
H A D | checktsc.c | 25 { "cpus", required_argument, 0, 'c' }, 44 printf(" -c,--cpus set of cpus to test (default: all)\n"); 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) argument 74 CPU_ZERO(cpus); 114 CPU_SET(cpu, cpus); 179 cpu_set_t cpus; local 181 CPU_ZERO(&cpus); 182 CPU_SET(cpu, &cpus); 183 if (sched_setaffinity(0, sizeof cpus, 275 check_tsc(cpu_set_t *cpus) argument 320 cpu_set_t cpus; local [all...] |
/external/lisa/libs/utils/ |
H A D | energy_model.py | 91 self.cpus = (cpu,) 96 self.cpus = tuple(sorted(set().union(*[n.cpus for n in children]))) 112 return '{}({}cpus={})'.format( 113 self.__class__.__name__, name_bit, self.cpus) 146 :type cpus: tuple(int) 151 :ivar cpus: CPUs contained in this node. Includes those of child nodes. 238 :ivar cpus: CPUs contained in this node. Includes those of child nodes. 239 :type cpus: tuple(int) 273 :ivar cpus [all...] |
H A D | executor.py | 154 "/big" : {"cpus" : "1-2"}, 477 if not 'cpus' in wlspec['conf']: 479 cpus = wlspec['conf']['cpus'] 481 if type(cpus) == list: 482 return cpus 483 if type(cpus) == int: 484 return [cpus] 488 if 'first' in cpus: 490 if 'last' in cpus [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | cpuinfo.h | 12 extern struct cpuinfo *cpus;
|
H A D | cpuinfo.c | 24 struct cpuinfo *cpus; variable in typeref:struct:cpuinfo 37 /* get the number of cpus including offline cpus */ 44 if (cpus != NULL) { 45 free(cpus); 46 cpus = NULL; 49 /* allocate the memory space for cpus */ 50 cpus = malloc(sizeof(*cpus) * ncpus); 51 if (cpus [all...] |
/external/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/ |
H A D | ftrace_buffer_size_kb.sh | 20 cpus=`tst_ncpus` 22 step=$(( $free_mem / 10 / $LOOP / $cpus ))
|
/external/fio/os/ |
H A D | os-solaris.h | 110 processorid_t *cpus; local 113 cpus = malloc(sizeof(*cpus) * max_cpus); 115 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 116 free(cpus); 122 if (cpus[i] == cpu) { 128 free(cpus);
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
H A D | cpuset_sched_domains_check.c | 61 tst_resm(TFAIL, "get cpus nbits failed"); 90 if (cpus[cpu].sched_domain != NULL) { 94 cpus[cpu]. 105 if (!bitmask_equal(domains[i], cpus[cpu].sched_domain)) { 109 cpus[cpu].sched_domain); 121 if (cpus[i].sched_domain) {
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/ |
H A D | cpuset_base_ops_testset.sh | 105 cfile_name="cpus" 106 while read cpus result 108 base_op_test "$CPUSET/1/cpus" "$cpus" "$result" 124 # while read cpus result 127 base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2)),$((nr_cpus-1))" "0-$((nr_cpus-1))" 128 base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2))," "0-$((nr_cpus-2))" 132 base_op_test "$CPUSET/1/cpus" "0-" "WRITE_ERROR" 134 base_op_test "$CPUSET/1/cpus" "0-" "0" 195 # attach_task_test <cpus> <mem [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
H A D | cpuset_hotplug_test.sh | 89 root_cpus="`cat $CPUSET/cpus`" 104 tst_resm TFAIL "root group's cpus isn't expected(Result: $root_cpus, Expect: $expect_cpus)." 112 # general_cpu_hotplug_test <cpuhotplug> <cpus> <expect_cpus> <expect_task_cpus> 116 local cpus="$2" 132 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr 158 cpus="`cat $path/cpus`" 167 tst_resm TFAIL "test task was still in general group, but its cpus is NULL" 181 check_result "$cpus" "$expect_cpus" 190 if [ "$cpus" [all...] |
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
H A D | jitter.sh | 51 cpus=`ls /sys/devices/system/cpu/*/online | 54 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN { 56 ncpus = split(cpus, ca);
|
/external/lisa/libs/wlgen/wlgen/ |
H A D | workload.py | 58 # The cpus on which the workload will be executed 59 self.cpus = None 127 def getCpusMask(self, cpus=None): 129 for cpu in (cpus or self.target.list_online_cpus()): 131 self._log.debug('CPUs mask for %s: 0x%X', cpus, mask) 138 cpus=None, 144 self.cpus = cpus 178 cpus=None, 196 :param cpus [all...] |
H A D | rta.py | 133 cpus=[cpu]) 144 # Setting a governor & tunables for a cpu will set them for all cpus 187 def _getFirstBiggest(self, cpus): 197 if cpus: 198 for cpu_id in cpus: 205 for c in cpus: 211 return cpus[0] 213 def _getFirstBig(self, cpus=None): 216 return self._getFirstBiggest(cpus) 217 if cpus [all...] |