perf record: Don't call newt functions when not initialized
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Jun 2010 10:13:16 +0000 (07:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Jun 2010 11:29:19 +0000 (08:29 -0300)
commit1d90f2e707e75afdb6b644f774cf5e54dc9c33fc
treed5bc78d60ac4462ff544f394da94361ead1447d3
parentd11007703c31db534674ebeeb9eb047bbbe758bd
perf record: Don't call newt functions when not initialized

When processing events we want to give visual feedback to the user when
using the newt browser, so there are ui_progress calls in
__perf_session__process_events, but those should check if newt is being
used.

Reported-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Tested-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <20100609123530.GB9471@ghostprotocols.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/newt.c