OSDN Git Service

perf record: Remove misleading error suggestion
authorAndi Kleen <ak@linux.intel.com>
Fri, 6 Apr 2018 20:38:11 +0000 (13:38 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Apr 2018 18:35:49 +0000 (15:35 -0300)
commitec3948451e0ba317e66873b48d6cc51d701d4eb0
tree4bca26acb5c42fcfbf8ab3347babb47a35785e10
parent6a02f06edea5a5910c787fd6c49b0552e8080e5d
perf record: Remove misleading error suggestion

When perf record encounters an error setting up an event it suggests
to enable CONFIG_PERF_EVENTS. This is misleading because:

- Usually it is enabled (it is really hard to disable on x86)

- The problem is usually somewhere else, e.g. the CPU is not supported
or an invalid configuration has been used.

Remove the misleading suggestion.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20180406203812.3087-4-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c