s390/cpum_sf: sampling buffer setup to handle virtual addresses
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 16 Jan 2023 13:58:22 +0000 (14:58 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 22 Jan 2023 17:42:35 +0000 (18:42 +0100)
commit1f8e50722fcc95ba65456706ff1b8e5ec72a65fd
tree851bf5082513a27f1cea5aedf0576ecb084da767
parent4012fc20e2c6b01c5cf53a7f9d7693da4c10de45
s390/cpum_sf: sampling buffer setup to handle virtual addresses

The CPU Measurement Sampling Facility (CPUM_SF) installs large buffers
to save samples collected by hardware. These buffers are organized
as Sample Data Buffer Tables (SDBT) and Sample Data Buffers (SDB).
SDBs contain the samples which are extracted and saved in the perf
ring buffer.
The SDBTs are chained using real addresses and refer to SDBs using
real addresses.

Adds proper virtual to phyiscal address translation to the buffer
chaining. The current constraint which requires virtual equals real
address layout is removed.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c