mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
bisect-gem5-linux-boot: use --gem5-worktree instead of --gem5-build-id
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
# https://cirosantilli.com/linux-kernel-module-cheat#bisection
|
# https://cirosantilli.com/linux-kernel-module-cheat#bisection
|
||||||
set -eu
|
set -eu
|
||||||
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
"${root_dir}/build-gem5" --arch aarch64 --gem5-build-id bisect --clean
|
"${root_dir}/build-gem5" --arch aarch64 --gem5-worktree bisect --clean
|
||||||
"${root_dir}/build-gem5" --arch aarch64 --gem5-build-id bisect
|
"${root_dir}/build-gem5" --arch aarch64 --gem5-worktree bisect
|
||||||
set +e
|
set +e
|
||||||
# Setup for quick failures:
|
# Setup for quick failures:
|
||||||
# https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
|
# https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
|
||||||
timeout 400 "${root_dir}/run" --emulator gem5 --gem5-build-id bisect --quit-after-boot "$@"
|
timeout 5 "${root_dir}/run" --emulator gem5 --gem5-worktree bisect --quit-after-boot "$@"
|
||||||
if [ $? -ne 124 ]; then
|
if [ $? -ne 124 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user