aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <[email protected]>2013-11-01 17:53:58 -0400
committerArnaldo Carvalho de Melo <[email protected]>2013-11-04 14:35:54 -0300
commit5efb9fbd5f1bfe4435bd0a3ea5f0e187875509c2 (patch)
tree2bc13ecdaeab05e35dc4f8e5c2df8127802111b1 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent0883d9d730fc294c3d90ebd190b94e5782ead316 (diff)
tools lib traceevent: Check for spaces in character array
Currently when using the raw format for fields, when looking at a character array, to determine if it is a string or not, we make sure all characters are "isprint()". If not, then we consider it a numeric array, and print the hex numbers of the characters instead. But it seems that '\n' fails the isprint() check! Add isspace() to the check as well, such that if all characters pass isprint() or isspace() it will assume the character array is a string. Reported-by: Xenia Ragiadakou <[email protected]> Signed-off-by: Steven Rostedt <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Xenia Ragiadakou <[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/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions