Re: [PATCH 1/3] perf script python: Fix string vs byte array resolving
From: Steven Rostedt
Date: Fri Jul 15 2016 - 11:30:23 EST
On Fri, 15 Jul 2016 09:29:55 +0200
Jiri Olsa <jolsa@xxxxxxxxxx> 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>
> Link: http://lkml.kernel.org/n/tip-22f4vhhz5uytegkggy1on8u3@xxxxxxxxxxxxxx
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
> ---
Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
-- Steve