On 6 October 2016 at 22:35, Steve Muckle steve.muckle@linaro.org wrote:
The cpufreq (dvfs) test script attempts to update the number of loops to run the workload by searching for the pattern ^loops (searching just for loops won't work as that appears in multiple places). But the dvfs.json file currently has the desired instance of "loops" indented. Remove the indentations so the dvfs.sh script works as expected.
I would prefer to change the sed command and keep the right indentation. the foolowing sed command change the 1st occurrence of "loop" : xx, sed '0,/"loop"/s/"loop" : .*,/"loop" : '$5',/' -i dvfs.json
Signed-off-by: Steve Muckle smuckle@linaro.org
doc/examples/cpufreq_governor_efficiency/dvfs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/examples/cpufreq_governor_efficiency/dvfs.json b/doc/examples/cpufreq_governor_efficiency/dvfs.json index c1eefe4b978e..b7a6dcd8d2b8 100755 --- a/doc/examples/cpufreq_governor_efficiency/dvfs.json +++ b/doc/examples/cpufreq_governor_efficiency/dvfs.json @@ -4,7 +4,7 @@ "instance" : 1, "policy" : "SCHED_FIFO", "cpus" : [1],
"loop" : 10,
+"loop" : 10, "phases" : { "sleeping" : { "loop" : 1, -- 2.7.3