aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/tui
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-09-02 22:53:09 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-09-08 12:20:13 -0400
commitf5951d56a2ab4181b96806a4746895aaa5a3d72e (patch)
treebcc13e3c0d639fb4098db5eb69a8a52e465eb226 /tools/perf/ui/tui
parent7e62ef44e89e7b7f2c48090a048f2a5dffa838c7 (diff)
perf hists browser: Use perf_hpp__format functions
Override hpp->color functions for TUI. Because line coloring is done outside of the function, it just sets the percent value and pass it. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1346640790-17197-5-git-send-email-namhyung@kernel.org [ committer note: Keep previous layout by showing the overhead at column 1 ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/tui')
-rw-r--r--tools/perf/ui/tui/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/ui/tui/setup.c b/tools/perf/ui/tui/setup.c
index 4c936e09931c..4dc0887c04f1 100644
--- a/tools/perf/ui/tui/setup.c
+++ b/tools/perf/ui/tui/setup.c
@@ -15,6 +15,8 @@ static volatile int ui__need_resize;
15 15
16extern struct perf_error_ops perf_tui_eops; 16extern struct perf_error_ops perf_tui_eops;
17 17
18extern void hist_browser__init_hpp(void);
19
18void ui__refresh_dimensions(bool force) 20void ui__refresh_dimensions(bool force)
19{ 21{
20 if (force || ui__need_resize) { 22 if (force || ui__need_resize) {
@@ -124,6 +126,8 @@ int ui__init(void)
124 signal(SIGTERM, ui__signal); 126 signal(SIGTERM, ui__signal);
125 127
126 perf_error__register(&perf_tui_eops); 128 perf_error__register(&perf_tui_eops);
129
130 hist_browser__init_hpp();
127out: 131out:
128 return err; 132 return err;
129} 133}