perf tui: Make ui__warning modal
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Mar 2011 13:24:43 +0000 (10:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Mar 2011 13:24:43 +0000 (10:24 -0300)
commita1ceb741cf86ef433006379742db81c00b450bae
tree8db2f94f1968a3640233d10481df4e68dbe15abb
parent3166fc8fb6a2f52273d545e970297524e02c3e39
perf tui: Make ui__warning modal

By taking the ui__lock so that no other screen updates take place while
waiting for the user.

That was happening when handling an invalid --vmlinux parameter in 'perf
top --tui', with the screen refresh routine repainting the screen and
removing the warning window.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/util.c