]> Gentwo Git Trees - linux/.git/commit
tools/memory-model: Distinguish between syntactic and semantic tags
authorJonas Oberhauser <jonas.oberhauser@huaweicloud.com>
Tue, 5 Nov 2024 16:48:58 +0000 (17:48 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2025 15:40:23 +0000 (07:40 -0800)
commitde3ac915f986e6ecc1c219584797c196ff6d1fa2
tree5d80596a076d2ae57667a43e6b95c349f97758da
parent0e618582d38910a6a3f9b7524d7d39282dddea65
tools/memory-model: Distinguish between syntactic and semantic tags

Not all annotated accesses provide the semantics their syntactic tags
would imply. For example, an 'acquire tag on a write does not imply that
the write is finally in the Acquire set and provides acquire ordering.

To distinguish in those cases between the syntactic tags and actual
sets, we capitalize the former, so 'ACQUIRE tags may be present on both
reads and writes, but only reads will appear in the Acquire set.

For tags where the two concepts are the same we do not use specific
capitalization to make this distinction.

Reported-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Jonas Oberhauser <jonas.oberhauser@huaweicloud.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Tested-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/Documentation/herd-representation.txt
tools/memory-model/linux-kernel.bell
tools/memory-model/linux-kernel.def