Sean McGrath wrote:
>  libkstat and libdtrace.
> 
>    The majority of system statistics etc are/can be gleamed from libkstat
>    eg mpstat, iostat and vmstat make use of libkstat.
>    Theres intrstat which uses the dtrace library.
>     For network theres Tim Cook's nicstat from his blog blogs.sun.com/timc
>     which also uses libkstat...
> 
>   The source for all these can be viewed at src.opensolaris.org for examples
>    on how to use them.  Though the nicstat source is just from Tim's blog.

Thanks for the hint - it also lead me to 
http://developers.sun.com/solaris/articles/kstatc.html.

>   Theres a few blogs on howto use libkstat..
>     I find it easier to use libkstat then on linux where having to open
>    various /proc/* files and parse each files own format..
>      (unless theres a libproc on linux to do all this I don't know)

Of course, an interface like libkstat is much nicer than parsing hardly 
documented files from /proc that differ from version to version and 
platform to platform! It just happens to work for our purpose.

>  Even then dtrace can help, look at how to add your own dtrace probes to
>   your application ?

I figure I'd rather add dtrace probes to our drivers to be read from the 
benchmark via libdtrace!?

  Joachim

-- 
Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to