Re: cvs commit: src/sys/kern kern_mutex.c

[ Available lists | Index of cvs-all | Month of Apr 2005 | Week of 10 Apr 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Bruce Evans <bde@zeta.org.au>
Date
10 Apr 2005 16:14:10
Subject
Re: cvs commit: src/sys/kern kern_mutex.c
Message-ID
20050411020124.R54820@delplex.bde.org


[ Hide this part ]
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.

Bruce


Elapsed time: 0.254 seconds