diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-23 14:51:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 15:55:20 -0500 |
commit | 2890284bcf5c13c10fae8a0c20ad2f575118a092 (patch) | |
tree | 0e4bebc7afcb7bab0fe8c6ec7ced9991ec5a48cd /tools | |
parent | cc612d8199089413719397c9d92e5823da578eac (diff) |
perf tools: Move graph_line and graph_dotted_line from top
So that they can be used in other tools.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1259005869-13487-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-top.c | 7 | ||||
-rw-r--r-- | tools/perf/util/ctype.c | 8 | ||||
-rw-r--r-- | tools/perf/util/util.h | 3 |
3 files changed, 11 insertions, 7 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index eef9caab6eee..6a5de90e9b83 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -80,13 +80,6 @@ static bool hide_kernel_symbols = false; | |||
80 | static bool hide_user_symbols = false; | 80 | static bool hide_user_symbols = false; |
81 | static struct winsize winsize; | 81 | static struct winsize winsize; |
82 | const char *vmlinux_name; | 82 | const char *vmlinux_name; |
83 | static const char *graph_line = | ||
84 | "_____________________________________________________________________" | ||
85 | "_____________________________________________________________________"; | ||
86 | static const char *graph_dotted_line = | ||
87 | "---------------------------------------------------------------------" | ||
88 | "---------------------------------------------------------------------" | ||
89 | "---------------------------------------------------------------------"; | ||
90 | 83 | ||
91 | /* | 84 | /* |
92 | * Source | 85 | * Source |
diff --git a/tools/perf/util/ctype.c b/tools/perf/util/ctype.c index 0b791bd346bc..35073621e5de 100644 --- a/tools/perf/util/ctype.c +++ b/tools/perf/util/ctype.c | |||
@@ -29,3 +29,11 @@ unsigned char sane_ctype[256] = { | |||
29 | A, A, A, A, A, A, A, A, A, A, A, R, R, P, P, 0, /* 112..127 */ | 29 | A, A, A, A, A, A, A, A, A, A, A, R, R, P, P, 0, /* 112..127 */ |
30 | /* Nothing in the 128.. range */ | 30 | /* Nothing in the 128.. range */ |
31 | }; | 31 | }; |
32 | |||
33 | const char *graph_line = | ||
34 | "_____________________________________________________________________" | ||
35 | "_____________________________________________________________________"; | ||
36 | const char *graph_dotted_line = | ||
37 | "---------------------------------------------------------------------" | ||
38 | "---------------------------------------------------------------------" | ||
39 | "---------------------------------------------------------------------"; | ||
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index f2203a0946bc..e1c623e0c99e 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -84,6 +84,9 @@ | |||
84 | #include <iconv.h> | 84 | #include <iconv.h> |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | extern const char *graph_line; | ||
88 | extern const char *graph_dotted_line; | ||
89 | |||
87 | /* On most systems <limits.h> would have given us this, but | 90 | /* On most systems <limits.h> would have given us this, but |
88 | * not on some systems (e.g. GNU/Hurd). | 91 | * not on some systems (e.g. GNU/Hurd). |
89 | */ | 92 | */ |