All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rcutorture: Add parameter usage warnings
@ 2017-12-06 10:51 lianglihao
  2017-12-06 10:51 ` [PATCH 1/2] rcutorture: Add usage warnings for parameters gp_normal and gp_exp lianglihao
  2017-12-06 10:51 ` [PATCH 2/2] rcutorture: Add tests of param usage warnings lianglihao
  0 siblings, 2 replies; 4+ messages in thread
From: lianglihao @ 2017-12-06 10:51 UTC (permalink / raw)
  To: paulmck; +Cc: guohanjun, lihao.liang, linux-kernel

From: Lihao Liang <lianglihao@huawei.com>

Hi Paul,

Please find a patch series that adds rcutorture parameter usage warnings
against your git branch rcu/dev

commit e2c83bca7e80 ("EXP: rcu: Add ->boost_tasks to assertion")

Patch no.1 contains the actual changes. Patch no.2 is for testing purposes only
and is not intended to be merged. It seems that the scripts didn’t pick up the
lines in BUSTED02.boot that set the value of gp_normal and gp_exp. But when I
hard-coded gp_normal to true in rcutorture.c, it did print out
"rcu_torture_writer3: gp_sync without primitives" as expected.

It may be better to have more informative warning messages for the new if-else blocks
in patch no.1. Feel free to revise them.

Please let me know if you have any questions.

Many thanks,
Lihao.


Lihao Liang (2):
  rcutorture: Add param usage warnings
  rcutorture: Add tests of param usage warnings

 kernel/rcu/rcutorture.c                                  | 16 ++++++++++++++--
 tools/testing/selftests/rcutorture/configs/rcu/BUSTED02  |  7 +++++++
 .../selftests/rcutorture/configs/rcu/BUSTED02.boot       |  1 +
 tools/testing/selftests/rcutorture/configs/rcu/CFLIST    |  2 ++
 4 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/BUSTED02
 create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/BUSTED02.boot

-- 
2.7.4

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

end of thread, other threads:[~2017-12-07  0:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 10:51 [PATCH 0/2] rcutorture: Add parameter usage warnings lianglihao
2017-12-06 10:51 ` [PATCH 1/2] rcutorture: Add usage warnings for parameters gp_normal and gp_exp lianglihao
2017-12-07  0:23   ` Paul E. McKenney
2017-12-06 10:51 ` [PATCH 2/2] rcutorture: Add tests of param usage warnings lianglihao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.