diff options
| author | 2025-11-05 12:32:07 -0800 | |
|---|---|---|
| committer | 2025-11-05 23:58:26 +0100 | |
| commit | 8235bcfd39e865763e764b4c968012bdfb808af1 (patch) | |
| tree | d5cc386a73733b193787880d1225885fe2996ab2 /tools/perf/scripts/python/stackcollapse.py | |
| parent | rcutorture: Exercise DEFINE_STATIC_SRCU_FAST() and init_srcu_struct_fast() (diff) | |
srcu: Require special srcu_struct define/init for SRCU-fast readers
This commit adds CONFIG_PROVE_RCU=y checking to enforce the new rule that
srcu_struct structures passed to srcu_read_lock_fast() and other SRCU-fast
read-side markers be either initialized with init_srcu_struct_fast()
on the one hand or defined using either DEFINE_SRCU_FAST() or
DEFINE_STATIC_SRCU_FAST(). This will enable removal of the non-debug
read-side checks from srcu_read_lock_fast() and friends, which on my
laptop provides a 25% speedup (which admittedly amounts to about half
a nanosecond, but when tracing fastpaths...)
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
