Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/memory-model: Define applicable tags on operation in tools/...

Herd7 transforms reads, writes, and read-modify-writes by eliminating
'acquire tags from writes, 'release tags from reads, and 'acquire,
'release, and 'mb tags from failed read-modify-writes. We emulate this
behavior by redefining Acquire, Release, and Mb sets in linux-kernel.bell
to explicitly exclude those combinations.

Herd7 furthermore adds 'noreturn tag to certain reads. Currently herd7
does not allow specifying the 'noreturn tag manually, but such manual
declaration (e.g., through a syntax __atomic_op{noreturn}) would add
invalid 'noreturn tags to writes; in preparation, we already also exclude
this combination.

Signed-off-by: Jonas Oberhauser <jonas.oberhauser@huaweicloud.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Tested-by: Boqun Feng <boqun.feng@gmail.com>

authored by

Jonas Oberhauser and committed by
Paul E. McKenney
723177d7 de6f9972

+11
+11
tools/memory-model/linux-kernel.bell
··· 36 36 'after-srcu-read-unlock (*smp_mb__after_srcu_read_unlock*) 37 37 instructions F[Barriers] 38 38 39 + 40 + (* 41 + * Filter out syntactic annotations that do not provide the corresponding 42 + * semantic ordering, such as Acquire on a store or Mb on a failed RMW. 43 + *) 44 + let FailedRMW = RMW \ (domain(rmw) | range(rmw)) 45 + let Acquire = Acquire \ W \ FailedRMW 46 + let Release = Release \ R \ FailedRMW 47 + let Mb = Mb \ FailedRMW 48 + let Noreturn = Noreturn \ W 49 + 39 50 (* SRCU *) 40 51 enum SRCU = 'srcu-lock || 'srcu-unlock || 'sync-srcu 41 52 instructions SRCU[SRCU]