From: Thomas Gleixner <tglx@linutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] tracing: annotate emit_log_char() notrace
Date: Thu, 28 May 2009 17:42:46 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.0905281732010.3397@localhost.localdomain> (raw)
In-Reply-To: <alpine.DEB.2.00.0905281057490.905@gandalf.stny.rr.com>
On Thu, 28 May 2009, Steven Rostedt wrote:
> > IIRC the same happens with a serial console, but that can be worse as
> > you busy wait during the character output.
> >
> > It'd be nice if we could inherit the notrace from the caller :)
> >
>
> I'd hate to make rcu_read_*lock be a notrace. I've done some debugging
> with wanting to know where the rcu locks were taken.
Sure.
> I'm sure there's lots of functions that people will want to add notrace
> for. Really, the notrace on a function should only be there to prevent
> crashes (functions used by the tracer or early boot up code for some
> archs).
Well, lets look at the atomic notifier then. Why is it notrace ? And
if there is a reason why does it trace the calls which are done inside
of it. We should really think about inheriting the notrace down the
call chain at least for those calls which must be annotated to avoid
wreckage. That could then be made optional (via commandline) for all
notrace calls.
> That said, there are times when you want to avoid tracing things on early
> boot up. Thus, if someone adds to the kernel command line
> "ftrace=function" you have no way to filter out these functions you don't
> care about.
>
> What if I add a "ftrace_notrace=<function list>" kernel command line, that
> has <function list> be a comma separated list of functions you want to go
> into the "set_ftrace_notrace" on boot up? Would that satisfy you. Then you
> can keep adding to the list dynamically every boot. And keep it there in a
> grub file.
That list might grow fast beyond the command line lenght limit :)
But yeah, I can see your point. At least it would be better than
cursing and adding ad hoc notrace patches all over the place.
Thanks,
tglx
next prev parent reply other threads:[~2009-05-28 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 15:00 Thomas Gleixner
2009-05-28 14:16 ` Frederic Weisbecker
2009-05-28 14:52 ` Thomas Gleixner
2009-05-28 15:04 ` Steven Rostedt
2009-05-28 15:42 ` Thomas Gleixner [this message]
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=alpine.LFD.2.00.0905281732010.3397@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®