summaryrefslogtreecommitdiffstats
path: root/kernel/rcu.h
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2013-06-06 11:02:04 +0200
committerIngo Molnar <mingo@kernel.org>2013-06-19 12:50:21 +0200
commite712209a9e0b70e78b13847738eb66fe37412515 (patch)
tree06a024f28b795d3b8aee32ce01b4ec94026e7b2c /kernel/rcu.h
parenteff2108f020f30eb90462205ecf3ce10a420938b (diff)
downloadop-kernel-dev-e712209a9e0b70e78b13847738eb66fe37412515.zip
op-kernel-dev-e712209a9e0b70e78b13847738eb66fe37412515.tar.gz
perf: Fix hypervisor branch sampling permission check
Commit 2b923c8 perf/x86: Check branch sampling priv level in generic code was missing the check for the hypervisor (HV) priv level, so add it back. With this patch, we get the following correct behavior: # echo 2 >/proc/sys/kernel/perf_event_paranoid $ perf record -j any,k noploop 1 Error: You may not have permission to collect stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid: -1 - Not paranoid at all 0 - Disallow raw tracepoint access for unpriv 1 - Disallow cpu events for unpriv 2 - Disallow kernel profiling for unpriv $ perf record -j any,hv noploop 1 Error: You may not have permission to collect stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid: -1 - Not paranoid at all 0 - Disallow raw tracepoint access for unpriv 1 - Disallow cpu events for unpriv 2 - Disallow kernel profiling for unpriv Signed-off-by: Stephane Eranian <eranian@google.com> Acked-by: Petr Matousek <pmatouse@redhat.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20130606090204.GA3725@quad Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/rcu.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud