android_kernel_sony_sdm845/drivers/bus
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mark Rutland e6d90b8c60 drivers/perf: arm-ccn: don't log to dmesg in event_init
[ Upstream commit 1898eb61fbc9703efee886d3abec27a388cf28c3 ]

The ARM CCN PMU driver uses dev_warn() to complain about parameters in
the user-provided perf_event_attr. This means that under normal
operation (e.g. a single invocation of the perf tool), a number of
messages warnings may be logged to dmesg.

Tools may issue multiple syscalls to probe for feature support, and
multiple applications (from multiple users) can attempt to open events
simultaneously, so this is not very helpful, even if a user happens to
have access to dmesg. Worse, this can push important information out of
the dmesg ring buffer, and can significantly slow down syscall fuzzers,
vastly increasing the time it takes to find critical bugs.

Demote the dev_warn() instances to dev_dbg(), as is the case for all
other PMU drivers under drivers/perf/. Users who wish to debug PMU event
initialisation can enable dynamic debug to receive these messages.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:55:19 +02:00
..
arm-cci.c bus: arm-cci: Fix use of smp_processor_id() in preemptible context 2017-12-14 09:28:14 +01:00
arm-ccn.c drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-08-03 07:55:19 +02:00
brcmstb_gisb.c bus: brcmstb_gisb: correct support for 64-bit address output 2018-04-13 19:47:56 +02:00
imx-weim.c
Kconfig bus: qcom-ebi2: depend on ARCH_QCOM or COMPILE_TEST 2016-10-17 13:46:09 -07:00
Makefile bus: qcom: add EBI2 driver 2016-09-08 15:27:05 +02:00
mips_cdmm.c MIPS/BUS/CDMM: Convert to hotplug state machine 2016-09-06 18:30:25 +02:00
mvebu-mbus.c bus: mbus: fix window size calculation for 4GB windows 2017-10-27 10:38:08 +02:00
omap-ocp2scp.c
omap_l3_noc.c
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
qcom-ebi2.c bus: qcom: add EBI2 driver 2016-09-08 15:27:05 +02:00
simple-pm-bus.c
sunxi-rsb.c sunxi-rsb: Include OF based modalias in device uevent 2018-01-10 09:29:52 +01:00
tegra-aconnect.c bus: tegra-aconnect: Use of_pm_clk_add_clk() 2016-08-16 12:22:51 +02:00
uniphier-system-bus.c
vexpress-config.c bus: vexpress-config: fix device reference leak 2017-01-19 20:18:07 +01:00