Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935089Ab0KQSNx (ORCPT ); Wed, 17 Nov 2010 13:13:53 -0500 Received: from thunk.org ([69.25.196.29]:60184 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934809Ab0KQSNw (ORCPT ); Wed, 17 Nov 2010 13:13:52 -0500 Date: Wed, 17 Nov 2010 13:13:40 -0500 From: "Ted Ts'o" To: Frederic Weisbecker Cc: Peter Zijlstra , Ingo Molnar , Darren Hart , Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Steven Rostedt , Arjan van de Ven , Arnaldo Carvalho de Melo , Masami Hiramatsu , Tom Zanussi , Mathieu Desnoyers , Li Zefan , Jason Baron , "David S. Miller" , Christoph Hellwig , Pekka Enberg , Lai Jiangshan , Eric Dumazet Subject: Re: [ANNOUNCE] New utility: 'trace' Message-ID: <20101117181340.GF3290@thunk.org> Mail-Followup-To: Ted Ts'o , Frederic Weisbecker , Peter Zijlstra , Ingo Molnar , Darren Hart , Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Steven Rostedt , Arjan van de Ven , Arnaldo Carvalho de Melo , Masami Hiramatsu , Tom Zanussi , Mathieu Desnoyers , Li Zefan , Jason Baron , "David S. Miller" , Christoph Hellwig , Pekka Enberg , Lai Jiangshan , Eric Dumazet References: <20101116221726.GB26243@nowhere> <20101117083020.GA11336@elte.hu> <1289993750.2109.718.camel@laptop> <20101117125344.GC5464@nowhere> <1289998957.2109.751.camel@laptop> <20101117131023.GE27063@elte.hu> <1290000976.2109.782.camel@laptop> <20101117134300.GG5464@nowhere> <1290002029.2109.799.camel@laptop> <20101117141031.GH5464@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101117141031.GH5464@nowhere> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 26 On Wed, Nov 17, 2010 at 03:10:33PM +0100, Frederic Weisbecker wrote: > Yeah I have a strange workflow. I'm working on that CPU isolation thing > and I have dozens of trace_printk all over the place for tons of > things. And everytime I remove one to unwind some output or to focus > on another one, I often have to restore it later because I need it > again. Usually I even just comment it out instead of removing it. What I do for my file system development work is to drop in trace_printk's everywhere, since they are lightweight and don't slow down the system much. Then when the system wedges, I use sysrq-z to get a "flight data recorder" printout of what happened up til the system hung. I love the fact that the ring buffer is in "overwrite" mode (aka flight data recorder mode), and hope this doesn't go away. Per line filtering is also great, but very often when I'm interacting with the block I/O layer, if something screws up, what happens is "and then whole machine locks up", and sysrq-z is literally all I have. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/