perf ui: Introduce non-interactive ui__info_window() function
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Aug 2019 19:38:24 +0000 (16:38 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Aug 2019 15:21:49 +0000 (12:21 -0300)
commit9b01611934c045ac7ca71aebf5ee1906951d6bce
tree011ec90a5d603b87abaf230c2a4ba852ec2f6192
parent9e79ff77e4195e40e7a47a2001132db66e25d541
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>
tools/perf/ui/tui/util.c
tools/perf/ui/util.h