From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757771Ab1KQOzQ (ORCPT ); Thu, 17 Nov 2011 09:55:16 -0500 Received: from mail-vx0-f174.google.com ([209.85.220.174]:50610 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757706Ab1KQOzO (ORCPT ); Thu, 17 Nov 2011 09:55:14 -0500 Date: Thu, 17 Nov 2011 15:55:07 +0100 From: Frederic Weisbecker To: Johannes Berg Cc: Steven Rostedt , Christoph Hellwig , LKML , Ingo Molnar Subject: Re: [PATCH] printk: add console output tracing Message-ID: <20111117145502.GA18437@somewhere> References: <1321438728.4773.16.camel@jlt3.sipsolutions.net> <20111116151037.GA26166@infradead.org> <1321456652.4502.12.camel@jlt3.sipsolutions.net> <1321461693.4181.26.camel@frodo> <1321461902.4502.14.camel@jlt3.sipsolutions.net> <1321462856.4181.28.camel@frodo> <1321468380.4502.16.camel@jlt3.sipsolutions.net> <1321473443.4181.38.camel@frodo> <1321478719.4502.20.camel@jlt3.sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1321478719.4502.20.camel@jlt3.sipsolutions.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2011 at 10:25:19PM +0100, Johannes Berg wrote: > From: Johannes Berg > > Add a printk.console trace point to record any printk > messages into the trace, regardless of the current > console loglevel. This can help correlate (existing) > printk debugging with other tracing. > > Signed-off-by: Johannes Berg > --- > include/trace/events/printk.h | 44 ++++++++++++++++++++++++++++++++++++++++++ > kernel/printk.c | 3 ++ > kernel/trace/Makefile | 1 > kernel/trace/printk-trace.c | 14 +++++++++++++ > 4 files changed, 62 insertions(+) > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 > +++ b/kernel/trace/printk-trace.c 2011-11-16 21:22:20.000000000 +0100 > @@ -0,0 +1,14 @@ > +/* > + * printk trace points > + * > + * Copyright (C) 2011 Johannes Berg > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#define CREATE_TRACE_POINTS > +#include Why not defining the tracepoint in kernel/printk.c ?