hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
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