hc
2024-03-26 e0728245c89800c2038c23308f2d88969d5b41c8
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