tracing: Account bottom half disabled sections.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 13 Dec 2021 10:08:53 +0000 (11:08 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 13 Jan 2022 21:23:04 +0000 (16:23 -0500)
commit289e7b0f7eb47b87a0441e6c81336316f301eb39
tree48538debf71756dd4b53ceabde05da71bc63b440
parent86599dbe2c5272588f859858239d1f52321eb0f9
tracing: Account bottom half disabled sections.

Disabling only bottom halves via local_bh_disable() disables also
preemption but this remains invisible to tracing. On a CONFIG_PREEMPT
kernel one might wonder why there is no scheduling happening despite the
N flag in the trace. The reason might be the a rcu_read_lock_bh()
section.

Add a 'b' to the tracing output if in task context with disabled bottom
halves.

Link: https://lkml.kernel.org/r/YbcbtdtC/bjCKo57@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/trace_events.h
kernel/trace/trace.c
kernel/trace/trace_output.c