diff options
author | Frederic Weisbecker <[email protected]> | 2020-11-12 01:51:21 +0100 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2021-03-08 14:20:20 -0800 |
commit | 3820b513a2e33d6dee1caa3b4815f92079cb9890 (patch) | |
tree | 2f33e76d0b43ea20841c991d3717687a5c699486 /tools/perf/util/trace-event-scripting.c | |
parent | a38fd8748464831584a19438cbb3082b5a2dab15 (diff) |
rcu/nocb: Detect unsafe checks for offloaded rdp
Provide CONFIG_PROVE_RCU sanity checks to ensure we are always reading
the offloaded state of an rdp in a safe and stable way and prevent from
its value to be changed under us. We must either hold the barrier mutex,
the cpu-hotplug lock (read or write) or the nocb lock.
Local non-preemptible reads are also safe. NOCB kthreads and timers have
their own means of synchronization against the offloaded state updaters.
Cc: Josh Triplett <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Joel Fernandes <[email protected]>
Cc: Neeraj Upadhyay <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Boqun Feng <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions