perf_counter tools: Handle kernels with !CONFIG_PERF_COUNTER
authorIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 15:46:24 +0000 (17:46 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 15:46:24 +0000 (17:46 +0200)
commit30c806a094493beb7691bc7957dfa02dee96230a
tree050253f0a69d5fab3cee07c07061e1468ac3c4f1
parent3da297a60f7e8840f79f7d0b343af078890939ea
perf_counter tools: Handle kernels with !CONFIG_PERF_COUNTER

If perf is run on a !CONFIG_PERF_COUNTER kernel right now it
bails out with no messages or with confusing messages.

Standardize this case some more and explain the situation.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/builtin-top.c