powerpc/perf: Add privileged access check for thread_imc
Add code to restrict user access to thread_imc pmu since some event report privilege level information. Fixes: f74c89bd ("powerpc/perf: Add thread IMC PMU support") Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Showing
Please register or sign in to comment