public inbox for linux-trace-devel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trace-cmd report: add spacing before raw data flags
@ 2026-04-06 15:32 CaoRuichuang
  2026-04-06 16:36 ` Steven Rostedt
  2026-04-06 16:53 ` [PATCH v2] trace-cmd report: Add " Cao Ruichuang
  0 siblings, 2 replies; 3+ messages in thread
From: CaoRuichuang @ 2026-04-06 15:32 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: rostedt, tz.stoyanov

Signed-off-by: CaoRuichuang <create0818@163.com>
---
 tracecmd/trace-read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c
index 355ee0f4..962ebd89 100644
--- a/tracecmd/trace-read.c
+++ b/tracecmd/trace-read.c
@@ -871,7 +871,7 @@ void trace_show_data(struct tracecmd_input *handle, struct tep_record *record)
 			TEP_PRINT_CPU);
 
 	if (raw_format)
-		trace_seq_printf(&s, "-0x%x",
+		trace_seq_printf(&s, " -0x%x",
 				 tep_data_flags(pevent, record));
 	else
 		tep_print_event(pevent, &s, record,
-- 
2.39.5 (Apple Git-154)


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

* Re: [PATCH] trace-cmd report: add spacing before raw data flags
  2026-04-06 15:32 [PATCH] trace-cmd report: add spacing before raw data flags CaoRuichuang
@ 2026-04-06 16:36 ` Steven Rostedt
  2026-04-06 16:53 ` [PATCH v2] trace-cmd report: Add " Cao Ruichuang
  1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-04-06 16:36 UTC (permalink / raw)
  To: CaoRuichuang; +Cc: linux-trace-devel, tz.stoyanov


Hi!

Thanks for all the updates. I really do appreciate it. But some notes about
patches.

The subjects follow the Linux kernel tracing subsystem approach of starting
with a capital letter:

  trace-cmd report: Add spacing before raw data flags


On Mon,  6 Apr 2026 23:32:21 +0800
CaoRuichuang <create0818@163.com> wrote:

BTW, is CaoRuichuang your official name? As in one word. The DCO requires
real names, so I have to ask.

Also, even for small changes like this, please add content in the change
log body. The subject is about what is being done, but the change log body
is "why" it is being done. Here you explain "why" spacing is added before
raw data flags.

Thanks!

-- Steve


> Signed-off-by: CaoRuichuang <create0818@163.com>
> ---
>  tracecmd/trace-read.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c
> index 355ee0f4..962ebd89 100644
> --- a/tracecmd/trace-read.c
> +++ b/tracecmd/trace-read.c
> @@ -871,7 +871,7 @@ void trace_show_data(struct tracecmd_input *handle, struct tep_record *record)
>  			TEP_PRINT_CPU);
>  
>  	if (raw_format)
> -		trace_seq_printf(&s, "-0x%x",
> +		trace_seq_printf(&s, " -0x%x",
>  				 tep_data_flags(pevent, record));
>  	else
>  		tep_print_event(pevent, &s, record,


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

* [PATCH v2] trace-cmd report: Add spacing before raw data flags
  2026-04-06 15:32 [PATCH] trace-cmd report: add spacing before raw data flags CaoRuichuang
  2026-04-06 16:36 ` Steven Rostedt
@ 2026-04-06 16:53 ` Cao Ruichuang
  1 sibling, 0 replies; 3+ messages in thread
From: Cao Ruichuang @ 2026-04-06 16:53 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel

In raw report mode, the CPU field is followed immediately by the
raw data flags. Without a separator, the flags get glued to the
closing CPU bracket and the output becomes hard to parse visually.

Add a leading space before the raw flag field so the raw report
output keeps the same field separation that the non-raw path already
has.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=221303
Signed-off-by: Cao Ruichuang <create0818@163.com>
---
 tracecmd/trace-read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c
index 355ee0f4..962ebd89 100644
--- a/tracecmd/trace-read.c
+++ b/tracecmd/trace-read.c
@@ -871,7 +871,7 @@ void trace_show_data(struct tracecmd_input *handle, struct tep_record *record)
 			TEP_PRINT_CPU);
 
 	if (raw_format)
-		trace_seq_printf(&s, "-0x%x",
+		trace_seq_printf(&s, " -0x%x",
 				 tep_data_flags(pevent, record));
 	else
 		tep_print_event(pevent, &s, record,
-- 
2.39.5 (Apple Git-154)


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

end of thread, other threads:[~2026-04-06 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-06 15:32 [PATCH] trace-cmd report: add spacing before raw data flags CaoRuichuang
2026-04-06 16:36 ` Steven Rostedt
2026-04-06 16:53 ` [PATCH v2] trace-cmd report: Add " Cao Ruichuang

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