]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/perf: Change CPUM_CF return code in event init function
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 29 Oct 2018 08:11:33 +0000 (08:11 +0000)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 02:00:19 +0000 (20:00 -0600)
commite0bbb55f12fc8db590dfa80b936c4d332fb0ec65
treec7ed531a99c3009a60184441150e3edccb954b83
parent9a04631fa16cf27b522ed1dcd0193a4a37b49635
s390/perf: Change CPUM_CF return code in event init function

BugLink: https://bugs.launchpad.net/bugs/1836968
[ Upstream commit 0bb2ae1b26e1fb7543ec7474cdd374ac4b88c4da ]

The function perf_init_event() creates a new event and
assignes it to a PMU. This a done in a loop over all existing
PMUs. For each listed PMU the event init function is called
and if this function does return any other error than -ENOENT,
the loop is terminated the creation of the event fails.

If the event is invalid, return -ENOENT to try other PMUs.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/kernel/perf_cpum_cf.c