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, 2 Feb 2022 01:33:27 +0000 (17:33 -0800)
commit0e587a7042e48f22c7563a18db4e3f54299098e5
treea456a9bade9ca2ead15d20503ff8b1cf2ab9460e
parent77f5835170ae8fe3eddc1194f81f2f20a47881c6
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