perf ui: Serialize screen updates
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Feb 2011 13:38:43 +0000 (11:38 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Feb 2011 16:47:55 +0000 (14:47 -0200)
commit5c35d69fb60b1dc49595f5b9a2c7158283e9eaf3
treeb41206e03fa84bcbb752a320513feb8f7b7603ad
parentba3dd36c6775264ee6e7354ba1aabcd6e86d7298
perf ui: Serialize screen updates

The ui operations so far were used by just one thread, but 'perf top
--tui' now has two threads updating the screen, so we need to use a
mutex to avoid garbling the screen.

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/Makefile
tools/perf/util/ui/browser.c
tools/perf/util/ui/helpline.c
tools/perf/util/ui/setup.c
tools/perf/util/ui/ui.h [new file with mode: 0644]