From: Ingo Molnar <mingo@elte.hu>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v2][GIT PULL] tracing: add trace_stack interface
Date: Thu, 4 Jun 2009 13:53:34 +0200 [thread overview]
Message-ID: <20090604115334.GA26925@elte.hu> (raw)
In-Reply-To: <20090603214814.GA5193@nowhere>
* Frederic Weisbecker <fweisbec@gmail.com> wrote:
> On Tue, May 19, 2009 at 09:09:40PM -0400, Steven Rostedt wrote:
> >
> > Ingo,
> >
> > I rebased because I forgot to add EXPORT_SYMBOL_GPL.
> >
> > -- Steve
> >
> > Please pull the latest tip/tracing/ftrace tree, which can be found at:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
> > tip/tracing/ftrace
> >
> >
> > Steven Rostedt (1):
> > tracing: add trace_stack interface
> >
> > ----
> > include/linux/kernel.h | 2 ++
> > kernel/trace/trace.c | 16 ++++++++++++++++
> > 2 files changed, 18 insertions(+), 0 deletions(-)
> > ---------------------------
> > commit 9f6b28655254b91c48f684b367ac14bfec0e180a
> > Author: Steven Rostedt <srostedt@redhat.com>
> > Date: Tue May 19 18:54:16 2009 -0400
> >
> > tracing: add trace_stack interface
> >
> > This patch adds the global function
> >
> > void trace_stack(void)
> >
> > This allows a developer to find where a function is called. For example,
> > if you want to know who calls __netif_reschedule, you can add
> >
> > static inline void __netif_reschedule(struct Qdisc *q)
> > {
> > struct softnet_data *sd;
> > unsigned long flags;
> >
> > + trace_stack();
> > local_irq_save(flags);
> > sd = &__get_cpu_var(softnet_data);
> > q->next_sched = sd->output_queue;
> >
> > And see the following in the trace output:
> >
> > <= __ftrace_trace_stack
> > <= trace_stack
> > <= __netif_schedule
> > <= dev_watchdog
> > <= run_timer_softirq
> > <= __do_softirq
> > <= call_softirq
> > <= do_softirq
> > <= irq_exit
> >
> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
>
>
> I wanted to use it to get the recursive locking points in reiserfs
> but I can't find it.
>
> Has it been merged in -tip ?
hm, Steve has not sent it along AFAICS. There were no objections
from me.
Ingo
prev parent reply other threads:[~2009-06-04 11:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 0:44 [PATCH][GIT " Steven Rostedt
2009-05-20 1:07 ` Frederic Weisbecker
2009-05-20 1:14 ` Steven Rostedt
2009-05-20 1:55 ` Frederic Weisbecker
2009-05-20 1:09 ` [PATCH v2][GIT " Steven Rostedt
2009-06-03 21:48 ` Frederic Weisbecker
2009-06-03 22:18 ` Steven Rostedt
2009-06-04 11:53 ` Ingo Molnar [this message]
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=20090604115334.GA26925@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--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
Powered by JetHome