]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/cpum_cf: Deny all sampling events by counter PMU
authorThomas Richter <tmricht@linux.ibm.com>
Fri, 22 Aug 2025 12:05:57 +0000 (14:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:44 +0000 (16:35 +0200)
commit4eebb6c60e8538aa08cb8997847e3d585dcfeb7f
tree153e5e812b07bbc7931a67c6fa6a0d8d3e633c5b
parent5665ac5c5151ce73fe734d7818e34ef50708af7e
s390/cpum_cf: Deny all sampling events by counter PMU

[ Upstream commit ce971233242b5391d99442271f3ca096fb49818d ]

Deny all sampling event by the CPUMF counter facility device driver
and return -ENOENT. This return value is used to try other PMUs.
Up to now events for type PERF_TYPE_HARDWARE were not tested for
sampling and returned later on -EOPNOTSUPP. This ends the search
for alternative PMUs. Change that behavior and try other PMUs
instead.

Fixes: 613a41b0d16e ("s390/cpum_cf: Reject request for sampling in event initialization")
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/perf_cpum_cf.c