mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com,
	paulmck@linux.vnet.ibm.com, Andrew Morton <akpm@osdl.org>,
	tglx@linutronix.de, mathieu.desnoyers@efficios.com,
	xiakaixu@huawei.com
Subject: Re: [PATCH] tracing: Allow raw_syscall tracepoints to work from boot
Date: Fri, 16 Jan 2015 09:47:47 +1100	[thread overview]
Message-ID: <1421362067.23332.4.camel@ellerman.id.au> (raw)
In-Reply-To: <20150115085817.46708f7f@grimm.local.home>

On Thu, 2015-01-15 at 08:58 -0500, Steven Rostedt wrote:
> On Thu, 15 Jan 2015 17:10:40 +1100
> Michael Ellerman <mpe@ellerman.id.au> wrote:
> > 
> > I like my version better, but your call.
> 
> Of course you do :-)

You've got to admit mine is a lot neater looking :)

> I thought about it a bit, and both versions are really hacks. But in
> the end, I'd rather not touch the swapper task because that might give
> us some unwanted side effects.

Yeah that's true. I don't *think* there would be, but touching swapper is
certainly something one should do with caution.

> I don't really like my approach where I need to disable and re-enable
> all tracepoints. I was thinking of only enabling and disabling just the
> syscall ones, but I could imagine another tracepoint with a reg that
> could be affected by early boot as well, so I left it touching all
> events. My patch is fine for mainline, but I could make a patch for
> 3.20 that will only restart a tracepoint if it has its own reg/unreg
> functions and does not use the default ones.
> 
> Your patch fixes syscall events. I wanted something that will fix any
> event with its own special registration that might also use
> for_each_process_thread() or some other call that does not work before
> init is created.

Yep, that is definitely a benefit. I don't think there are heaps of folks using
tracepoints from boot, so it's possible something else was broken and we
haven't noticed yet.

cheers



      reply	other threads:[~2015-01-15 22:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 22:35 Michael Ellerman
2015-01-14 18:03 ` Steven Rostedt
2015-01-15  6:10   ` Michael Ellerman
2015-01-15 13:58     ` Steven Rostedt
2015-01-15 22:47       ` Michael Ellerman [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=1421362067.23332.4.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@redhat.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=xiakaixu@huawei.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

Powered by JetHome