aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2012-04-04 03:14:26 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-04-11 16:16:40 -0400
commitaca7a94d6a59d6bf2600768e752f971c6cc0ab57 (patch)
tree801b40ba5cb8aba9d3d0842a3d87c741b97f58f2
parenta31b7cc083b1d3d15bd475729fc4471685ebc5f6 (diff)
perf tools: Move UI bits to tools/perf/ui directory
Move those files to new directory in order to be prepared to further UI work. Makefile and header file pathes are adjusted accordingly. Signed-off-by: Namhyung Kim <namhyung.kim@lge.com> Suggested-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl Link: http://lkml.kernel.org/r/1333523666-12057-1-git-send-email-namhyung.kim@lge.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Makefile40
-rw-r--r--tools/perf/ui/browser.c (renamed from tools/perf/util/ui/browser.c)0
-rw-r--r--tools/perf/ui/browser.h (renamed from tools/perf/util/ui/browser.h)0
-rw-r--r--tools/perf/ui/browsers/annotate.c (renamed from tools/perf/util/ui/browsers/annotate.c)10
-rw-r--r--tools/perf/ui/browsers/hists.c (renamed from tools/perf/util/ui/browsers/hists.c)12
-rw-r--r--tools/perf/ui/browsers/map.c (renamed from tools/perf/util/ui/browsers/map.c)6
-rw-r--r--tools/perf/ui/browsers/map.h (renamed from tools/perf/util/ui/browsers/map.h)0
-rw-r--r--tools/perf/ui/helpline.c (renamed from tools/perf/util/ui/helpline.c)0
-rw-r--r--tools/perf/ui/helpline.h (renamed from tools/perf/util/ui/helpline.h)0
-rw-r--r--tools/perf/ui/keysyms.h (renamed from tools/perf/util/ui/keysyms.h)0
-rw-r--r--tools/perf/ui/libslang.h (renamed from tools/perf/util/ui/libslang.h)0
-rw-r--r--tools/perf/ui/progress.c (renamed from tools/perf/util/ui/progress.c)0
-rw-r--r--tools/perf/ui/progress.h (renamed from tools/perf/util/ui/progress.h)0
-rw-r--r--tools/perf/ui/setup.c (renamed from tools/perf/util/ui/setup.c)0
-rw-r--r--tools/perf/ui/ui.h (renamed from tools/perf/util/ui/ui.h)0
-rw-r--r--tools/perf/ui/util.c (renamed from tools/perf/util/ui/util.c)0
-rw-r--r--tools/perf/ui/util.h (renamed from tools/perf/util/ui/util.h)0
-rw-r--r--tools/perf/util/debug.h2
-rw-r--r--tools/perf/util/hist.h2
19 files changed, 36 insertions, 36 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index b28b61042fa8..af6ccf8d1499 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -473,22 +473,22 @@ else
473 # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h 473 # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
474 BASIC_CFLAGS += -I/usr/include/slang 474 BASIC_CFLAGS += -I/usr/include/slang
475 EXTLIBS += -lnewt -lslang 475 EXTLIBS += -lnewt -lslang
476 LIB_OBJS += $(OUTPUT)util/ui/setup.o 476 LIB_OBJS += $(OUTPUT)ui/setup.o
477 LIB_OBJS += $(OUTPUT)util/ui/browser.o 477 LIB_OBJS += $(OUTPUT)ui/browser.o
478 LIB_OBJS += $(OUTPUT)util/ui/browsers/annotate.o 478 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
479 LIB_OBJS += $(OUTPUT)util/ui/browsers/hists.o 479 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
480 LIB_OBJS += $(OUTPUT)util/ui/browsers/map.o 480 LIB_OBJS += $(OUTPUT)ui/browsers/map.o
481 LIB_OBJS += $(OUTPUT)util/ui/helpline.o 481 LIB_OBJS += $(OUTPUT)ui/helpline.o
482 LIB_OBJS += $(OUTPUT)util/ui/progress.o 482 LIB_OBJS += $(OUTPUT)ui/progress.o
483 LIB_OBJS += $(OUTPUT)util/ui/util.o 483 LIB_OBJS += $(OUTPUT)ui/util.o
484 LIB_H += util/ui/browser.h 484 LIB_H += ui/browser.h
485 LIB_H += util/ui/browsers/map.h 485 LIB_H += ui/browsers/map.h
486 LIB_H += util/ui/helpline.h 486 LIB_H += ui/helpline.h
487 LIB_H += util/ui/keysyms.h 487 LIB_H += ui/keysyms.h
488 LIB_H += util/ui/libslang.h 488 LIB_H += ui/libslang.h
489 LIB_H += util/ui/progress.h 489 LIB_H += ui/progress.h
490 LIB_H += util/ui/util.h 490 LIB_H += ui/util.h
491 LIB_H += util/ui/ui.h 491 LIB_H += ui/ui.h
492 endif 492 endif
493endif 493endif
494 494
@@ -755,16 +755,16 @@ $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS
755$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS 755$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS
756 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 756 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
757 757
758$(OUTPUT)util/ui/browser.o: util/ui/browser.c $(OUTPUT)PERF-CFLAGS 758$(OUTPUT)ui/browser.o: ui/browser.c $(OUTPUT)PERF-CFLAGS
759 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< 759 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
760 760
761$(OUTPUT)util/ui/browsers/annotate.o: util/ui/browsers/annotate.c $(OUTPUT)PERF-CFLAGS 761$(OUTPUT)ui/browsers/annotate.o: ui/browsers/annotate.c $(OUTPUT)PERF-CFLAGS
762 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< 762 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
763 763
764$(OUTPUT)util/ui/browsers/hists.o: util/ui/browsers/hists.c $(OUTPUT)PERF-CFLAGS 764$(OUTPUT)ui/browsers/hists.o: ui/browsers/hists.c $(OUTPUT)PERF-CFLAGS
765 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< 765 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
766 766
767$(OUTPUT)util/ui/browsers/map.o: util/ui/browsers/map.c $(OUTPUT)PERF-CFLAGS 767$(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS
768 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< 768 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
769 769
770$(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS 770$(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS
diff --git a/tools/perf/util/ui/browser.c b/tools/perf/ui/browser.c
index a1b140cf75ac..a1b140cf75ac 100644
--- a/tools/perf/util/ui/browser.c
+++ b/tools/perf/ui/browser.c
diff --git a/tools/perf/util/ui/browser.h b/tools/perf/ui/browser.h
index 2550277db9f9..2550277db9f9 100644
--- a/tools/perf/util/ui/browser.h
+++ b/tools/perf/ui/browser.h
diff --git a/tools/perf/util/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index c2cfeed3af19..4db5186472b5 100644
--- a/tools/perf/util/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -1,13 +1,13 @@
1#include "../../util.h" 1#include "../../util/util.h"
2#include "../browser.h" 2#include "../browser.h"
3#include "../helpline.h" 3#include "../helpline.h"
4#include "../libslang.h" 4#include "../libslang.h"
5#include "../ui.h" 5#include "../ui.h"
6#include "../util.h" 6#include "../util.h"
7#include "../../annotate.h" 7#include "../../util/annotate.h"
8#include "../../hist.h" 8#include "../../util/hist.h"
9#include "../../sort.h" 9#include "../../util/sort.h"
10#include "../../symbol.h" 10#include "../../util/symbol.h"
11#include <pthread.h> 11#include <pthread.h>
12#include <newt.h> 12#include <newt.h>
13 13
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 1b820ed2a049..466827e91b87 100644
--- a/tools/perf/util/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -5,12 +5,12 @@
5#include <newt.h> 5#include <newt.h>
6#include <linux/rbtree.h> 6#include <linux/rbtree.h>
7 7
8#include "../../evsel.h" 8#include "../../util/evsel.h"
9#include "../../evlist.h" 9#include "../../util/evlist.h"
10#include "../../hist.h" 10#include "../../util/hist.h"
11#include "../../pstack.h" 11#include "../../util/pstack.h"
12#include "../../sort.h" 12#include "../../util/sort.h"
13#include "../../util.h" 13#include "../../util/util.h"
14 14
15#include "../browser.h" 15#include "../browser.h"
16#include "../helpline.h" 16#include "../helpline.h"
diff --git a/tools/perf/util/ui/browsers/map.c b/tools/perf/ui/browsers/map.c
index eca6575abfd0..98851d55a53e 100644
--- a/tools/perf/util/ui/browsers/map.c
+++ b/tools/perf/ui/browsers/map.c
@@ -5,9 +5,9 @@
5#include <sys/ttydefaults.h> 5#include <sys/ttydefaults.h>
6#include <string.h> 6#include <string.h>
7#include <linux/bitops.h> 7#include <linux/bitops.h>
8#include "../../util.h" 8#include "../../util/util.h"
9#include "../../debug.h" 9#include "../../util/debug.h"
10#include "../../symbol.h" 10#include "../../util/symbol.h"
11#include "../browser.h" 11#include "../browser.h"
12#include "../helpline.h" 12#include "../helpline.h"
13#include "map.h" 13#include "map.h"
diff --git a/tools/perf/util/ui/browsers/map.h b/tools/perf/ui/browsers/map.h
index df8581a43e17..df8581a43e17 100644
--- a/tools/perf/util/ui/browsers/map.h
+++ b/tools/perf/ui/browsers/map.h
diff --git a/tools/perf/util/ui/helpline.c b/tools/perf/ui/helpline.c
index 2f950c2641c8..2f950c2641c8 100644
--- a/tools/perf/util/ui/helpline.c
+++ b/tools/perf/ui/helpline.c
diff --git a/tools/perf/util/ui/helpline.h b/tools/perf/ui/helpline.h
index 7bab6b34e35e..7bab6b34e35e 100644
--- a/tools/perf/util/ui/helpline.h
+++ b/tools/perf/ui/helpline.h
diff --git a/tools/perf/util/ui/keysyms.h b/tools/perf/ui/keysyms.h
index 809eca5707fa..809eca5707fa 100644
--- a/tools/perf/util/ui/keysyms.h
+++ b/tools/perf/ui/keysyms.h
diff --git a/tools/perf/util/ui/libslang.h b/tools/perf/ui/libslang.h
index 4d54b6450f5b..4d54b6450f5b 100644
--- a/tools/perf/util/ui/libslang.h
+++ b/tools/perf/ui/libslang.h
diff --git a/tools/perf/util/ui/progress.c b/tools/perf/ui/progress.c
index 13aa64e50e11..13aa64e50e11 100644
--- a/tools/perf/util/ui/progress.c
+++ b/tools/perf/ui/progress.c
diff --git a/tools/perf/util/ui/progress.h b/tools/perf/ui/progress.h
index d9c205b59aa1..d9c205b59aa1 100644
--- a/tools/perf/util/ui/progress.h
+++ b/tools/perf/ui/progress.h
diff --git a/tools/perf/util/ui/setup.c b/tools/perf/ui/setup.c
index 85a69faa09aa..85a69faa09aa 100644
--- a/tools/perf/util/ui/setup.c
+++ b/tools/perf/ui/setup.c
diff --git a/tools/perf/util/ui/ui.h b/tools/perf/ui/ui.h
index 7b67045479f6..7b67045479f6 100644
--- a/tools/perf/util/ui/ui.h
+++ b/tools/perf/ui/ui.h
diff --git a/tools/perf/util/ui/util.c b/tools/perf/ui/util.c
index ad4374a16bb0..ad4374a16bb0 100644
--- a/tools/perf/util/ui/util.c
+++ b/tools/perf/ui/util.c
diff --git a/tools/perf/util/ui/util.h b/tools/perf/ui/util.h
index 2d1738bd71c8..2d1738bd71c8 100644
--- a/tools/perf/util/ui/util.h
+++ b/tools/perf/ui/util.h
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h
index f2ce88d04f54..6bebe7f0a20c 100644
--- a/tools/perf/util/debug.h
+++ b/tools/perf/util/debug.h
@@ -26,7 +26,7 @@ static inline void ui_progress__update(u64 curr __used, u64 total __used,
26#else 26#else
27extern char ui_helpline__last_msg[]; 27extern char ui_helpline__last_msg[];
28int ui_helpline__show_help(const char *format, va_list ap); 28int ui_helpline__show_help(const char *format, va_list ap);
29#include "ui/progress.h" 29#include "../ui/progress.h"
30int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); 30int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
31#endif 31#endif
32 32
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 2cae9df40e04..cfc64e293f90 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -138,7 +138,7 @@ static inline int hist_entry__tui_annotate(struct hist_entry *self __used,
138#define K_LEFT -1 138#define K_LEFT -1
139#define K_RIGHT -2 139#define K_RIGHT -2
140#else 140#else
141#include "ui/keysyms.h" 141#include "../ui/keysyms.h"
142int hist_entry__tui_annotate(struct hist_entry *he, int evidx, 142int hist_entry__tui_annotate(struct hist_entry *he, int evidx,
143 void(*timer)(void *arg), void *arg, int delay_secs); 143 void(*timer)(void *arg), void *arg, int delay_secs);
144 144