tracing, hardirq: No moar _rcuidle() tracing
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Jan 2023 19:43:49 +0000 (20:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jan 2023 10:48:16 +0000 (11:48 +0100)
commit9aedeaed6fc6fe8452b9b8225e95cc2b8631ff91
treef25b3cdfd0811971a800db9cf2836042e1d38d4c
parent408b961146be4c1a776ce285c3c289afab15298a
tracing, hardirq: No moar _rcuidle() tracing

Robot reported that trace_hardirqs_{on,off}() tickle the forbidden
_rcuidle() tracepoint through local_irq_{en,dis}able().

For 'sane' configs, these calls will only happen with RCU enabled and
as such can use the regular tracepoint. This also means it's possible
to trace them from NMI context again.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230112195541.477416709@infradead.org
kernel/trace/trace_preemptirq.c