path: root/tools/perf/ui/util.h
diff options
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-19 16:38:24 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-20 12:21:49 -0300
commit9b01611934c045ac7ca71aebf5ee1906951d6bce (patch)
tree011ec90a5d603b87abaf230c2a4ba852ec2f6192 /tools/perf/ui/util.h
parentperf ui: Make 'exit_msg' optional in ui__question_window() (diff)
perf ui: Introduce non-interactive ui__info_window() function
Sometimes we want just to print a message on the center of the screen, like in 'perf top' while we wait for the minimum amount of samples to be collected before sorting and showing them. Also expose __ui__info_window() as an optimization for cases where such message is to be printed while holding the ui lock. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-uat0f89vfwl2w52kv9wzwd8a@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/util.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/ui/util.h b/tools/perf/ui/util.h
index 5e44223b56fa..40891942f465 100644
--- a/tools/perf/ui/util.h
+++ b/tools/perf/ui/util.h
@@ -8,6 +8,8 @@ int ui__getch(int delay_secs);
int ui__popup_menu(int argc, char * const argv[]);
int ui__help_window(const char *text);
int ui__dialog_yesno(const char *msg);
+void __ui__info_window(const char *title, const char *text, const char *exit_msg);
+void ui__info_window(const char *title, const char *text);
int ui__question_window(const char *title, const char *text,
const char *exit_msg, int delay_secs);