The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] tracing: Remove outdated comment in stack handling
@ 2020-07-27  9:28 Vincent Whitchurch
  2020-07-27 20:52 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Whitchurch @ 2020-07-27  9:28 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar
  Cc: kernel, tglx, Vincent Whitchurch, linux-kernel

This comment describes the behaviour before commit 2a820bf74918
("tracing: Use percpu stack trace buffer more intelligently").  Since
that commit, interrupts and NMIs do use the per-cpu stacks so the
comment is no longer correct.  Remove it.

(Note that the FTRACE_STACK_SIZE mentioned in the comment has never
existed, it probably should have said FTRACE_STACK_ENTRIES.)

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
---
 kernel/trace/trace.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index bb62269724d5..0a0fd197888c 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2932,12 +2932,6 @@ static void __ftrace_trace_stack(struct trace_buffer *buffer,
 		skip++;
 #endif
 
-	/*
-	 * Since events can happen in NMIs there's no safe way to
-	 * use the per cpu ftrace_stacks. We reserve it and if an interrupt
-	 * or NMI comes in, it will just have to use the default
-	 * FTRACE_STACK_SIZE.
-	 */
 	preempt_disable_notrace();
 
 	stackidx = __this_cpu_inc_return(ftrace_stack_reserve) - 1;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tracing: Remove outdated comment in stack handling
  2020-07-27  9:28 [PATCH] tracing: Remove outdated comment in stack handling Vincent Whitchurch
@ 2020-07-27 20:52 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2020-07-27 20:52 UTC (permalink / raw)
  To: Vincent Whitchurch; +Cc: Ingo Molnar, kernel, tglx, linux-kernel

On Mon, 27 Jul 2020 11:28:40 +0200
Vincent Whitchurch <vincent.whitchurch@axis.com> wrote:

> This comment describes the behaviour before commit 2a820bf74918
> ("tracing: Use percpu stack trace buffer more intelligently").  Since
> that commit, interrupts and NMIs do use the per-cpu stacks so the
> comment is no longer correct.  Remove it.
> 

Thanks, I'll queue this up for the next merge window.

-- Steve

> (Note that the FTRACE_STACK_SIZE mentioned in the comment has never
> existed, it probably should have said FTRACE_STACK_ENTRIES.)
> 
> Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
> ---

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-27 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-27  9:28 [PATCH] tracing: Remove outdated comment in stack handling Vincent Whitchurch
2020-07-27 20:52 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox