aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2016-07-16 18:11:18 +0200
committerArnaldo Carvalho de Melo <[email protected]>2016-07-18 19:48:04 -0300
commit249de6e074580988d3ee4902236803098e2cda4c (patch)
tree05febc54f0086c078d723c719eb65bbecf3303a2 /tools/perf/scripts/python/export-to-postgresql.py
parente70493429bb1acaad829caae01c61dd7056fe671 (diff)
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 <[email protected]> Reported-and-Tested-by: Jiri Pirko <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions