OSDN Git Service

s390/debug: keep debug data on resize
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Fri, 13 Aug 2021 13:05:02 +0000 (15:05 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 Aug 2021 09:03:35 +0000 (11:03 +0200)
commit1204777867e8486a88dbb4793fe256b31ea05eeb
tree2cdfd8e92bd9e7a122695458c87255f1ec4a0326
parent2879048c7ea1bcfbacda5af5f555666134323e3a
s390/debug: keep debug data on resize

Any previously recorded s390dbf debug data is reset when a debug area
is resized using the 'pages' sysfs attribute. This can make
live-debugging unnecessarily complex.

Fix this by copying existing debug data to the newly allocated debug
area when resizing.

Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/debug.c