diff options
author | 2021-06-07 14:56:50 +0200 | |
---|---|---|
committer | 2021-07-20 13:49:43 -0700 | |
commit | 08cac6049412061e571fadadc3e23464dc46d0f2 (patch) | |
tree | 8ca18f66e25e65833db18c6b3425f6d4b8daa677 /Documentation/dev-tools | |
parent | kcsan: Introduce CONFIG_KCSAN_STRICT (diff) | |
download | linux-08cac6049412061e571fadadc3e23464dc46d0f2.tar.gz linux-08cac6049412061e571fadadc3e23464dc46d0f2.tar.bz2 linux-08cac6049412061e571fadadc3e23464dc46d0f2.zip |
kcsan: Reduce get_ctx() uses in kcsan_found_watchpoint()
There are a number get_ctx() calls that are close to each other, which
results in poor codegen (repeated preempt_count loads).
Specifically in kcsan_found_watchpoint() (even though it's a slow-path)
it is beneficial to keep the race-window small until the watchpoint has
actually been consumed to avoid missed opportunities to report a race.
Let's clean it up a bit before we add more code in
kcsan_found_watchpoint().
Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Documentation/dev-tools')
0 files changed, 0 insertions, 0 deletions