From: Frederic Weisbecker <fweisbec@gmail.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH] tracing: annotate emit_log_char() notrace
Date: Thu, 28 May 2009 16:16:50 +0200 [thread overview]
Message-ID: <20090528141648.GA6018@nowhere> (raw)
In-Reply-To: <alpine.LFD.2.00.0905271657340.3397@localhost.localdomain>
On Wed, May 27, 2009 at 05:00:44PM +0200, Thomas Gleixner wrote:
> printk calls emit_log_char() in a loop which is cluttering the trace
> buffer. Make it notrace.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
Does it produce that much annoying traces?
I mean, printk() are usually rare events.
Do you have a particular debugging workflow that makes this
function invasive in the trace?
May be it's because you are debugging using ftrace and other
debugging options that use a lot of printk()
In such case, it would indeed be good to apply this patch.
Thanks,
Frederic.
> kernel/printk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6-tip/kernel/printk.c
> ===================================================================
> --- linux-2.6-tip.orig/kernel/printk.c
> +++ linux-2.6-tip/kernel/printk.c
> @@ -499,7 +499,7 @@ static void call_console_drivers(unsigne
> _call_console_drivers(start_print, end, msg_level);
> }
>
> -static void emit_log_char(char c)
> +static void notrace emit_log_char(char c)
> {
> LOG_BUF(log_end) = c;
> log_end++;
next prev parent reply other threads:[~2009-05-28 14:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 15:00 [PATCH] tracing: annotate emit_log_char() notrace Thomas Gleixner
2009-05-28 14:16 ` Frederic Weisbecker [this message]
2009-05-28 14:52 ` Thomas Gleixner
2009-05-28 15:04 ` Steven Rostedt
2009-05-28 15:42 ` Thomas Gleixner
2009-05-28 19:23 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090528141648.GA6018@nowhere \
--to=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.