On Wed, 25 Nov 2020 02:26:55 -0500, Athira Rajeev wrote: > Perf event attritube supports exclude_kernel flag > to avoid sampling/profiling in supervisor state (kernel). > Based on this event attr flag, Monitor Mode Control Register > bit is set to freeze on supervisor state. But sometime (due > to hardware limitation), Sampled Instruction Address > Register (SIAR) locks on to kernel address even when > freeze on supervisor is set. Patch here adds a check to > drop those samples.
Applied to powerpc/next. [1/1] powerpc/perf: Exclude kernel samples while counting events in user space. https://git.kernel.org/powerpc/c/aa8e21c053d72b6639ea5a7f1d3a1d0209534c94 cheers