Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/libs/hwui/tests/scripts/
Dprep_buller.sh4 cpubase=/sys/devices/system/cpu
18 cpu=0
20 while [ $((cpu < 4)) -eq 1 ]; do
21 echo "Setting cpu $cpu to $S hz"
22 adb shell "echo 1 > $cpubase/cpu${cpu}/online"
23 adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"
24 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
25 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
26 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"
27 cpu=$(($cpu + 1))
[all …]
Dprep_taieye.sh2 cpubase=/sys/devices/system/cpu
10 cpu=0
13 while [ $((cpu < 4)) -eq 1 ]; do
14 echo "Setting cpu ${cpu} to $S hz"
15 adb shell "echo userspace > $cpubase/cpu${cpu}/cpufreq/scaling_governor"
16 adb shell "echo 1 > $cpubase/cpu${cpu}/online"
17 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
18 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
19 cpu=$(($cpu + 1))
22 while [ $((cpu < $nr)) -eq 1 ]; do
[all …]
Dprep_generic.sh70 CPU_BASE=/sys/devices/system/cpu
79 cpu=0
80 while [ -f ${CPU_BASE}/cpu${cpu}/online ]; do
82 echo 1 > ${CPU_BASE}/cpu${cpu}/online
84 maxFreq=`cat ${CPU_BASE}/cpu$cpu/cpufreq/cpuinfo_max_freq`
85 availFreq=`cat ${CPU_BASE}/cpu$cpu/cpufreq/scaling_available_frequencies`
99 enableIndices=${cpu}
101 enableIndices="$enableIndices $cpu"
103 disableIndices="$disableIndices $cpu"
105 cpu=$(($cpu + 1))
[all …]
Dprep_fugu.sh3 cpubase=/sys/devices/system/cpu
31 cpu=0
33 while [ $((cpu < 3)) -eq 1 ]; do
34 echo "Setting cpu ${cpu} & $(($cpu + 1)) cluster to $S hz"
36 adb shell "echo 1 > $cpubase/cpu${cpu}/online" &> /dev/null
37 adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"
38 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
39 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
40 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"
41 cpu=$(($cpu + 2))
Dprep_marlfish.sh3 cpubase=/sys/devices/system/cpu
19 cpu=0
22 while [ $((cpu < 3)) -eq 1 ]; do
24 echo "Setting cpu ${cpu} & $(($cpu + 1)) cluster to $S hz"
25 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
26 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
27 cpu=$(($cpu + 2))
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerProfileTest.java72 final CpuProfile cpu = (CpuProfile)profile.getComponent(Component.CPU); in testReadGood() local
73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood()
74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood()
75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood()
76 Assert.assertEquals(2, cpu.clusters.length); in testReadGood()
78 Assert.assertEquals(4, cpu.clusters[0].coreCount); in testReadGood()
79 Assert.assertEquals(2.41f, cpu.clusters[0].onMa, EPSILON); in testReadGood()
80 Assert.assertEquals(9, cpu.clusters[0].frequencies.length, EPSILON); in testReadGood()
81 Assert.assertEquals(100000, cpu.clusters[0].frequencies[0].speedHz); in testReadGood()
82 Assert.assertEquals(0.29f, cpu.clusters[0].frequencies[0].onMa, EPSILON); in testReadGood()
[all …]
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DThread.cpp42 void setAffinity(int32_t cpu) { in setAffinity() argument
45 CPU_SET(cpu, &cpuSet); in setAffinity()
54 for (int32_t cpu = 0; cpu < numCpus; ++cpu) { in setAffinity() local
57 CPU_SET(cpu, &cpuSet); in setAffinity()
60 if (cpu % 2 == 0) CPU_SET(cpu, &cpuSet); in setAffinity()
63 if (cpu % 2 == 1) CPU_SET(cpu, &cpuSet); in setAffinity()
/frameworks/opt/gamesdk/src/swappy/
DThread.cpp42 void setAffinity(int32_t cpu) { in setAffinity() argument
45 CPU_SET(cpu, &cpuSet); in setAffinity()
54 for (int32_t cpu = 0; cpu < numCpus; ++cpu) { in setAffinity() local
57 CPU_SET(cpu, &cpuSet); in setAffinity()
60 if (cpu % 2 == 0) CPU_SET(cpu, &cpuSet); in setAffinity()
63 if (cpu % 2 == 1) CPU_SET(cpu, &cpuSet); in setAffinity()
DCpuInfo.cpp118 for (auto cpu : mCpus) { in CpuInfo() local
119 if (cpu.frequency == mMinFrequency) { in CpuInfo()
121 cpu.type = Cpu::Type::Little; in CpuInfo()
122 CPU_SET(cpu.id, &mLittleCoresMask); in CpuInfo()
126 cpu.type = Cpu::Type::Big; in CpuInfo()
127 CPU_SET(cpu.id, &mBigCoresMask); in CpuInfo()
DChoreographerThread.cpp152 CpuInfo cpu; in looperThread() local
157 if (cpu.getNumberOfCpus() > 0) { in looperThread()
158 ALOGI("Swappy found %d CPUs [%s].", cpu.getNumberOfCpus(), cpu.getHardware().c_str()); in looperThread()
159 if (cpu.getNumberOfLittleCores() > 0) { in looperThread()
160 cpu_set = cpu.getLittleCoresMask(); in looperThread()
DChoreographerFilter.cpp169 int cpu = getNumCpus() - 1 - thread; in threadMain() local
170 if (cpu >= 0) { in threadMain()
171 setAffinity(cpu); in threadMain()
/frameworks/opt/gamesdk/samples/common/src/
DThread.cpp42 void setAffinity(int32_t cpu) { in setAffinity() argument
45 CPU_SET(cpu, &cpuSet); in setAffinity()
54 for (int32_t cpu = 0; cpu < numCpus; ++cpu) { in setAffinity() local
57 CPU_SET(cpu, &cpuSet); in setAffinity()
60 if (cpu % 2 == 0) CPU_SET(cpu, &cpuSet); in setAffinity()
63 if (cpu % 2 == 1) CPU_SET(cpu, &cpuSet); in setAffinity()
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dlarge_test.sh19 echo parsing cpu
20 ../../parse_systrace.py cpu.html > cpu.tmp
31 echo checking cpu
32 diff cpu.txt cpu.tmp
Dmake_golden.sh6 ../../parse_systrace.py cpu.html > cpu.txt
/frameworks/base/core/proto/android/os/
Dcpuinfo.proto26 * 'top -b -n 1 -H -s 6 -o pid,tid,user,pr,ni,%cpu,s,virt,res,pcy,cmd,name'
36 optional int32 total = 1; // total number of cpu tasks
59 optional int32 cpu = 1; // 400% cpu indicates 4 cores field
77 optional string user = 3; // the process name which uses cpu
80 optional float cpu = 6; // precentage of cpu usage of the task field
Dcpufreq.proto24 // cpu frequency time from /sys/devices/system/cpu/cpufreq/all_time_in_state
30 // frequency time pre cpu, unit in jiffy.
39 optional int32 state_khz = 1; // cpu frequency
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.cpp158 int cpu = sysconf(_SC_NPROCESSORS_CONF); in init() local
160 cpu = threadCount; in init()
162 if (cpu < 1) { in init()
165 mCount = (uint32_t)cpu; in init()
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp180 for (uint32_t cpu : gPolicyCpus[i]) time += value.ar[cpu]; in getUidCpuFreqTimes() local
220 for (const auto &cpu : gPolicyCpus[policy]) { in getUidsCpuFreqTimes() local
222 (*freqTimeMap)[key.uid][policy][freqIdx] += val.ar[cpu]; in getUidsCpuFreqTimes()
/frameworks/rs/perf-test-scripts/
Dget-freq40 cores=`adb shell ls /sys/devices/system/cpu/ | grep cpu[0-9].* | tr -d '\r'`
Dset-cpu-freq46 cores=`adb shell ls /sys/devices/system/cpu/ | grep cpu[0-9].* | tr -d '\r'`
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/proto/
Dtuningfork_clearcut_log.proto23 // From '/sys/devices/system/cpu/cpu/#/cpufreq/cpuinfo_max_freq'.
/frameworks/opt/gamesdk/src/tuningfork/proto/
Dtuningfork_clearcut_log.proto23 // From '/sys/devices/system/cpu/cpu/#/cpufreq/cpuinfo_max_freq'.
/frameworks/opt/gamesdk/samples/tuningfork/prototest/proto/
Dtuningfork_clearcut_log.proto23 // From '/sys/devices/system/cpu/cpu/#/cpufreq/cpuinfo_max_freq'.
/frameworks/opt/gamesdk/test/tuningfork/proto/
Dtuningfork_clearcut_log.proto23 // From '/sys/devices/system/cpu/cpu/#/cpufreq/cpuinfo_max_freq'.
/frameworks/opt/gamesdk/samples/common/include/
DThread.h45 void setAffinity(int32_t cpu);

12