mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: rostedt@goodmis.org
Cc: kosaki.motohiro@jp.fujitsu.com, Li Zefan <lizf@cn.fujitsu.com>,
	Ingo Molnar <mingo@elte.hu>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] tracing: Add sysctl to enable/disable tracing on oops
Date: Wed,  9 Sep 2009 11:33:46 +0900 (JST)	[thread overview]
Message-ID: <20090909113231.0CE6.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <1252461867.11070.6.camel@gandalf.stny.rr.com>

> On Wed, 2009-09-09 at 09:47 +0800, Li Zefan wrote:
> > Steven Rostedt wrote:
> > > On Wed, 2009-09-09 at 09:37 +0800, Li Zefan wrote:
> > >> Steven Rostedt wrote:
> > >>> On Wed, 2009-09-09 at 09:15 +0800, Li Zefan wrote:
> > >>>> Currently we always disable tracing on oops, and this patch
> > >>>> adds a sysctl so one can choose to enable it.
> > >>> Hmm, we already have a way to enable it.
> > >>>
> > >>> # echo 1 > /debug/tracing/tracing_on
> > >>>
> > >> What I want is a way to not disable it when an oops happened. :)
> > >>
> > > 
> > > Ah, I misunderstood. May I ask a silly question?
> > > 
> > > Why?
> > > 
> > 
> > Otherwise we won't get trace output from trae_crash_kexec if
> > crash_kexec() is not called by panic(). For example:
> > 
> >   oops_begin()
> > ->trace_off()
> > ->panic_on_oops
> > ->kexec_should_crash()
> > ->crash_kexec()
> 
> OK, but I'm not exactly sure what you final goal is here. To have a
> something to search for in the ring buffer after the crash? Maybe
> instead we can add a "trace_oops" event? Just put it before the
> tracing_off call.

I have another silly question.
Why should we call tracing_off() in oops_enter()?

1. Oops behavior depend on panic_on_oops sysctl.
   Should we disable trace both case?
2. Can I think the code treat to save oops in tracing code?
   or it have more deeper intention?


Can anyone please explain it?





  reply	other threads:[~2009-09-09  2:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09  1:15 Li Zefan
2009-09-09  1:15 ` [PATCH 2/2] tracing/events: Add kexec tracepoints Li Zefan
2009-09-09  1:20   ` Daniel Walker
2009-09-09  1:26     ` Li Zefan
2009-09-09  4:59       ` Daniel Walker
2009-09-09 11:46         ` Steven Rostedt
2009-09-09 14:12           ` Daniel Walker
2009-09-09 15:19             ` Steven Rostedt
2009-09-09 15:58               ` Daniel Walker
2009-09-09  1:27   ` Eric W. Biederman
2009-09-09  1:39     ` Steven Rostedt
2009-09-09  2:02       ` Eric W. Biederman
2009-09-09  1:34 ` [PATCH 1/2] tracing: Add sysctl to enable/disable tracing on oops Steven Rostedt
2009-09-09  1:37   ` Li Zefan
2009-09-09  1:42     ` Steven Rostedt
2009-09-09  1:47       ` Li Zefan
2009-09-09  2:04         ` Steven Rostedt
2009-09-09  2:33           ` KOSAKI Motohiro [this message]
2009-09-09  2:40             ` Li Zefan
2009-09-09  2:53               ` Steven Rostedt
2009-09-09  4:19                 ` KOSAKI Motohiro
2009-09-09 11:48                   ` Steven Rostedt
2009-09-09  3:01               ` KOSAKI Motohiro

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=20090909113231.0CE6.A69D9226@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=mingo@elte.hu \
    --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