From: mingo@elte.hu (Ingo Molnar)
Subject: [ltt-dev] [PATCH tip/master] RCU-based detection of stalled CPUs for Classic RCU
Date: Fri, 3 Oct 2008 10:39:47 +0200 [thread overview]
Message-ID: <20081003083947.GB7636@elte.hu> (raw)
In-Reply-To: <20081002230639.GA7522@linux.vnet.ibm.com>
* Paul E. McKenney <paulmck at linux.vnet.ibm.com> wrote:
> Hello!
>
> This patch adds stalled-CPU detection to Classic RCU. This capability
> is enabled by a new config variable CONFIG_RCU_CPU_STALL_DETECTOR,
> which defaults disabled. This is a debugging feature to detect
> infinite loops in kernel code, not something that non-kernel-hackers
> would be expected to care about. This feature can detect looping CPUs
> in !PREEMPT builds and looping CPUs with preemption disabled in
> PREEMPT builds. This is essentially a port of this functionality from
> the treercu patch, replacing the stall debug patch that is already in
> tip/core/rcu (commit 67182ae1c4).
>
> The changes from the patch in tip/core/rcu include making the config
> variable name match that in treercu, changing from seconds to jiffies
> to avoid spurious warnings, and printing a boot message when this
> feature is enabled.
>
> Signed-off-by: Paul E. McKenney <paulmck at linux.vnet.ibm.com>
applied to tip/core/rcu, thanks Paul!
i tidied up two tiny details noticed by scripts/checkpatch.pl:
> +#define RCU_SECONDS_TILL_STALL_CHECK 3 * HZ /* for rcp->jiffies_stall */
> +#define RCU_SECONDS_TILL_STALL_RECHECK 30 * HZ /* for rcp->jiffies_stall */
adding paranthesis around the expression.
> + if (cpu_isset(smp_processor_id(), rcp->cpumask) && delta >= 0) {
> +
and have removed the two tailing tabs from this line.
Ingo
next prev parent reply other threads:[~2008-10-03 8:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081002003628.GA7877@linux.vnet.ibm.com>
[not found] ` <20081002080726.GB17695@elte.hu>
[not found] ` <20081002140507.GB6729@linux.vnet.ibm.com>
[not found] ` <20081002151046.GB2473@Krystal>
[not found] ` <20081002174318.GB7324@linux.vnet.ibm.com>
2008-10-02 18:51 ` [ltt-dev] [PATCH, RFC] RCU-based detection of stalled CPUs for Classic RCU (LTTng support) Mathieu Desnoyers
2008-10-02 22:55 ` Paul E. McKenney
2008-10-02 23:06 ` [ltt-dev] [PATCH tip/master] RCU-based detection of stalled CPUs for Classic RCU Paul E. McKenney
2008-10-03 4:41 ` Mathieu Desnoyers
2008-10-03 5:02 ` Paul E. McKenney
2008-10-03 8:39 ` Ingo Molnar [this message]
2008-10-03 8:42 ` [ltt-dev] [PATCH] rcu: RCU-based detection of stalled CPUs for Classic RCU, fix Ingo Molnar
2008-10-03 8:42 ` Ingo Molnar
2008-10-03 15:14 ` Paul E. McKenney
2008-10-03 15:13 ` [ltt-dev] [PATCH tip/master] RCU-based detection of stalled CPUs for Classic RCU Paul E. McKenney
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=20081003083947.GB7636@elte.hu \
--to=mingo@elte.hu \
/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