]> asedeno.scripts.mit.edu Git - linux.git/commit
tools/memory-model: Add scripts to test memory model
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 14 May 2018 23:33:47 +0000 (16:33 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 15 May 2018 06:11:17 +0000 (08:11 +0200)
commit2fb6ae162f25a9c3bc45663c479a2b15fb69e768
tree202d79d80b7564799b2aa574a808916f7fa70495
parentd17013e0bac66bb4d1be44f061754c7e53292b64
tools/memory-model: Add scripts to test memory model

This commit adds a pair of scripts that run the memory model on litmus
tests, checking that the verification result of each litmus test matches
the result flagged in the litmus test itself.  These scripts permit easier
checking of changes to the memory model against preconceived notions.

To run the scripts, go to the tools/memory-model directory and type
"scripts/checkalllitmus.sh".  If all is well, the last line printed will
be "All litmus tests verified as was expected."

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: akiyks@gmail.com
Cc: boqun.feng@gmail.com
Cc: dhowells@redhat.com
Cc: j.alglave@ucl.ac.uk
Cc: linux-arch@vger.kernel.org
Cc: luc.maranget@inria.fr
Cc: npiggin@gmail.com
Cc: parri.andrea@gmail.com
Cc: stern@rowland.harvard.edu
Link: http://lkml.kernel.org/r/1526340837-12222-9-git-send-email-paulmck@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/memory-model/litmus-tests/.gitignore [new file with mode: 0644]
tools/memory-model/scripts/checkalllitmus.sh [new file with mode: 0644]
tools/memory-model/scripts/checklitmus.sh [new file with mode: 0644]