From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 28 12:47:05 2007 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE21216A421 for ; Wed, 28 Nov 2007 12:47:05 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id B11B113C4D5 for ; Wed, 28 Nov 2007 12:47:05 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 7435547120; Wed, 28 Nov 2007 07:50:57 -0500 (EST) Date: Wed, 28 Nov 2007 12:46:57 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Skip Ford In-Reply-To: <20071128123826.GA813@menantico.com> Message-ID: <20071128124011.M80520@fledge.watson.org> References: <20071127171228.N94692@fledge.watson.org> <20071128054208.GA813@menantico.com> <20071128092434.J94692@fledge.watson.org> <20071128110550.GA2216@menantico.com> <20071128123826.GA813@menantico.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@FreeBSD.org Subject: Re: Updated procstat(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 12:47:06 -0000 On Wed, 28 Nov 2007, Skip Ford wrote: > Skip Ford wrote: >> Robert Watson wrote: >>> On Wed, 28 Nov 2007, Skip Ford wrote: >>> >>>>> - "-a" now means "all processes", >>>> >>>> Thanks. :-) I'm a little surprised. You seemed pretty dedicated to a >>>> per-process tool. >>> >>> I was, but then I read your e-mail and became convinced that the first >>> patch that would be submitted against procstat(1) would be a "-a" patch. >>> :-) >> >> Yep, would've happened. Now the first patch submitted will be a "-w >> interval" patch... :-) > > I couldn't resist implementing a crude interval arg just for kicks. Here's > the output of find(1) every second. This is so cool: Very neat :-). If you like this, you'll love DTrace, which allows you to do all sorts of things along these lines. I'll add a -w mode, but be aware that if you want to do the below, what you really want is DTrace :-), which allows you do do things like sample kernel stack traces on the clock timer, based on function invocations, etc, so you can do things like say "sample all the paths to a particular kernel function". Now that John is updating DTrace again, I hope that we'll be seeing it in the 8-CURRENT source RSN. Robert N M Watson Computer Laboratory University of Cambridge