]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Fri, 9 Dec 2016 16:20:17 +0000 (21:50 +0530)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 12 Dec 2016 18:51:02 +0000 (13:51 -0500)
commitc59f29cb144a6a0dfac16ede9dc8eafc02dc56ca
tree54eb12f59132eea62dd2f71a9ddf3c56940d9aa1
parent1a41442864e35bff859582fe9c5d051d0b1040ba
tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results

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>
kernel/trace/trace.c