]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Check branch sampling priv level in generic code
authorStephane Eranian <eranian@google.com>
Tue, 21 May 2013 10:53:37 +0000 (12:53 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 May 2013 07:13:54 +0000 (09:13 +0200)
commit23699bcd602c10df9579d03e7c6efd2a4be87862
tree32d26494f93859f3a03a8aa6edc2cc3b97476191
parent1a2e5d292bcfbf33f9de9da7fdc750ec94c1d333
perf/x86: Check branch sampling priv level in generic code

This patch moves commit 8089086 to the generic code:

 perf/x86/intel/lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

The check is now implemented in generic code instead of x86 specific
code. That way we do not have to repeat the test in each arch
supporting branch sampling.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/20130521105337.GA2879@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_lbr.c
kernel/events/core.c