summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.c
diff options
context:
space:
mode:
authorJiri Olsa2016-07-16 18:11:18 +0200
committerArnaldo Carvalho de Melo2016-07-19 00:48:04 +0200
commit249de6e074580988d3ee4902236803098e2cda4c (patch)
tree05febc54f0086c078d723c719eb65bbecf3303a2 /tools/perf/util/util.c
parentperf probe: Warn unmatched function filter correctly (diff)
downloadkernel-qcow2-linux-249de6e074580988d3ee4902236803098e2cda4c.tar.gz
kernel-qcow2-linux-249de6e074580988d3ee4902236803098e2cda4c.tar.xz
kernel-qcow2-linux-249de6e074580988d3ee4902236803098e2cda4c.zip
perf script python: Fix string vs byte array resolving
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. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Reported-and-Tested-by: Jiri Pirko <jiri@mellanox.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1468685480-18951-2-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/util.c')
0 files changed, 0 insertions, 0 deletions