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>
Fri, 24 Mar 2023 17:24:14 +0000 (10:24 -0700)
commit579ecb2e4108af3689b1b814fff23f6a69907dab
treee79d566885fd4b9c3473209c03cf543260e98953
parente029374ba8483e1c59243a70bf0926f0ca8f54e2
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