instrumented.h: Introduce read-write instrumentation hooks
authorMarco Elver <elver@google.com>
Fri, 24 Jul 2020 07:00:06 +0000 (09:00 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 24 Aug 2020 22:09:58 +0000 (15:09 -0700)
commit00047c2e6d7c576c1a847f7db07ef0fc58085f22
treedea69a945879dd10c9a9771fe308c1599cec155d
parentbec4a2474890a6884eb890c778ea02bccaaae6eb
instrumented.h: Introduce read-write instrumentation hooks

Introduce read-write instrumentation hooks, to more precisely denote an
operation's behaviour.

KCSAN is able to distinguish compound instrumentation, and with the new
instrumentation we then benefit from improved reporting. More
importantly, read-write compound operations should not implicitly be
treated as atomic, if they aren't actually atomic.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/instrumented.h