>Maybe we need a friendlier kstat access method from C?  There is
already libkstat. 

libkstat isn't all that unfriendly.  One of my first C projects was
implementing kstat calls for the net-snmp project (now part of Solaris
10).  The preliminary work involved writing some simple kstat list/tree
walkers.

While I agree it's nice having the complex Perl kstat functionality, I
usually need to look at kstat when the machine is behaving badly -
exactly the moment when I wouldn't want to bring in a whole lot of
memory overhead.

The Perl program invokes exactly the same libraries used by the C
program.  If you really need regular expressions, can't you just pipe to
egrep?
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to