torture: Compress KASAN vmlinux files
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 11 Dec 2020 22:03:39 +0000 (14:03 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:03:46 +0000 (17:03 -0800)
commite3e1a99787fcf6297990c3b6cf53f5f6ef5aed60
tree2f39a69f64e5be3dd399349af5ebd3cf790ee393
parentc54e413822701a18e7cf6bada2028ea9a9ecdaf9
torture: Compress KASAN vmlinux files

The sizes of vmlinux files built with KASAN enabled can approach a full
gigabyte, which can result in disk overflow sooner rather than later.
Fortunately, the xz command compresses them by almost an order of
magnitude.  This commit therefore uses xz to compress vmlinux file built
by torture.sh with KASAN enabled.

However, xz is not the fastest thing in the world.  In fact, it is way
slower than rotating-rust mass storage.  This commit therefore also adds a
--compress-kasan-vmlinux argument to specify the degree of xz concurrency,
which defaults to using all available CPUs if there are that many files in
need of compression.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/torture.sh