perf tools: Move graph_line and graph_dotted_line from top
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Nov 2009 19:51:08 +0000 (17:51 -0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 20:55:20 +0000 (21:55 +0100)
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>
tools/perf/builtin-top.c
tools/perf/util/ctype.c
tools/perf/util/util.h

index eef9caab6eee67d11999831567d4fc4c86e9686d..6a5de90e9b83ea2b3df9e34ec56d2dd751551028 100644 (file)
@@ -80,13 +80,6 @@ static bool                  hide_kernel_symbols             =  false;
 static bool                    hide_user_symbols               =  false;
 static struct winsize          winsize;
 const char                     *vmlinux_name;
-static const char              *graph_line                     =
-       "_____________________________________________________________________"
-       "_____________________________________________________________________";
-static const char              *graph_dotted_line                      =
-       "---------------------------------------------------------------------"
-       "---------------------------------------------------------------------"
-       "---------------------------------------------------------------------";
 
 /*
  * Source
index 0b791bd346bc604df872553b8982f5bf137b8c86..35073621e5de9a83891b7e6e58e7469345e94b71 100644 (file)
@@ -29,3 +29,11 @@ unsigned char sane_ctype[256] = {
        A, A, A, A, A, A, A, A, A, A, A, R, R, P, P, 0,         /* 112..127 */
        /* Nothing in the 128.. range */
 };
+
+const char *graph_line =
+       "_____________________________________________________________________"
+       "_____________________________________________________________________";
+const char *graph_dotted_line =
+       "---------------------------------------------------------------------"
+       "---------------------------------------------------------------------"
+       "---------------------------------------------------------------------";
index f2203a0946bcbb04917b5473f9788ae62dbc149d..e1c623e0c99e2ed2a5156e27edbed123cf699a70 100644 (file)
@@ -84,6 +84,9 @@
 #include <iconv.h>
 #endif
 
+extern const char *graph_line;
+extern const char *graph_dotted_line;
+
 /* On most systems <limits.h> would have given us this, but
  * not on some systems (e.g. GNU/Hurd).
  */