Ivan wrote:
Hey,

I'm just playing around :-)  I think it is an easy way to see what's going on 
in the kernel.  I would like to see what values are stored inside some 
structures related to VM.


You can look at this using mdb -k on a running kernel as well:

# mdb -k
Loading modules: [ unix krtld genunix specfs dtrace cpu.AuthenticAMD.15 uppc pcplusmp zfs random ip sctp usba s1394 fctl nca lofs audiosup fcip cpc crypto logindmux ptm ufs sppp nfs ipc ]
> cpu::print cpu_t
{
    cpu_id = 0xfbc25650
    cpu_seqid = 0xffffffff
    cpu_flags = 0xf800
    cpu_self = 0
    cpu_thread = 0
    cpu_idle_thread = 0
    cpu_pause_thread = 0
    cpu_lwp = 0
    cpu_fpowner = 0
....

You can also grovel through this w/ DTrace; no need to compile
& reboot/load new kernel module unless you want to....

- Bart

--
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to