瑞芯微Rockchip开发者社区
直播中

熊本熊

8年用户 1330经验值
擅长:处理器/DSP
私信 关注
[问答]

怎样去查看CPU频率的实时运行情况呢

怎样去查看CPU频率的实时运行情况呢?有什么方法吗?

回帖(1)

李丽

2022-2-10 14:37:54
查看CPU频率实时运行情况:
/sys/devices/system/cpu/cpufreq
all_time_in_state

root@x1:/sys/devices/system/cpu/cpufreq # cat all_time_in_state
freq            cpu0            cpu1            cpu2            cpu3            cpu4            cpu5            cpu6            cpu7
216000          1721            1721            1721            1721            49511           49511           49511           49511
312000          971             971             971             971             4484            4484            4484            4484
408000          1347            1347            1347            1347            1992            1992            1992            1992
600000          12634           12634           12634           12634           76367           76367           76367           76367
696000          8952            8952            8952            8952            1957            1957            1957            1957
816000          27567           27567           27567           27567           24661           24661           24661           24661
1008000         130097          130097          130097          130097          8202            8202            8202            8202
1200000         N/A             N/A             N/A             N/A             12071           12071           12071           12071
1296000         N/A             N/A             N/A             N/A             4044            4044            4044            4044
root@x1:/d/clk # pwd -P
/sys/kernel/debug/clk
clk_summary



root@x1:/ # ls -al d
lrwxrwxrwx root     root              2017-08-18 08:00 d -> /sys/kernel/debug

root@x1:/d/clk # ls
clk_dump
clk_summary
clkin_hsadc_tsp
dummy
gmac_clkin
i2s_clkin
jtag_clkin
orphans
pclkin_isp
pclkin_vip
pvtm_clkout
xin24m
xin32k
dvfs:


root@x1:/sys/dvfs # ls
cpu_temp_enable
cpu_temp_target
dvfs_tree
root@x1:/sys/dvfs # cat cpu_temp_enable                                   
cpu_b:1
cpu_l:1
root@x1:/sys/dvfs # cat cp
cpu_temp_enable cpu_temp_target
root@x1:/sys/dvfs # cat cpu_temp_target                                   
cpu_b:80
cpu_l:80

root@x1:/sys/dvfs # cat dvfs_tree    // 结果会在串口打印出来
举报

更多回帖

发帖
×
20
完善资料,
赚取积分