Re: [v2] powerpc/perf: use MSR to report privilege level on P9 DD1

2017-01-18 Thread Michael Ellerman
On Wed, 2017-01-18 at 03:42:56 UTC, Madhavan Srinivasan wrote: > Since SIER and SIAR updates are not valid for some > samples, patch forces the use of MSR and regs->nip instead > for misc_flag updates. This is done by adding a new ppmu > flag and updating user_siar value in perf_read_regs() accordi

[PATCH v2] powerpc/perf: use MSR to report privilege level on P9 DD1

2017-01-17 Thread Madhavan Srinivasan
Since SIER and SIAR updates are not valid for some samples, patch forces the use of MSR and regs->nip instead for misc_flag updates. This is done by adding a new ppmu flag and updating user_siar value in perf_read_regs() accordingly. Signed-off-by: Madhavan Srinivasan --- Changelog: 1)Added a new