tools/memory-model: Make judgelitmus.sh identify bad macros
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 18 Mar 2019 20:40:57 +0000 (13:40 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Mar 2023 17:24:13 +0000 (10:24 -0700)
commit02484d826fda923f829fc47350ee99fd3cbd3414
tree7f8aaa865aa0c218aa66f6eff81e184ec379eb70
parentb1da11c936e28d60a02f13c9ea27fdc3d1759b38
tools/memory-model: Make judgelitmus.sh identify bad macros

Currently, judgelitmus.sh treats use of unknown primitives (such as
srcu_read_lock() prior to SRCU support) as "!!! Verification error".
This can be misleading because it fails to call out typos and running
a version LKMM on a litmus test requiring a feature not provided by
that version.  This commit therefore changes judgelitmus.sh to check
for unknown primitives and to report them, for example, with:

'!!! Current LKMM version does not know "rcu_write_lock"'.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/scripts/cmplitmushist.sh
tools/memory-model/scripts/judgelitmus.sh