diff options
| author | Namhyung Kim <[email protected]> | 2012-06-22 08:10:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-06-29 16:28:12 +0000 |
| commit | 600da3cfe19496485c5d8d52ff703590a0bd53f6 (patch) | |
| tree | 6c5dd5f1e4ce2d85b247024cbecfc75e3d3e606a /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | tools lib traceevent: Make dependency files regeneratable (diff) | |
| download | kernel-600da3cfe19496485c5d8d52ff703590a0bd53f6.tar.gz kernel-600da3cfe19496485c5d8d52ff703590a0bd53f6.zip | |
tools lib traceevent: Check string is really printable
When libtraceevent parses format fields, it assumes that array of 1 byte
is string but it's not always true. The kvm_emulate_insn contains 15 u8
array of insn that contains (binary) instructions. Thus when it's
printed, it'll have broken output like below:
kvm_emulate_insn: [FAILED TO PARSE] rip=3238197797 csbase=0 len=2 \
insn=<89>P^]<B4>& flags=5 failed=0
With this patch:
kvm_emulate_insn: [FAILED TO PARSE] rip=3238197797 csbase=0 len=2 \
insn=ARRAY[89, 10, 5d, c3, 8d, b4, 26, 00, 00, 00, 00, 55, 89, e5, 3e] flags=5 failed=0
Suggested-by: Steven Rostedt <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[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/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
