1831185 Members
3159 Online
110021 Solutions
New Discussion

/dev/kmem

 
Boonchu Ngampairoijpibu_1
Occasional Contributor

/dev/kmem

After I upgrade from 10.20 to 11.0, I cannot use the same script to look for information regarding /dev/kmem.

Any help?

#CPU=$(echo 'processor_count/D' | adb $kernel /dev/kmem | grep -v Error| tail -1
| awk '{print $2}')
#SPEED=$(echo 'itick_per_tick/D' | adb $kernel /dev/kmem | grep -v Error | tail
-1 | awk '{print $2 / 10000}')
Boonchu Ngampairoijpibul
3 REPLIES 3
federico_3
Honored Contributor

Re: /dev/kmem

for cpu speedc you have to use the parameter:
itick_per_n_usec

I don't know The equivalent fot processor_count but you could see all the parameter using:

#adb -k -w /stand/vmunix /dev/kmem > /tmp/test
$e
$q
#


eran maor
Honored Contributor

Re: /dev/kmem

Hi
try it on 11.00

echo "processor_count/D" | adb -k /stand/vmunix /dev/mem

echo "itick_per_tick/D" | adb -k /stand/vmunix /dev/mem

hope that i help
love computers
Vincenzo Restuccia
Honored Contributor

Re: /dev/kmem

If you see revision (#what adb)of adb 11.00 is different of 10.20,try with set -x in your script and modify the difference.