projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ff7cd
)
perf ui tui: Register the error callbacks before initializing the widgets
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 22 Oct 2015 19:44:17 +0000
(16:44 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 22 Oct 2015 19:44:17 +0000
(16:44 -0300)
I.e. we want to tell the user about errors found during, for instance,
the ui_browser initialization, so that a call to ui__warning() appears
as a window waiting for a key to be pressed.
Cc: Adrian Hunter <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/ui/tui/setup.c
patch
|
blob
|
history
diff --git
a/tools/perf/ui/tui/setup.c
b/tools/perf/ui/tui/setup.c
index 60d1f29b4b50a9fedf0a163855056edfce1ed22b..7dfeba0a91f37c33c87b826e9ed79ec4ad59869c 100644
(file)
--- a/
tools/perf/ui/tui/setup.c
+++ b/
tools/perf/ui/tui/setup.c
@@
-141,10
+141,6
@@
int ui__init(void)
SLkp_define_keysym((char *)"^(kB)", SL_KEY_UNTAB);
- ui_helpline__init();
- ui_browser__init();
- tui_progress__init();
-
signal(SIGSEGV, ui__signal_backtrace);
signal(SIGFPE, ui__signal_backtrace);
signal(SIGINT, ui__signal);
@@
-153,6
+149,10
@@
int ui__init(void)
perf_error__register(&perf_tui_eops);
+ ui_helpline__init();
+ ui_browser__init();
+ tui_progress__init();
+
hist_browser__init_hpp();
out:
return err;