5 #include <linux/kernel.h> 6 #ifdef HAVE_BACKTRACE_SUPPORT 10 #include "../../util/cache.h" 11 #include "../../util/debug.h" 12 #include "../../util/util.h" 13 #include "../browser.h" 14 #include "../helpline.h" 17 #include "../libslang.h" 18 #include "../keysyms.h" 33 SLtt_get_screen_size();
58 struct timeval timeout, *ptimeout = delay_secs ? &timeout : NULL;
68 timeout.tv_sec = delay_secs;
72 err = select(1, &read_set, NULL, NULL, ptimeout);
91 err = select(1, &read_set, NULL, NULL, &timeout);
99 #ifdef HAVE_BACKTRACE_SUPPORT 106 psignal(sig,
"perf");
108 printf(
"-------- backtrace --------\n");
109 size = backtrace(stackdump, ARRAY_SIZE(stackdump));
110 backtrace_symbols_fd(stackdump, size, STDOUT_FILENO);
115 # define ui__signal_backtrace ui__signal 121 psignal(sig,
"perf");
131 SLtt_get_screen_size();
133 err = SLsmg_init_smg();
136 err = SLang_init_tty(-1, 0, 0);
142 pr_err(
"TUI initialization failed.\n");
170 "Press any key...", 0);
172 SLtt_set_cursor_visibility(1);
void ui__refresh_dimensions(bool force)
int ui__getch(int delay_secs)
#define ui__signal_backtrace
static void ui__setup_sigwinch(void)
static void ui__sigwinch(int sig __maybe_unused)
int perf_error__unregister(struct perf_error_ops *eops)
void hist_browser__init_hpp(void)
static void ui__signal(int sig)
char ui_helpline__last_msg[]
void pthread__unblock_sigwinch(void)
int perf_error__register(struct perf_error_ops *eops)
void tui_progress__init(void)
void ui__exit(bool wait_for_ok)
int ui__question_window(const char *title, const char *text, const char *exit_msg, int delay_secs)
void ui_helpline__init(void)
static volatile int ui__need_resize
struct perf_error_ops perf_tui_eops
void ui_browser__init(void)