linux/drivers/perf
Mark Rutland 1898eb61fb drivers/perf: arm-ccn: don't log to dmesg in event_init
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>
2018-05-21 18:21:32 +01:00
..
hisilicon perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
arm_dsu_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
arm_pmu_acpi.c arm_pmu: acpi: request IRQs up-front 2018-02-20 11:34:54 +00:00
arm_pmu_platform.c drivers/perf: arm_pmu_platform: do not warn about affinity on uniprocessor 2018-03-27 13:13:27 +01:00
arm_pmu.c arm_pmu: simplify arm_pmu::handle_irq 2018-05-21 18:07:05 +01:00
arm_spe_pmu.c perf: simplify getting .drvdata 2018-05-21 18:02:35 +01:00
arm-cci.c perf/arm-cci: Allow building as a module 2018-05-21 18:12:54 +01:00
arm-ccn.c drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-05-21 18:21:32 +01:00
Kconfig perf/arm-cci: Allow building as a module 2018-05-21 18:12:54 +01:00
Makefile drivers/bus: Split Arm CCI driver 2018-03-06 17:26:17 +01:00
qcom_l2_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
qcom_l3_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
xgene_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00