linux_dsm_epyc7002/arch/powerpc/perf
Athira Rajeev 58b97af176 powerpc/perf: Exclude kernel samples while counting events in user space.
commit aa8e21c053d72b6639ea5a7f1d3a1d0209534c94 upstream.

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 sometimes (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.

Cc: stable@vger.kernel.org
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1606289215-1433-1-git-send-email-atrajeev@linux.vnet.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:54:10 +01:00
..
req-gen
8xx-pmu.c
bhrb.S
callchain_32.c
callchain_64.c
callchain.c
callchain.h
core-book3s.c powerpc/perf: Exclude kernel samples while counting events in user space. 2020-12-30 11:54:10 +01:00
core-fsl-emb.c
e500-pmu.c
e6500-pmu.c
generic-compat-pmu.c
hv-24x7-catalog.h
hv-24x7-domains.h
hv-24x7.c
hv-24x7.h
hv-common.c
hv-common.h
hv-gpci-requests.h powerpc/perf/hv-gpci: Fix starting index value 2020-10-07 22:34:48 +11:00
hv-gpci.c powerpc/hv-gpci: Add sysfs files inside hv-gpci device to show cpumask 2020-10-07 22:34:49 +11:00
hv-gpci.h
imc-pmu.c perf: Reduce stack usage of perf_output_begin() 2020-11-09 18:12:33 +01:00
internal.h
isa207-common.c powerpc/perf: Fix Threshold Event Counter Multiplier width for P10 2020-12-30 11:53:53 +01:00
isa207-common.h powerpc/perf: Fix Threshold Event Counter Multiplier width for P10 2020-12-30 11:53:53 +01:00
Makefile
mpc7450-pmu.c
perf_regs.c perf/arch: Remove perf_sample_data::regs_user_copy 2020-11-09 18:12:34 +01:00
power5-pmu.c
power5+-pmu.c
power6-pmu.c
power7-events-list.h
power7-pmu.c
power8-events-list.h
power8-pmu.c
power9-events-list.h
power9-pmu.c
power10-events-list.h
power10-pmu.c powerpc/perf: Fix to update radix_scope_qual in power10 2020-12-30 11:53:32 +01:00
ppc970-pmu.c