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>
Wed, 1 Dec 2021 01:48:14 +0000 (17:48 -0800)
commit18af2d2321e68ab6b6bf6d472c0e74a220b1e768
tree22dd23eb648f164dd23173b9e701effcaaa33c6c
parentd63e457ffbc4b1bba55a70724659644b8f4b4c9a
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