summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZhouyi Zhou <zhouzhouyi@gmail.com>2026-09-19 01:06:06 +0000
committerPaul E. McKenney <paulmck@kernel.org>2026-10-12 16:51:52 -0700
commitc23eb6c48cf3b8b7392214d0406b0f997025c9db (patch)
tree8011de22f9d038564bda68c928a773843a34c828 /scripts/Makefile.thinlto
parent88dcdd9e6837b0e24eab4d8287f0401f23009181 (diff)
downloadlinux-c23eb6c48cf3b8b7392214d0406b0f997025c9db.tar.gz
linux-c23eb6c48cf3b8b7392214d0406b0f997025c9db.zip
rcutorture: Fix kvm-again.sh re-run failure on ppc64
Discovered in the Open Source Lab of Oregon State University when running torture.sh on a ppc64le VM. Two bugs were exposed: 1. The kvm-transform.sh call hard-coded "bzImage" as the kernel image name. On ppc64, the boot image is vmlinux, not bzImage, so the re-run failed to find the image. Fix this by extracting the QEMU binary from the qemu-cmd file and passing it to identify_boot_image() to obtain the correct architecture-specific image name, the same way kvm.sh already does. 2. The rm -f invocation on re-run listed vmlinux among the files to delete. On ppc64 vmlinux is the boot image, so deleting it broke the re-run on that architecture. Drop vmlinux from the unconditional list, and instead conditionally delete it only when the boot image basename is not vmlinux. In addition, identify qemu_binary before the copy step so that on non-PowerPC systems (where vmlinux is not the boot image) the vmlinux file can be removed immediately after the run directory is copied, saving storage before any tests run. This also eliminates the per-iteration re-computation of qemu_binary and boot_image inside the qemu-cmd transform loop. Tested on a local x86_64 machine and on a PPC VM of the Open Source Lab of Oregon State University. Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com> Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions