linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tracing: Fix number of entries in trace header
@ 2019-02-14 15:01 Quentin Perret
  2019-02-14 15:12 ` Joel Fernandes
  2019-02-14 15:29 ` [PATCH v2] " Quentin Perret
  0 siblings, 2 replies; 5+ messages in thread
From: Quentin Perret @ 2019-02-14 15:01 UTC (permalink / raw)
  To: rostedt, mingo
  Cc: linux-kernel, joelaf, smuckle, dietmar.eggemann, quentin.perret

The following commit

  441dae8f2f29 ("tracing: Add support for display of tgid in trace output")

removed the call to print_event_info() from print_func_help_header_irq()
which results in the ftrace header not reporting the number of entries
written in the buffer. As this wasn't the original intent of the patch,
re-introduce the call to print_event_info() to restore the orginal
behaviour.

Signed-off-by: Quentin Perret <quentin.perret@arm.com>
---
 kernel/trace/trace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index c521b7347482..c4238b441624 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3384,6 +3384,8 @@ static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file
 	const char tgid_space[] = "          ";
 	const char space[] = "  ";
 
+	print_event_info(buf, m);
+
 	seq_printf(m, "#                          %s  _-----=> irqs-off\n",
 		   tgid ? tgid_space : space);
 	seq_printf(m, "#                          %s / _----=> need-resched\n",
-- 
2.20.1


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

* Re: [PATCH] tracing: Fix number of entries in trace header
  2019-02-14 15:01 [PATCH] tracing: Fix number of entries in trace header Quentin Perret
@ 2019-02-14 15:12 ` Joel Fernandes
  2019-02-14 15:16   ` Quentin Perret
  2019-02-14 15:29 ` [PATCH v2] " Quentin Perret
  1 sibling, 1 reply; 5+ messages in thread
From: Joel Fernandes @ 2019-02-14 15:12 UTC (permalink / raw)
  To: Quentin Perret
  Cc: Steven Rostedt, Ingo Molnar, LKML, Steve Muckle, Dietmar Eggemann

On Thu, Feb 14, 2019 at 10:01 AM Quentin Perret <quentin.perret@arm.com> wrote:
>
> The following commit
>
>   441dae8f2f29 ("tracing: Add support for display of tgid in trace output")
>
> removed the call to print_event_info() from print_func_help_header_irq()
> which results in the ftrace header not reporting the number of entries
> written in the buffer. As this wasn't the original intent of the patch,
> re-introduce the call to print_event_info() to restore the orginal
> behaviour.

Needs a "Fixes:" tag, and a CC to stable.

Acked-by: Joel Fernandes <joelaf@google.com>

Thanks a lot Quentin!

 - Joel

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

* Re: [PATCH] tracing: Fix number of entries in trace header
  2019-02-14 15:12 ` Joel Fernandes
@ 2019-02-14 15:16   ` Quentin Perret
  0 siblings, 0 replies; 5+ messages in thread
From: Quentin Perret @ 2019-02-14 15:16 UTC (permalink / raw)
  To: Joel Fernandes
  Cc: Steven Rostedt, Ingo Molnar, LKML, Steve Muckle, Dietmar Eggemann

On Thursday 14 Feb 2019 at 10:12:52 (-0500), Joel Fernandes wrote:
> On Thu, Feb 14, 2019 at 10:01 AM Quentin Perret <quentin.perret@arm.com> wrote:
> >
> > The following commit
> >
> >   441dae8f2f29 ("tracing: Add support for display of tgid in trace output")
> >
> > removed the call to print_event_info() from print_func_help_header_irq()
> > which results in the ftrace header not reporting the number of entries
> > written in the buffer. As this wasn't the original intent of the patch,
> > re-introduce the call to print_event_info() to restore the orginal
> > behaviour.
> 
> Needs a "Fixes:" tag, and a CC to stable.

Hrmpf, good point, I always forget those, sorry about that :/
I'll send a v2 shortly.

> Acked-by: Joel Fernandes <joelaf@google.com>

Thanks !
Quentin

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

* [PATCH v2] tracing: Fix number of entries in trace header
  2019-02-14 15:01 [PATCH] tracing: Fix number of entries in trace header Quentin Perret
  2019-02-14 15:12 ` Joel Fernandes
@ 2019-02-14 15:29 ` Quentin Perret
  2019-02-14 16:28   ` Steven Rostedt
  1 sibling, 1 reply; 5+ messages in thread
From: Quentin Perret @ 2019-02-14 15:29 UTC (permalink / raw)
  To: rostedt, mingo
  Cc: linux-kernel, joelaf, smuckle, dietmar.eggemann, quentin.perret

The following commit

  441dae8f2f29 ("tracing: Add support for display of tgid in trace output")

removed the call to print_event_info() from print_func_help_header_irq()
which results in the ftrace header not reporting the number of entries
written in the buffer. As this wasn't the original intent of the patch,
re-introduce the call to print_event_info() to restore the orginal
behaviour.

Fixes: 441dae8f2f29 ("tracing: Add support for display of tgid in trace output")
Cc: 4.13+ <stable@vger.kernel.org> # v4.13+
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
Acked-by: Joel Fernandes <joelaf@google.com>
---
 kernel/trace/trace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index c521b7347482..c4238b441624 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3384,6 +3384,8 @@ static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file
 	const char tgid_space[] = "          ";
 	const char space[] = "  ";
 
+	print_event_info(buf, m);
+
 	seq_printf(m, "#                          %s  _-----=> irqs-off\n",
 		   tgid ? tgid_space : space);
 	seq_printf(m, "#                          %s / _----=> need-resched\n",
-- 
2.20.1


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

* Re: [PATCH v2] tracing: Fix number of entries in trace header
  2019-02-14 15:29 ` [PATCH v2] " Quentin Perret
@ 2019-02-14 16:28   ` Steven Rostedt
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Rostedt @ 2019-02-14 16:28 UTC (permalink / raw)
  To: Quentin Perret; +Cc: mingo, linux-kernel, joelaf, smuckle, dietmar.eggemann

On Thu, 14 Feb 2019 15:29:50 +0000
Quentin Perret <quentin.perret@arm.com> wrote:

> The following commit
> 
>   441dae8f2f29 ("tracing: Add support for display of tgid in trace output")

Thanks, I'll take a look at this.

> 
> removed the call to print_event_info() from print_func_help_header_irq()
> which results in the ftrace header not reporting the number of entries
> written in the buffer. As this wasn't the original intent of the patch,
> re-introduce the call to print_event_info() to restore the orginal
> behaviour.
> 
> Fixes: 441dae8f2f29 ("tracing: Add support for display of tgid in trace output")
> Cc: 4.13+ <stable@vger.kernel.org> # v4.13+

Note, with the "Fixes:" tag, adding the version number is obsolete. Just

Cc: stable@vger.kernel.org

is sufficient.

-- Steve

> Signed-off-by: Quentin Perret <quentin.perret@arm.com>
> Acked-by: Joel Fernandes <joelaf@google.com>
> ---
>  kernel/trace/trace.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index c521b7347482..c4238b441624 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -3384,6 +3384,8 @@ static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file
>  	const char tgid_space[] = "          ";
>  	const char space[] = "  ";
>  
> +	print_event_info(buf, m);
> +
>  	seq_printf(m, "#                          %s  _-----=> irqs-off\n",
>  		   tgid ? tgid_space : space);
>  	seq_printf(m, "#                          %s / _----=> need-resched\n",


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

end of thread, other threads:[~2019-02-14 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 15:01 [PATCH] tracing: Fix number of entries in trace header Quentin Perret
2019-02-14 15:12 ` Joel Fernandes
2019-02-14 15:16   ` Quentin Perret
2019-02-14 15:29 ` [PATCH v2] " Quentin Perret
2019-02-14 16:28   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).