]> Gentwo Git Trees - linux/.git/commit
s390/ap: Introduce new AP nqap and dqap trace events
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 17 Oct 2025 10:14:15 +0000 (12:14 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 21 Oct 2025 09:09:21 +0000 (11:09 +0200)
commit9c11918040d6aa19c407ead4dc86b65e664f401f
tree8608423a2e41910a96c58f08e183bced32d94de7
parent7f124d78d4347a61dbb87012dd519ffa05bc755d
s390/ap: Introduce new AP nqap and dqap trace events

Introduce two new AP bus related tracepoint events:
- There is a tracepoint s390_ap_nqap event immediately after a request
  has been pushed into the AP firmware queue with the NQAP AP command.
- The other tracepoint s390_ap_dqap event fires immediately after a
  reply has been pulled out of the AP firmware queue via DQAP AP
  command.
Both events are triggered unconditional and may need filtering.
Filtering can be done based on the status value which is part of
the nqap and dqap trace. So for example a
  echo "!(status & 0x00ff0000)" >.../s390_ap_dqap/filter
filters out all trace events which have a response_code != 0
leaving just the successful nqap and dqap invocations.

The idea of these two trace events focuses on performance to measure
the runtime of a crypto request/reply as close as possible at the
firmware level. In combination with the two zcrypt tracepoints (see
the zcrypt.h trace event definition file) this gives measurement data
about the runtime of a request/reply within the zcrpyt and AP bus
layer. However, with having the status of these AP commands in hand
also other usage may be possible.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/trace/ap.h [new file with mode: 0644]
drivers/s390/crypto/ap_queue.c