aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-18 03:44:20 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-18 03:46:00 -0400
commita73c7d84a1975b44c0ebd03c2dec288af1426349 (patch)
tree34f6f154ec63b04e75148cc022d8a18198857d33 /tools/perf/builtin-report.c
parent7522060c95395f479ee4a6af3bbf9e097e92e48f (diff)
perf_counter tools: Add and use isprint()
Introduce isprint() to print out raw event dumps to ASCII, etc. (This is an extension to upstream Git's ctype.c.) Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> [ removed openssl.h inclusion from util.h - it leaked ctype.h ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index e14e98676171..9a3805f0c9f2 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -1285,7 +1285,7 @@ static void trace_event(event_t *event)
1285 for (j = 0; j < 15-(i & 15); j++) 1285 for (j = 0; j < 15-(i & 15); j++)
1286 cdprintf(" "); 1286 cdprintf(" ");
1287 for (j = 0; j < (i & 15); j++) { 1287 for (j = 0; j < (i & 15); j++) {
1288 if (issane(raw_event[i-15+j])) 1288 if (isprint(raw_event[i-15+j]))
1289 cdprintf("%c", raw_event[i-15+j]); 1289 cdprintf("%c", raw_event[i-15+j]);
1290 else 1290 else
1291 cdprintf("."); 1291 cdprintf(".");