summaryrefslogtreecommitdiffstats
path: root/Documentation/features/debug/stackprotector
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2026-01-23 10:14:12 +0100
committerHeiko Carstens <hca@linux.ibm.com>2026-01-27 12:21:20 +0100
commitb2c04fc1239062b39ddfdd8731ee1a10810dfb74 (patch)
tree7899b16e65597ba935770b4d01e4290e7b7c08e4 /Documentation/features/debug/stackprotector
parent0d453ba04044bb1b0df366d4a0a9098481f14621 (diff)
downloadlinux-b2c04fc1239062b39ddfdd8731ee1a10810dfb74.tar.gz
linux-b2c04fc1239062b39ddfdd8731ee1a10810dfb74.zip
s390/perf: Disable register readout on sampling events
Running commands # ./perf record -IR0,R1 -a sleep 1 extracts and displays register value of general purpose register r1 and r0. However the value displayed of any register is random and does not reflect the register value recorded at the time of the sample interrupt. The sampling device driver on s390 creates a very large buffer for the hardware to store the samples. Only when that large buffer gets full an interrupt is generated and many hundreds of sample entries are processed and copied to the kernel ring buffer and eventually get copied to the perf tool. It is during the copy to the kernel ring buffer that each sample is processed (on s390) and at that time the register values are extracted. This is not the original goal, the register values should be read when the samples are created not when the samples are copied to the kernel ring buffer. Prevent this event from being installed in the first place and return -EOPNOTSUPP. This is already the case for PERF_SAMPLE_REGS_USER. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'Documentation/features/debug/stackprotector')
0 files changed, 0 insertions, 0 deletions