hc
2023-11-06 89281ea41721b3027e14d66c19f2dbb4d11847d3
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
pid_list="`pgrep -d , ssv `,`pgrep -d , sdio`"
cpu_list=/sys/devices/system/cpu/cpu?
while [ true ] 
    do 
        #clear
        echo "============================================================================"
        top -b -n 1 -p $pid_list
        for cpu in $cpu_list; do 
       echo "`basename $cpu` `cat $cpu/cpufreq/cpuinfo_cur_freq`"; 
        done
        #sleep 0.1
    done