From: Steven Rostedt <rostedt@goodmis.org>
To: Denis Kirjanov <kda@linux-powerpc.org>
Cc: linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com
Subject: Re: [PATCH 2/2] tracing/rcu: don't trace rcu_callback on offline CPUs
Date: Sun, 14 Feb 2016 11:43:50 -0500 [thread overview]
Message-ID: <20160214114350.1159e561@grimm.local.home> (raw)
In-Reply-To: <1455387773-4245-2-git-send-email-kda@linux-powerpc.org>
On Sat, 13 Feb 2016 21:22:53 +0300
Denis Kirjanov <kda@linux-powerpc.org> wrote:
>
> diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h
> index ef72c4a..5470f2f 100644
> --- a/include/trace/events/rcu.h
> +++ b/include/trace/events/rcu.h
> @@ -435,6 +435,8 @@ TRACE_EVENT(rcu_callback,
>
> TP_ARGS(rcuname, rhp, qlen_lazy, qlen),
>
> + TP_CONDITION(cpu_online(raw_smp_processor_id())),
> +
Besides the fact that this isn't a TRACE_EVENT_CONDITION, Isn't calling
rcu_callback() dangerous from an offline CPU?
Or is calling a callback from an offline CPU OK?
Perhaps it is OK, as it doesn't need to worry about its current CPU,
just the other CPUs.
Paul?
-- Steve
> TP_STRUCT__entry(
> __field(const char *, rcuname)
> __field(void *, rhp)
next prev parent reply other threads:[~2016-02-14 16:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 18:22 [PATCH 1/2] tracing/mm: don't trace kfree " Denis Kirjanov
2016-02-13 18:22 ` [PATCH 2/2] tracing/rcu: don't trace rcu_callback " Denis Kirjanov
2016-02-13 19:25 ` kbuild test robot
2016-02-14 16:43 ` Steven Rostedt [this message]
2016-02-14 17:35 ` Denis Kirjanov
2016-02-14 16:45 ` [PATCH 1/2] tracing/mm: don't trace kfree " Steven Rostedt
2016-02-14 17:35 ` Denis Kirjanov
2016-02-14 20:19 ` Denis Kirjanov
2016-02-15 17:32 ` Steven Rostedt
2016-02-16 5:52 ` Denis Kirjanov
2016-02-16 11:03 ` Paul E. McKenney
2016-02-16 15:01 ` Steven Rostedt
2016-02-16 15:03 ` 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=20160214114350.1159e561@grimm.local.home \
--to=rostedt@goodmis.org \
--cc=kda@linux-powerpc.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@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
all inboxes | Powered by JetHome®