diff options
author | 2020-11-05 13:20:56 -0800 | |
---|---|---|
committer | 2020-11-06 17:25:16 -0800 | |
commit | 1947bfcf81a905e84a58b423063e81034a90efed (patch) | |
tree | bea33fb0fa3ca7f74d7e86437c756149d233da21 /tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus | |
parent | tools/memory-model: Add a glossary of LKMM terms (diff) | |
download | linux-1947bfcf81a905e84a58b423063e81034a90efed.tar.gz linux-1947bfcf81a905e84a58b423063e81034a90efed.tar.bz2 linux-1947bfcf81a905e84a58b423063e81034a90efed.zip |
tools/memory-model: Add types to litmus tests
This commit adds type information for global variables in the litmus
tests in order to allow easier use with klitmus7.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus')
-rw-r--r-- | tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus b/tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus index 094d58df7789..398f624daa77 100644 --- a/tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus +++ b/tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus @@ -7,7 +7,12 @@ C ISA2+pooncelock+pooncelock+pombonce * (in P0() and P1()) is visible to external process P2(). *) -{} +{ + spinlock_t mylock; + int x; + int y; + int z; +} P0(int *x, int *y, spinlock_t *mylock) { |