All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libtraceevent: Handle %c
@ 2023-05-08 22:41 David Ahern
  2023-05-29  8:50 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: David Ahern @ 2023-05-08 22:41 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel, David Ahern

Use of %c in tracepoints is throwing off the argument order when printing
event data via perf. Handle '%c' in parse_arg_format.

Signed-off-by: David Ahern <dsahern@kernel.org>
---
 src/event-parse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/event-parse.c b/src/event-parse.c
index acf7fde4ead9..12c6f560019b 100644
--- a/src/event-parse.c
+++ b/src/event-parse.c
@@ -6486,6 +6486,7 @@ static int parse_arg_format(struct tep_print_parse **parse,
 			*arg = (*arg)->next;
 			ret++;
 			return ret;
+		case 'c':
 		case 'd':
 		case 'u':
 		case 'i':
-- 
2.25.1


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

* Re: [PATCH] libtraceevent: Handle %c
  2023-05-08 22:41 [PATCH] libtraceevent: Handle %c David Ahern
@ 2023-05-29  8:50 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2023-05-29  8:50 UTC (permalink / raw)
  To: David Ahern; +Cc: linux-trace-devel

On Mon,  8 May 2023 16:41:21 -0600
David Ahern <dsahern@kernel.org> wrote:

> Use of %c in tracepoints is throwing off the argument order when printing
> event data via perf. Handle '%c' in parse_arg_format.
> 
> Signed-off-by: David Ahern <dsahern@kernel.org>

Applied, Thanks David!

-- Steve

> ---
>  src/event-parse.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/event-parse.c b/src/event-parse.c
> index acf7fde4ead9..12c6f560019b 100644
> --- a/src/event-parse.c
> +++ b/src/event-parse.c
> @@ -6486,6 +6486,7 @@ static int parse_arg_format(struct tep_print_parse **parse,
>  			*arg = (*arg)->next;
>  			ret++;
>  			return ret;
> +		case 'c':
>  		case 'd':
>  		case 'u':
>  		case 'i':


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

end of thread, other threads:[~2023-05-29  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 22:41 [PATCH] libtraceevent: Handle %c David Ahern
2023-05-29  8:50 ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.