Date: Mon, 11 Apr 2005 02:14:07 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_mutex.c Message-ID: <20050411020124.R54820@delplex.bde.org> In-Reply-To: <20050408205015.GA84134@cell.sick.ru> References: <200504081414.j38EE9OC051194@repoman.freebsd.org> <20050409002141.V48108@delplex.bde.org> <20050408205015.GA84134@cell.sick.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050411020124.R54820>