tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results
commit04e002a5f681590d4b3d9aceb4aeb5526ce162e6
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Fri, 9 Dec 2016 16:20:17 +0000 (9 21:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:42:24 +0000 (21 07:42 +0200)
tree9c4873227ff5d447234980a7accf741a32ed6661
parentcc7d3b7dd1ac43bf4643d6d3e924f4b9f0e8da05
tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results

commit c59f29cb144a6a0dfac16ede9dc8eafc02dc56ca upstream.

The 's' flag is supposed to indicate that a softirq is running. This
can be detected by testing the preempt_count with SOFTIRQ_OFFSET.

The current code tests the preempt_count with SOFTIRQ_MASK, which
would be true even when softirqs are disabled but not serving a
softirq.

Link: http://lkml.kernel.org/r/1481300417-3564-1-git-send-email-pkondeti@codeaurora.org
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c