s390/pai_crypto: Enable per-task counting event
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 29 Feb 2024 14:45:04 +0000 (15:45 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 7 Jun 2024 14:49:07 +0000 (16:49 +0200)
commit92ea686840ac5e2e74ad5b1a569b07123d753e5e
tree988aa04b44ebc5af45e0a466f673ad4e07c7926c
parentfb412c6241dccc530416917efe8e9fea5fa1fda2
s390/pai_crypto: Enable per-task counting event

The PMU for PAI crypto counters enforces the following restriction:

     - No per-task context for PAI crypto counters events.

This restriction is removed. One or more per-task/system-wide counting
events can now be active at the same time while at most one system
wide sampling event is active.

Example for per-task context of a PAI crypto counter event:
   # perf stat -e pai_crypto/KM_AES_128/ -- true

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/include/asm/pai.h
arch/s390/kernel/perf_pai_crypto.c