Re: [PATCH] perf: fix hypervisor branch sampling permission check

2013-06-06 Thread Petr Matousek
On Thu, Jun 06, 2013 at 11:02:04AM +0200, Stephane Eranian wrote: > > 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 >

[PATCH] perf: fix hypervisor branch sampling permission check

2013-06-06 Thread Stephane Eranian
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 Erro