]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep,trace: Expose tracepoints
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Aug 2020 18:53:16 +0000 (20:53 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 Aug 2020 10:41:56 +0000 (12:41 +0200)
commita4d6933758e081791491c3fce39a211196491870
tree4923e5e3564921099b83b1f791e83507175c59ef
parent3ad1b03e1e0a82ad4837d26f6a32f94ff35f4f08
lockdep,trace: Expose tracepoints

The lockdep tracepoints are under the lockdep recursion counter, this
has a bunch of nasty side effects:

 - TRACE_IRQFLAGS doesn't work across the entire tracepoint

 - RCU-lockdep doesn't see the tracepoints either, hiding numerous
   "suspicious RCU usage" warnings.

Pull the trace_lock_*() tracepoints completely out from under the
lockdep recursion handling and completely rely on the trace level
recusion handling -- also, tracing *SHOULD* not be taking locks in any
case.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Marco Elver <elver@google.com>
Link: https://lkml.kernel.org/r/20200821085348.782688941@infradead.org
kernel/locking/lockdep.c