From: Breno Leitao <leitao@debian.org>
To: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/3] powerpc/xmon: Disable and enable tracing command
Date: Wed, 2 Aug 2017 11:45:47 -0300 [thread overview]
Message-ID: <20170802144546.pxmahau6tksw4u4e@gmail.com> (raw)
In-Reply-To: <20170802132124.4ik7govvogeud7pp@naverao1-tp.localdomain>
On Wed, Aug 02, 2017 at 06:51:24PM +0530, Naveen N. Rao wrote:
> On 2017/08/01 11:21AM, Breno Leitao wrote:
> > Hi Naveen,
> >
> > On Tue, Aug 01, 2017 at 12:10:24PM +0530, Naveen N. Rao wrote:
> > > On 2017/07/31 02:22PM, Breno Leitao wrote:
> > > > If tracing is enabled and you get into xmon, the tracing buffer
> > > > continues to be updated, causing possible loss of data due to buffer
> > > > overflow and unnecessary tracing information coming from xmon functions.
> > > >
> > > > This patch adds a new option that allows the tracing to be disabled and
> > > > re-enabled from inside xmon.
> > >
> > > How is this new option useful? In the next patch, you disable tracing by
> > > default -- in what scenario do you expect to have to re-enable tracing
> > > from within xmon?
> >
> > I see it being useful on two different scenarios:
> >
> > 1) You can reenable tracing if you want to call a function from xmon
> > (with 'p'), or even for code stepping (with 's').
>
> Hmm... those are just debugging aids, so I don't see why enabling the
> function tracer helps, unless you're debugging the tracer itself..
>
> >
> > 2) You may also want to reenable tracing once you resume from xmon with
> > 'zr'.
>
> 'zr' is for reboot, so not sure what you meant there...
I meant 'x' in fact, which means 'exit monitor and recover'. This will
resume the kernel after getting into xmon.
> If tracing was enabled before we went into xmon, I think that we should
> just restore it by default.
Makes sense. So, I will get ride of this 'v' feature and disable tracing
when entering the xmon, and reenabling it on recovering. That way, we
will avoid xmon functions showing up on the tracing buffer.
I will send a new patchset soon!
Thanks,
Breno
next prev parent reply other threads:[~2017-08-02 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-31 17:22 [PATCH 1/3] powerpc/xmon: Dump ftrace buffers for the current CPU Breno Leitao
2017-07-31 17:22 ` [PATCH 2/3] powerpc/xmon: Disable and enable tracing command Breno Leitao
2017-08-01 6:40 ` Naveen N. Rao
2017-08-01 14:21 ` Breno Leitao
2017-08-02 13:21 ` Naveen N. Rao
2017-08-02 14:45 ` Breno Leitao [this message]
2017-07-31 17:22 ` [PATCH 3/3] powerpc/xmon: Disable tracing on xmon by default Breno Leitao
2017-08-02 15:43 ` [PATCH 1/3] powerpc/xmon: Dump ftrace buffers for the current CPU kbuild test robot
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=20170802144546.pxmahau6tksw4u4e@gmail.com \
--to=leitao@debian.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=naveen.n.rao@linux.vnet.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).