]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/pai_crypto: Enable per-task and system-wide sampling event
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 11 Apr 2024 11:15:47 +0000 (13:15 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 7 Jun 2024 14:49:07 +0000 (16:49 +0200)
commit9f66572f2889a5e72a9d7e17787e52f03b1f7bd8
tree5dd08807f87d4d473e39e160f21af8f49c004a73
parent92ea686840ac5e2e74ad5b1a569b07123d753e5e
s390/pai_crypto: Enable per-task and system-wide sampling event

The PMU for PAI crypto counters enforces the following restrictions:

      - No per-task context for PAI crypto sampling event CRYPTO_ALL
      - No multiple system-wide PAI crypto sampling event CRYPTO_ALL

Both restrictions are removed. One or more per-task sampling events
are supported. Also one or more system-wide sampling events are
supported.

Example for per-task context of sampling event CRYPTO_ALL:
       # perf record -e pai_crypto/CRYPTO_ALL/ -- true
Example for system-wide context of sampling event CRYPTO_ALL:
       # perf record -e pai_crypto/CRYPTO_ALL/ -a -- sleep 4

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>
arch/s390/kernel/perf_pai_crypto.c