linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH tip/core/rcu 0/2] Torture-test updates for v5.13
@ 2021-03-04  0:34 Paul E. McKenney
  2021-03-04  0:35 ` [PATCH tip/core/rcu 1/2] torture: Replace torture_init_begin string with %s paulmck
  2021-03-04  0:35 ` [PATCH tip/core/rcu 2/2] rcutorture: Replace rcu_torture_stall " paulmck
  0 siblings, 2 replies; 3+ messages in thread
From: Paul E. McKenney @ 2021-03-04  0:34 UTC (permalink / raw)
  To: rcu
  Cc: linux-kernel, kernel-team, mingo, jiangshanlai, akpm,
	mathieu.desnoyers, josh, tglx, peterz, rostedt, dhowells,
	edumazet, fweisbec, oleg, joel

Hello!

This series contains a couple of torture-test updates:

1.	Replace torture_init_begin string with %s, courtesy of Stephen
	Zhang.

2.	Replace rcu_torture_stall string with %s, courtesy of Stephen
	Zhang.

						Thanx, Paul

------------------------------------------------------------------------

 rcu/rcutorture.c |    6 +++---
 torture.c        |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH tip/core/rcu 1/2] torture: Replace torture_init_begin string with %s
  2021-03-04  0:34 [PATCH tip/core/rcu 0/2] Torture-test updates for v5.13 Paul E. McKenney
@ 2021-03-04  0:35 ` paulmck
  2021-03-04  0:35 ` [PATCH tip/core/rcu 2/2] rcutorture: Replace rcu_torture_stall " paulmck
  1 sibling, 0 replies; 3+ messages in thread
From: paulmck @ 2021-03-04  0:35 UTC (permalink / raw)
  To: rcu
  Cc: linux-kernel, kernel-team, mingo, jiangshanlai, akpm,
	mathieu.desnoyers, josh, tglx, peterz, rostedt, dhowells,
	edumazet, fweisbec, oleg, joel, Stephen Zhang, Paul E . McKenney

From: Stephen Zhang <stephenzhangzsd@gmail.com>

This commit replaces a hard-coded "torture_init_begin" string in
a pr_alert() format with "%s" and __func__.

Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 kernel/torture.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/torture.c b/kernel/torture.c
index 01e336f..0a315c3 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -816,9 +816,9 @@ bool torture_init_begin(char *ttype, int v)
 {
 	mutex_lock(&fullstop_mutex);
 	if (torture_type != NULL) {
-		pr_alert("torture_init_begin: Refusing %s init: %s running.\n",
-			 ttype, torture_type);
-		pr_alert("torture_init_begin: One torture test at a time!\n");
+		pr_alert("%s: Refusing %s init: %s running.\n",
+			  __func__, ttype, torture_type);
+		pr_alert("%s: One torture test at a time!\n", __func__);
 		mutex_unlock(&fullstop_mutex);
 		return false;
 	}
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH tip/core/rcu 2/2] rcutorture: Replace rcu_torture_stall string with %s
  2021-03-04  0:34 [PATCH tip/core/rcu 0/2] Torture-test updates for v5.13 Paul E. McKenney
  2021-03-04  0:35 ` [PATCH tip/core/rcu 1/2] torture: Replace torture_init_begin string with %s paulmck
@ 2021-03-04  0:35 ` paulmck
  1 sibling, 0 replies; 3+ messages in thread
From: paulmck @ 2021-03-04  0:35 UTC (permalink / raw)
  To: rcu
  Cc: linux-kernel, kernel-team, mingo, jiangshanlai, akpm,
	mathieu.desnoyers, josh, tglx, peterz, rostedt, dhowells,
	edumazet, fweisbec, oleg, joel, Stephen Zhang, Paul E . McKenney

From: Stephen Zhang <stephenzhangzsd@gmail.com>

This commit replaces a hard-coded "rcu_torture_stall" string in a
pr_alert() format with "%s" and __func__.

Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 kernel/rcu/rcutorture.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 99657ff..271726e 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1971,8 +1971,8 @@ static int rcu_torture_stall(void *args)
 			local_irq_disable();
 		else if (!stall_cpu_block)
 			preempt_disable();
-		pr_alert("rcu_torture_stall start on CPU %d.\n",
-			 raw_smp_processor_id());
+		pr_alert("%s start on CPU %d.\n",
+			  __func__, raw_smp_processor_id());
 		while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
 				    stop_at))
 			if (stall_cpu_block)
@@ -1983,7 +1983,7 @@ static int rcu_torture_stall(void *args)
 			preempt_enable();
 		cur_ops->readunlock(idx);
 	}
-	pr_alert("rcu_torture_stall end.\n");
+	pr_alert("%s end.\n", __func__);
 	torture_shutdown_absorb("rcu_torture_stall");
 	while (!kthread_should_stop())
 		schedule_timeout_interruptible(10 * HZ);
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-04  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04  0:34 [PATCH tip/core/rcu 0/2] Torture-test updates for v5.13 Paul E. McKenney
2021-03-04  0:35 ` [PATCH tip/core/rcu 1/2] torture: Replace torture_init_begin string with %s paulmck
2021-03-04  0:35 ` [PATCH tip/core/rcu 2/2] rcutorture: Replace rcu_torture_stall " paulmck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).