author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | |
Wed, 25 May 2016 12:03:50 +0000 (14:03 +0200) | ||
committer | Steven Rostedt <rostedt@goodmis.org> | |
Tue, 12 Jul 2016 20:59:14 +0000 (16:59 -0400) | ||
commit | a1b4b8536326b273760cd57c9cf1410be86eec5e | |
tree | 8553124ae59e12cf161e98383b28716ef3c4d3b0 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4e89f821c2a7b72e998e3213975cc29059be5822 | commit | diff |
trace: correct off by one while recording the trace-event
Trace events like raw_syscalls show always a preempt code of one. The
reason is that on PREEMPT kernels rcu_read_lock_sched_notrace()
increases the preemption counter and the function recording the counter
is caller within the RCU section.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[ Changed this to upstream version. See commit e947841c0dce ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Trace events like raw_syscalls show always a preempt code of one. The
reason is that on PREEMPT kernels rcu_read_lock_sched_notrace()
increases the preemption counter and the function recording the counter
is caller within the RCU section.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[ Changed this to upstream version. See commit e947841c0dce ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c | diff | blob | history |