-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/memory-model: Implement --hw support for checkghlitmus.sh
This commits enables the "--hw" argument for the checkghlitmus.sh script, causing it to convert any applicable C-language litmus tests to the specified flavor of assembly language, to verify these assembly-language litmus tests, and checking compatibility of the outcomes. Note that the conversion does not yet handle locking, RCU, SRCU, plain C-language memory accesses, or casts. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
- Loading branch information
Paul E. McKenney
committed
Mar 24, 2023
1 parent
d9313e0
commit 69d476c
Showing
3 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: GPL-2.0+ | ||
# | ||
# Generate the hardware extension to the litmus-test filename, or the | ||
# empty string if this is an LKMM run. The extension is placed in | ||
# the shell variable hwfnseg. | ||
# | ||
# Usage: | ||
# . hwfnseg.sh | ||
# | ||
# Copyright IBM Corporation, 2019 | ||
# | ||
# Author: Paul E. McKenney <paulmck@linux.ibm.com> | ||
|
||
if test -z "$LKMM_HW_MAP_FILE" | ||
then | ||
hwfnseg= | ||
else | ||
hwfnseg=".$LKMM_HW_MAP_FILE" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters