#!/bin/bash # SPDX-License-Identifier: GPL-2.0+ # # Transform a qemu-cmd file to allow reuse. # # Usage: kvm-transform.sh bzImage console.log jitter_dir seconds [ bootargs ] < qemu-cmd-in > qemu-cmd-out # # bzImage: Kernel and initrd from the same prior kvm.sh run. # console.log: File into which to place console output. # jitter_dir: Jitter directory for TORTURE_JITTER_START and # TORTURE_JITTER_STOP environment variables. # seconds: Run duaration for *.shutdown_secs module parameter. # bootargs: New kernel boot parameters. Beware of Robert Tables. # # The original qemu-cmd file is provided on standard input. # The transformed qemu-cmd file is on standard output. # The transformation assumes that the qemu command is confined to a # single line. It also assumes no whitespace in filenames. # # Copyright (C) 2020 Facebook, Inc. # # Authors: Paul E. McKenney <paulmck@kernel.org>
image="$1" if test -z "$image" then echo Need kernel image file.
exit 1 fi
consolelog="$2" if test -z "$consolelog" then echo"Need console log file name."
exit 1 fi
jitter_dir="$3" if test -z "$jitter_dir" || ! test -d "$jitter_dir" then echo"Need valid jitter directory: '$jitter_dir'"
exit 1 fi
seconds="$4" if test -n "$seconds" && echo $seconds | grep -q '[^0-9]' then echo"Invalid duration, should be numeric in seconds: '$seconds'"
exit 1 fi
bootargs="$5"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.