cvs commit: src/sys/kern kern_mutex.c

Bruce Evans bde at
Sun Apr 10 09:14:11 PDT 2005

On Sat, 9 Apr 2005, Gleb Smirnoff wrote:

> On Sat, Apr 09, 2005 at 01:16:51AM +1000, Bruce Evans wrote:
> B> ...
> B> (*) Formatted output is not too bad for sysctls in the debug tree, but
> B> for general-purpose sysctls it is just a bug.
> We already have formatted output here, don't we? Why just don't get it
> formatted correctly?

Because the kernel cannot do the formatting correctly.  It cannot reasonably
know the user's preferences or screen size...

> If you insist on userland app to parse and format MUTEX_PROFILING(9)
> statistics, then you should be consistent and remove the header _at all_.

Indeed, the header is just an obstruction for simple parsers like
"awk '{ print $3 }' | ministat".  I usually leave headers out of my
debugging sysctls though I often forget what all the columns are.


More information about the cvs-src mailing list