Re: [PATCH 1/3] perf script python: Fix string vs byte array resolving

From: Jiri Olsa
Date: Fri Jul 15 2016 - 03:32:37 EST


On Fri, Jul 15, 2016 at 09:29:55AM +0200, Jiri Olsa wrote:
> Jirka reported that python code returns all arrays as strings.
> This makes impossible to get all items for byte array tracepoint
> field containing 0x00 value item.
>
> Fixing this by scanning full length of the array and returning
> it as PyByteArray object in case non printable byte is found.
>
> Cc: Steven Rostedt (Red Hat) <rostedt@xxxxxxxxxxx>
> Cc: Jiri Pirko <jiri@xxxxxxxxxxxx>

forgot:

Reported-by: Jiri Pirko <jiri@xxxxxxxxxxxx>

Jirka,
could I please also have your tested-by on this version?

thanks,
jirka