The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: fweisbec@gmail.com
Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org, mingo@elte.hu,
	tglx@linutronix.de, lizf@cn.fujitsu.com, laijs@cn.fujitsu.com
Subject: Re: [PATCH] tracing: Dump either the oops's cpu source or all cpus buffers
Date: Sun, 18 Apr 2010 21:19:00 -0700 (PDT)	[thread overview]
Message-ID: <20100418.211900.183039797.davem@davemloft.net> (raw)
In-Reply-To: <1271623810-23700-1-git-send-regression-fweisbec@gmail.com>

From: Frederic Weisbecker <fweisbec@gmail.com>
Date: Sun, 18 Apr 2010 22:50:10 +0200

> The ftrace_dump_on_oops kernel parameter, sysctl and sysrq let one
> dump every cpu buffers when an oops or panic happens.
> 
> It's nice when you have few cpus but it may take ages if have many,
> plus you miss the real origin of the problem in all the cpu traces.
> 
> Sometimes, all you need is to dump the cpu buffer that triggered the
> opps, most of the time it is our main interest.
> 
> This patch modifies ftrace_dump_on_oops to handle this choice.
> 
> The ftrace_dump_on_oops kernel parameter, when it comes alone, has
> the same behaviour than before. But ftrace_dump_on_oops=orig_cpu
> will only dump the buffer of the cpu that oops'ed.
> 
> Similarly, sysctl kernel.ftrace_dump_on_oops=1 and
> echo 1 > /proc/sys/kernel/ftrace_dump_on_oops keep their previous
> behaviour. But setting 2 jumps into cpu origin dump mode.
> 
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>

Thanks I was trying to figure out a way to make ftrace dump
do exactly this over the past few days :-)

Acked-by: David S. Miller <davem@davemloft.net>

      parent reply	other threads:[~2010-04-19  4:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-18 20:50 [PATCH] tracing: Dump either the oops's cpu source or all cpus buffers Frederic Weisbecker
2010-04-19  1:15 ` [PATCH v2] " Frederic Weisbecker
2010-04-19  2:29   ` Randy Dunlap
2010-04-19 19:00     ` Steven Rostedt
2010-04-19  4:19 ` David Miller [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=20100418.211900.183039797.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=fweisbec@gmail.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=mingo@elte.hu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox