Skip to content

s390/pai: Add support for Processor Activity Instrumentation

Thomas Richter linux-s390 lkml 1 version Applied

Status from this message: Merged into commit message, and applied both patches to s390 tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()arch/s390/include/asm/entry-common.h arch/x86/include/asm/entry-common.h include/linux/entry-common.h +1 more+9 -97 replies
2/2s390/pai: Add support for cryptography countersarch/s390/include/asm/ctl_reg.h arch/s390/include/asm/entry-common.h arch/s390/include/asm/lowcore.h +6 more+784 -70 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJuergen ChristPeter Zijlstra (Intel)Thomas Gleixner
1/2A-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] s390/pai: Add support for Processor Activity Instrumentation

This patch series adds support for Processor Activity Instrumentation (PAI) for cryptography instructions. A new Performance Measurement Unit (PMU) is introduced. It reads memory mapped counter values incremented when a CPU executes certain instructions.
To differentiate between user space and kernel space counter increments, the memory mapping is changed on system call entry/exit and IRQ entry/exit. Patch 1 prepares that transition, patch 2 introduces the new PMU and kernel vs user space memory mappings.

Sven Schnelle (1):
entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()

Thomas Richter (1):
s390/pai: Add support for cryptography counters

 arch/s390/include/asm/ctl_reg.h      |   4 +-
 arch/s390/include/asm/entry-common.h |  14 +-
 arch/s390/include/asm/lowcore.h      |   5 +-
 arch/s390/include/asm/nmi.h          |   2 +-
 arch/s390/include/asm/pai.h          |  74 +++
 arch/s390/kernel/Makefile            |   1 +
 arch/s390/kernel/entry.S             |   1 +
 arch/s390/kernel/nmi.c               |   6 +-
 arch/s390/kernel/perf_pai_crypto.c   | 688 +++++++++++++++++++++++++++
 arch/x86/include/asm/entry-common.h  |   4 +-
 include/linux/entry-common.h         |   8 +-
 kernel/entry/common.c                |   2 +-
 12 files changed, 793 insertions(+), 16 deletions(-)
 create mode 100644 arch/s390/include/asm/pai.h
 create mode 100644 arch/s390/kernel/perf_pai_crypto.c
Signature · 1 line
2.32.0