I have suspected strace output problem on ubuntu and carried out few experiments to confirm the behavior.
expected sysfs output is coming on EXP-1 and EXP-2. but not incase of EXP-3, EXP-4 and EXP-5
Regarding the EXP-1 and EXP-2 test
with strace switching is happening.
without strace switching is happening.
Regarding the EXP-3, EXP-4 and EXP-5 test
with strace switching is not happening.
without strace switching is happening.
The above behavior is confirmed by amit pundir, he has GUI FM where we can see cluster blinks.
File not found error we can ignore from the strace output.
After above open() read() and write() operations, still strace reported governor file not found several times.
[pid 1968] write(2, "[[: not found", 13[[: not found) = 13
[pid 1968] write(2, "\n", 1
I have suspected strace output problem on ubuntu and carried out few experiments to confirm the behavior.
expected sysfs output is coming on EXP-1 and EXP-2. but not incase of EXP-3, EXP-4 and EXP-5
Regarding the EXP-1 and EXP-2 test
with strace switching is happening.
without strace switching is happening.
Regarding the EXP-3, EXP-4 and EXP-5 test
with strace switching is not happening.
without strace switching is happening.
The above behavior is confirmed by amit pundir, he has GUI FM where we can see cluster blinks.
EXP 1: sys/devices/ system/ cpu/cpu0/ cpufreq/ scaling_ governor" , O_WRONLY| O_CREAT| O_TRUNC| O_LARGEFILE, 0666) = 3 sys/devices/ system/ cpu/cpu0/ cpufreq/ scaling_ governor" , O_RDONLY| O_LARGEFILE) = 3
#cd /usr/bin
#strace -f /usr/bin/sh governor
open("/
write(1, "userspace\n", 10) = 10
[pid 1970] open("/
[pid 1970] read(3, "userspace\n", 32768) = 10
File not found error we can ignore from the strace output.
After above open() read() and write() operations, still strace reported governor file not found several times.
[pid 1968] write(2, "[[: not found", 13[[: not found) = 13
[pid 1968] write(2, "\n", 1
EXP 2: run_stress_ switcher_ test.sh -b (run-bl- basic-tests. sh and switcher-tests.sh ) sys/devices/ system/ cpu/cpu0/ cpufreq/ scaling_ governor" , O_WRONLY| O_CREAT| O_TRUNC| O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory) sys/devices/ system/ cpu/cpu0/ cpufreq/ scaling_ setspeed" , O_WRONLY| O_CREAT| O_TRUNC| O_LARGEFILE, 0666) = 3
#strace -f /usr/bin/sh /usr/bin/
rmmod arm-bl-cpufreq
[pid 1427] open("/
...
insmod arm-bl-cpufreq
[pid 1503] open("/
[pid 1503] write(1, "1000000\n", 8) = 8
EXP 3: run_stress_ switcher_ test.sh -t 1 (test name cache-coherency-a7 )
#strace -f /usr/bin/sh /usr/bin/
EXP 4: run_stress_ switcher_ test.sh -t 2 (test name cache-coherency-a15 )
#strace -f /usr/bin/sh /usr/bin/
EXP 5: run_stress_ switcher_ test.sh -t 3 (test name cache-coherency -switching )
#strace -f /usr/bin/sh /usr/bin/