bisect-gem5-linux-boot 373 B

12345678910111213
  1. #!/usr/bin/env bash
  2. # https://github.com/cirosantilli/linux-kernel-module-cheat#bisection
  3. set -eu
  4. cd ../..
  5. ./build-gem5 --gem5-build-id bisect
  6. set +e
  7. # Setup for quick failures:
  8. # https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
  9. timeout 5 ./run --emulator gem5 --gem5-build-id bisect --quit-after-boot
  10. if [ $? -ne 124 ]; then
  11. exit 1
  12. fi