From owner-cvs-all@FreeBSD.ORG Sun Apr 10 16:14:10 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6CC416A4CE; Sun, 10 Apr 2005 16:14:10 +0000 (GMT) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4927543D2F; Sun, 10 Apr 2005 16:14:10 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])j3AGE9ml012766; Mon, 11 Apr 2005 02:14:09 +1000 Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) j3AGE70I028841; Mon, 11 Apr 2005 02:14:08 +1000 Date: Mon, 11 Apr 2005 02:14:07 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Gleb Smirnoff In-Reply-To: <20050408205015.GA84134@cell.sick.ru> Message-ID: <20050411020124.R54820@delplex.bde.org> References: <200504081414.j38EE9OC051194@repoman.freebsd.org> <20050409002141.V48108@delplex.bde.org> <20050408205015.GA84134@cell.sick.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_mutex.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 16:14:11 -0000 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