Tested on Ubuntu 17.10 on Purley-4S. It has this issue.
root@ubuntu:/home/test# perf stat -e cpu/event=0x28,umask=0x18,name=core_power_lvl1_turbo_license/,cpu/event=0x28,umask=0x20,name=core_power_lvl2_turbo_license/,cpu/event=0x28,umask=0x40,name=core_power_throttle/,cycles -a -I 1000 sleep 10 # time counts unit events 1.095335844 0 core_power_lvl1_turbo_license 1.095335844 0 core_power_lvl2_turbo_license 1.095335844 0 core_power_throttle 1.095335844 147,184,144 cycles 2.139554427 0 core_power_lvl1_turbo_license 2.139554427 0 core_power_lvl2_turbo_license 2.139554427 35,560 core_power_throttle 2.139554427 170,364,636 cycles 3.183743147 0 core_power_lvl1_turbo_license 3.183743147 0 core_power_lvl2_turbo_license 3.183743147 20,538 core_power_throttle 3.183743147 110,499,586 cycles 4.228109748 0 core_power_lvl1_turbo_license 4.228109748 0 core_power_lvl2_turbo_license 4.228109748 21,482 core_power_throttle 4.228109748 121,552,440 cycles 5.272593234 0 core_power_lvl1_turbo_license 5.272593234 0 core_power_lvl2_turbo_license 5.272593234 21,484 core_power_throttle 5.272593234 135,378,982 cycles 6.316954225 0 core_power_lvl1_turbo_license 6.316954225 0 core_power_lvl2_turbo_license 6.316954225 27,796 core_power_throttle 6.316954225 132,060,197 cycles 7.361153943 0 core_power_lvl1_turbo_license 7.361153943 0 core_power_lvl2_turbo_license 7.361153943 21,158 core_power_throttle 7.361153943 123,277,306 cycles 8.405536057 0 core_power_lvl1_turbo_license 8.405536057 0 core_power_lvl2_turbo_license 8.405536057 19,822 core_power_throttle 8.405536057 121,856,825 cycles 9.450094871 0 core_power_lvl1_turbo_license 9.450094871 0 core_power_lvl2_turbo_license 9.450094871 21,966 core_power_throttle 9.450094871 135,282,793 cycles 10.046063508 0 core_power_lvl1_turbo_license 10.046063508 0 core_power_lvl2_turbo_license 10.046063508 21,832 core_power_throttle 10.046063508 118,757,585 cycles root@ubuntu:/home/test# uname -r 4.13.0-16-generic root@ubuntu:/home/test# ldd --version ldd (Ubuntu GLIBC 2.26-0ubuntu2) 2.26
Tested on Ubuntu 17.10 on Purley-4S. It has this issue.
root@ubuntu: /home/test# perf stat -e cpu/event= 0x28,umask= 0x18,name= core_power_ lvl1_turbo_ license/ ,cpu/event= 0x28,umask= 0x20,name= core_power_ lvl2_turbo_ license/ ,cpu/event= 0x28,umask= 0x40,name= core_power_ throttle/ ,cycles -a -I 1000 sleep 10 lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license lvl1_turbo_ license lvl2_turbo_ license /home/test# uname -r /home/test# ldd --version
# time counts unit events
1.095335844 0 core_power_
1.095335844 0 core_power_
1.095335844 0 core_power_throttle
1.095335844 147,184,144 cycles
2.139554427 0 core_power_
2.139554427 0 core_power_
2.139554427 35,560 core_power_throttle
2.139554427 170,364,636 cycles
3.183743147 0 core_power_
3.183743147 0 core_power_
3.183743147 20,538 core_power_throttle
3.183743147 110,499,586 cycles
4.228109748 0 core_power_
4.228109748 0 core_power_
4.228109748 21,482 core_power_throttle
4.228109748 121,552,440 cycles
5.272593234 0 core_power_
5.272593234 0 core_power_
5.272593234 21,484 core_power_throttle
5.272593234 135,378,982 cycles
6.316954225 0 core_power_
6.316954225 0 core_power_
6.316954225 27,796 core_power_throttle
6.316954225 132,060,197 cycles
7.361153943 0 core_power_
7.361153943 0 core_power_
7.361153943 21,158 core_power_throttle
7.361153943 123,277,306 cycles
8.405536057 0 core_power_
8.405536057 0 core_power_
8.405536057 19,822 core_power_throttle
8.405536057 121,856,825 cycles
9.450094871 0 core_power_
9.450094871 0 core_power_
9.450094871 21,966 core_power_throttle
9.450094871 135,282,793 cycles
10.046063508 0 core_power_
10.046063508 0 core_power_
10.046063508 21,832 core_power_throttle
10.046063508 118,757,585 cycles
root@ubuntu:
4.13.0-16-generic
root@ubuntu:
ldd (Ubuntu GLIBC 2.26-0ubuntu2) 2.26