]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfac53f2ca2cf060e9ed1c56547cf40cd7ba153f0
treeb41206e03fa84bcbb752a320513feb8f7b7603ad
parent15fcc11a74b018c0213d61a2f32bb267915ce6f3
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]