lkml.org 
[lkml]   [2017]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/1] perf script python: Garbled text in tracepoint fields
Date
The string stored in some of the fields of tracepoint handlers has unused non-ascii characters beyond the first null ternimating character. As a result the call to is_printable_array fails and the python handlers receive the entire field as a byte array instead of just the subset of chars that represent the string.

This change calls is_printable_array with the correct length of the string instead of the entire field size.

Bug report: lkml/2017/7/18/228

Arun Kalyanasundaram (1):
perf script python: Garbled text in tracepoint fields

tools/perf/util/scripting-engines/trace-event-python.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

--
2.14.0.434.g98096fd7a8-goog

\
 
 \ /
  Last update: 2017-08-11 22:39    [W:0.035 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site