Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23411
b: refs/heads/master
c: 95c3832
h: refs/heads/master
i:
  23409: d1716ba
  23407: b4bcaaa
v: v3
  • Loading branch information
Paul E. McKenney authored and Linus Torvalds committed Mar 24, 2006
1 parent 12ff457 commit 7b49453
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 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: cdb0452789d365695b5b173542af9c7e3d24f185
refs/heads/master: 95c3832272fc77ea3e31f6382f82ba17be985cc7
23 changes: 15 additions & 8 deletions trunk/kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,16 @@ rcu_torture_shuffle(void *arg)
return 0;
}

static inline void
rcu_torture_print_module_parms(char *tag)
{
printk(KERN_ALERT TORTURE_FLAG "--- %s: nreaders=%d "
"stat_interval=%d verbose=%d test_no_idle_hz=%d "
"shuffle_interval = %d\n",
tag, nrealreaders, stat_interval, verbose, test_no_idle_hz,
shuffle_interval);
}

static void
rcu_torture_cleanup(void)
{
Expand Down Expand Up @@ -483,9 +493,10 @@ rcu_torture_cleanup(void)
rcu_barrier();

rcu_torture_stats_print(); /* -After- the stats thread is stopped! */
printk(KERN_ALERT TORTURE_FLAG
"--- End of test: %s\n",
atomic_read(&n_rcu_torture_error) == 0 ? "SUCCESS" : "FAILURE");
if (atomic_read(&n_rcu_torture_error))
rcu_torture_print_module_parms("End of test: FAILURE");
else
rcu_torture_print_module_parms("End of test: SUCCESS");
}

static int
Expand All @@ -501,11 +512,7 @@ rcu_torture_init(void)
nrealreaders = nreaders;
else
nrealreaders = 2 * num_online_cpus();
printk(KERN_ALERT TORTURE_FLAG "--- Start of test: nreaders=%d "
"stat_interval=%d verbose=%d test_no_idle_hz=%d "
"shuffle_interval = %d\n",
nrealreaders, stat_interval, verbose, test_no_idle_hz,
shuffle_interval);
rcu_torture_print_module_parms("Start of test");
fullstop = 0;

/* Set up the freelist. */
Expand Down

0 comments on commit 7b49453

Please sign in to comment.