hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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