Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338812
b: refs/heads/master
c: 53bb857
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Oct 23, 2012
1 parent b54569f commit 745dbb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eee058826100e5a344f11601e0c47baeaf07c77b
refs/heads/master: 53bb857c373d6b7936f8a7b4451f0a99703c308e
15 changes: 11 additions & 4 deletions trunk/kernel/rcutree.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
unsigned long flags;
int ndetected = 0;
struct rcu_node *rnp = rcu_get_root(rsp);
long totqlen = 0;

/* Only let one CPU complain about others per time interval. */

Expand Down Expand Up @@ -947,9 +948,11 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
raw_spin_unlock_irqrestore(&rnp->lock, flags);

print_cpu_stall_info_end();
pr_cont("(detected by %d, t=%ld jiffies, g=%lu, c=%lu)\n",
for_each_possible_cpu(cpu)
totqlen += per_cpu_ptr(rsp->rda, cpu)->qlen;
pr_cont("(detected by %d, t=%ld jiffies, g=%lu, c=%lu, q=%lu)\n",
smp_processor_id(), (long)(jiffies - rsp->gp_start),
rsp->gpnum, rsp->completed);
rsp->gpnum, rsp->completed, totqlen);
if (ndetected == 0)
printk(KERN_ERR "INFO: Stall ended before state dump start\n");
else if (!trigger_all_cpu_backtrace())
Expand All @@ -964,8 +967,10 @@ static void print_other_cpu_stall(struct rcu_state *rsp)

static void print_cpu_stall(struct rcu_state *rsp)
{
int cpu;
unsigned long flags;
struct rcu_node *rnp = rcu_get_root(rsp);
long totqlen = 0;

/*
* OK, time to rat on ourselves...
Expand All @@ -976,8 +981,10 @@ static void print_cpu_stall(struct rcu_state *rsp)
print_cpu_stall_info_begin();
print_cpu_stall_info(rsp, smp_processor_id());
print_cpu_stall_info_end();
pr_cont(" (t=%lu jiffies g=%lu c=%lu)\n",
jiffies - rsp->gp_start, rsp->gpnum, rsp->completed);
for_each_possible_cpu(cpu)
totqlen += per_cpu_ptr(rsp->rda, cpu)->qlen;
pr_cont(" (t=%lu jiffies g=%lu c=%lu q=%lu)\n",
jiffies - rsp->gp_start, rsp->gpnum, rsp->completed, totqlen);
if (!trigger_all_cpu_backtrace())
dump_stack();

Expand Down

0 comments on commit 745dbb0

Please sign in to comment.