perf ui/tui: Protect windows by ui__lock
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 26 Dec 2013 05:37:57 +0000 (14:37 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Dec 2013 14:22:01 +0000 (11:22 -0300)
commit5c743cf573e6974befe917ed4a36d42b39ef1ce0
tree7609bc7b82ffdbbb94aeeaec228a6eb465e07bad
parentfb7345bbf7fad9bf72ef63a19c707970b9685812
perf ui/tui: Protect windows by ui__lock

Sometimes perf top TUI breaks display with concurrent help/input window
and pr_* messages since they're not protected by ui__lock.

You can check it by pressing (and not releasing) 'h' key on a "perf top
-vvv" TUI session.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1388036284-32342-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/tui/util.c