tools/memory-model: Hardware checking for check{,all}litmus.sh
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 20 Mar 2019 19:39:27 +0000 (12:39 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Feb 2022 01:33:28 +0000 (17:33 -0800)
commitfa473d89d006bd57aa79b64fb4f6084bb2d5da87
tree92b366920101f2e149530c7f1afadac00891fd76
parentb1fe2d2a9f38eec4086cdc8f0cf301a88f1e1079
tools/memory-model: Hardware checking for check{,all}litmus.sh

This commit makes checklitmus.sh and checkalllitmus.sh check to see
if a hardware verification was specified (via the --hw command-line
argument, which sets the LKMM_HW_MAP_FILE environment variable).
If so, the C-language litmus test is converted to the specified type
of assembly-language litmus test and herd is run on it.  Hardware is
permitted to be stronger than LKMM requires, so "Always" and "Never"
verifications of "Sometimes" C-language litmus tests are forgiven.

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