diff options
author | Joel Fernandes (Google) <joel@joelfernandes.org> | 2018-06-28 20:21:44 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-26 16:50:16 +0200 |
commit | 0b764a6e4e19dc254caca636002eaa47b1d0b0af (patch) | |
tree | 53ef602e29f6987ed13e629f2dcee617566adf5b /kernel/trace/trace_irqsoff.c | |
parent | srcu: Add notrace variants of srcu_read_{lock,unlock} (diff) | |
download | linux-0b764a6e4e19dc254caca636002eaa47b1d0b0af.tar.xz linux-0b764a6e4e19dc254caca636002eaa47b1d0b0af.zip |
srcu: Add notrace variant of srcu_dereference
In the last patch in this series, we are making lockdep register hooks
onto the irq_{disable,enable} tracepoints. These tracepoints use the
_rcuidle tracepoint variant. In this series we switch the _rcuidle
tracepoint callers to use SRCU instead of sched-RCU. Inorder to
dereference the pointer to the probe functions, we could call
srcu_dereference, however this API will call back into lockdep to check
if the lock is held *before* the lockdep probe hooks have a chance to
run and annotate the IRQ enabled/disabled state.
For this reason we need a notrace variant of srcu_dereference since
otherwise we get lockdep splats. This patch adds the needed
srcu_dereference_notrace variant.
Link: http://lkml.kernel.org/r/20180628182149.226164-3-joel@joelfernandes.org
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
0 files changed, 0 insertions, 0 deletions