public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] tracing/function-return-tracer: add the overrun field
Date: Tue, 18 Nov 2008 16:02:49 +0100	[thread overview]
Message-ID: <20081118150249.GE30358@elte.hu> (raw)
In-Reply-To: <alpine.DEB.1.10.0811180951410.15003@gandalf.stny.rr.com>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> 
> On Tue, 18 Nov 2008, Ingo Molnar wrote:
> > * Steven Rostedt <rostedt@goodmis.org> wrote:
> > > 
> > > I was just looking at the stack tracer, and it pretty much gives us 
> > > the answer ;-) I'm hitting on max traces around 55, but some of 
> > > those are asm calls. We could do 50 or 60?  We probably want to make 
> > > sure that the two do not come close to hitting. That is, the bottom 
> > > of the stack to overwrite the saved return addresses.
> > 
> > does the stack tracer properly nest across IRQ entry boundaries 
> > already on x86? We used to have problems in that area.
> 
> Actually, because the stack tracer is in generic code, we punt on IRQ 
> stacks:
> 
> 	/* we do not handle interrupt stacks yet */
> 	if (!object_is_on_stack(&this_size))
> 		return;
> 
> I check if the local variable "this_size" is on the current->stack 
> and if it is not then this means that we are using some other stack, 
> and we do not record it.
> 
> What would be needed is to make a per-arch stack call. Perhaps have 
> a:
> 
>    arch_check_stack(&this_size, &max_stack_trace, &max_stack_size);
> 
> Where a weak function can be defined to return nothing. But the arch 
> can check which stack the "this_size" variable is on and run the 
> stack tracer against that stack.
> 
> Maybe we should have two stack traces, a stack_trace file and a 
> stack_trace_irq ?
> 
> Because, some archs, like x86_64 have different size stacks. The 
> thread stack is 8K where as the IRQ stack is 4K.  We may want to see 
> which IRQ stack call is the worst, and not compare it to the thread 
> stack call.

... and on 64-bit x86 the IRQ stacks are 16K, and some of the IST 
exception stacks have different sizes as well.

	Ingo

  reply	other threads:[~2008-11-18 15:03 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17  2:22 [PATCH 3/3] tracing/function-return-tracer: add the overrun field Frederic Weisbecker
2008-11-17  8:49 ` Ingo Molnar
2008-11-17 18:38   ` Frederic Weisbecker
2008-11-18  8:47     ` Ingo Molnar
2008-11-18 14:23       ` Steven Rostedt
2008-11-18 14:51         ` Ingo Molnar
2008-11-18 15:06           ` Steven Rostedt
2008-11-18 15:13             ` Ingo Molnar
2008-11-18 15:22               ` Steven Rostedt
2008-11-18 15:50                 ` Ingo Molnar
2008-11-18 16:31                   ` Frédéric Weisbecker
2008-11-18 16:40                     ` Ingo Molnar
2008-11-18 16:47                       ` Frédéric Weisbecker
2008-11-18 16:53                         ` Steven Rostedt
2008-11-18 16:58                           ` Frédéric Weisbecker
2008-11-18 17:00                             ` Frédéric Weisbecker
2008-11-18 21:01                               ` Ingo Molnar
2008-11-18 21:03                         ` Ingo Molnar
2008-11-19  7:35                           ` Frédéric Weisbecker
2008-11-21 19:39                           ` Frédéric Weisbecker
2008-11-21 19:48                             ` Ingo Molnar
2008-11-21 20:07                               ` Frédéric Weisbecker
2008-11-23 13:18                                 ` Ingo Molnar
2008-11-18 16:43                     ` Steven Rostedt
2008-11-18 14:21   ` Steven Rostedt
2008-11-18 14:48     ` Ingo Molnar
2008-11-18 14:58       ` Steven Rostedt
2008-11-18 15:02         ` Ingo Molnar [this message]
2008-11-18 15:11           ` 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=20081118150249.GE30358@elte.hu \
    --to=mingo@elte.hu \
    --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