]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Modify error message in virtualized environment
authorJuergen Gross <jgross@suse.com>
Mon, 1 Aug 2016 11:37:07 +0000 (13:37 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 1 Aug 2016 12:30:34 +0000 (14:30 +0200)
commit6ff78371f65420ce1e181b530bc1319ce0188b7c
tree2bfb6b0be05fc5b7df799e6a78412822094bf3c3
parent06d77c60381bfb0cfcd9ec371042545623d26ebb
perf/x86: Modify error message in virtualized environment

It is known that PMU isn't working in some virtualized environments.

Modify the message issued in that case to mention why hardware PMU
isn't usable instead of reporting it to be broken.

As a side effect this will correct a little bug in the error message:
The error message was meant to be either of level err or info
depending on the environment (native or virtualized). As the level is
taken from the format string and not the printed string, specifying
it via %s and a conditional argument didn't work the way intended.

Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@kernel.org
Link: http://lkml.kernel.org/r/1470051427-16795-1-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c