perf/x86/intel/lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL
authorPeter Zijlstra <[email protected]>
Fri, 3 May 2013 12:11:25 +0000 (14:11 +0200)
committerIngo Molnar <[email protected]>
Sun, 5 May 2013 08:58:11 +0000 (10:58 +0200)
commit7cc23cd6c0c7d7f4bee057607e7ce01568925717
tree9d2b46d8cc614f6ad11ed82b0f93e855e8531f42
parent6e15eb3ba6c0249c9e8c783517d131b47db995ca
perf/x86/intel/lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

We should always have proper privileges when requesting kernel
data.

Signed-off-by: Peter Zijlstra <[email protected]>
Cc: <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Fix build error reported by [email protected], propagate error code back. ]
Signed-off-by: Ingo Molnar <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
arch/x86/kernel/cpu/perf_event_intel_lbr.c