diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-11-05 13:39:28 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-11-06 17:25:17 -0800 |
commit | b6ff30849ca723b78306514246b98ca5645d92f5 (patch) | |
tree | b4110e2cd58cfd0988663fded8e780aae8ba8e47 /tools/memory-model/litmus-tests/MP+porevlocks.litmus | |
parent | tools/memory-model: Use "buf" and "flag" for message-passing tests (diff) | |
download | wireguard-linux-b6ff30849ca723b78306514246b98ca5645d92f5.tar.xz wireguard-linux-b6ff30849ca723b78306514246b98ca5645d92f5.zip |
tools/memory-model: Label MP tests' producers and consumers
This commit adds comments that label the MP tests' producer and consumer
processes, and also that label the "exists" clause as the bad outcome.
Reported-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/memory-model/litmus-tests/MP+porevlocks.litmus')
-rw-r--r-- | tools/memory-model/litmus-tests/MP+porevlocks.litmus | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/memory-model/litmus-tests/MP+porevlocks.litmus b/tools/memory-model/litmus-tests/MP+porevlocks.litmus index 9691d55b4e21..012041bd4feb 100644 --- a/tools/memory-model/litmus-tests/MP+porevlocks.litmus +++ b/tools/memory-model/litmus-tests/MP+porevlocks.litmus @@ -17,7 +17,7 @@ C MP+porevlocks int flag; } -P0(int *buf, int *flag, spinlock_t *mylock) +P0(int *buf, int *flag, spinlock_t *mylock) // Consumer { int r0; int r1; @@ -28,7 +28,7 @@ P0(int *buf, int *flag, spinlock_t *mylock) spin_unlock(mylock); } -P1(int *buf, int *flag, spinlock_t *mylock) +P1(int *buf, int *flag, spinlock_t *mylock) // Producer { spin_lock(mylock); WRITE_ONCE(*buf, 1); @@ -36,4 +36,4 @@ P1(int *buf, int *flag, spinlock_t *mylock) WRITE_ONCE(*flag, 1); } -exists (0:r0=1 /\ 0:r1=0) +exists (0:r0=1 /\ 0:r1=0) (* Bad outcome. *) |