Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709950

[PATCH 0/1] perf script python: Garbled text in tracepoint fields

From Arun Kalyanasundaram <arunkaly@google.com>
Newsgroups linux.kernel
Subject [PATCH 0/1] perf script python: Garbled text in tracepoint fields
Date 2017-08-11 22:40 +0200
Message-ID <udoSR-86n-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/1] perf script python: Garbled text in tracepoint fields Arun Kalyanasundaram <arunkaly@google.com> - 2017-08-11 22:40 +0200
  [PATCH 1/1] perf script python: Garbled text in tracepoint fields Arun Kalyanasundaram <arunkaly@google.com> - 2017-08-11 22:40 +0200

csiph-web