--quit-after-boot: fix for gem5, update path to gem5.sh
Improve the printing of results and errors:
- remove newlines from IDs at the end for ./test-boot
- remove newlines from progress for __call__ commands and don't print executed commands at all,
otherwise there are too many lines per test and it is hard to tell what is going on
- print backtraces for any exception in the threads (bugs while developing this code)
Tests across different archs and emulators are still not running in parallel,
which is a huge loss. TODO.
thread_pool: introduce with API. This was motivate by test-boot, I've had enough
of doing separate error handling for each loop type! Greatly dries up the code, awesome.
common: make --all-emulators work properly with native hopefully for the last time,
./test-baremetal was still failing.
gem5: don't pass --command-line for baremetal. Maybe later we can use it to actually
pass command line arguments to main()? To be seen.
The previous commit was failing to build in .fast due to unused variable on DPRINF:
/path/to/linux-kernel-module-cheat/out/gem5/default/build/ARM/dev/arm/gic_v3.cc: In member function 'virtual Tick Gicv3::read(PacketPtr)':
/path/to/linux-kernel-module-cheat/out/gem5/default/build/ARM/dev/arm/gic_v3.cc:94:21: error: unused variable 'context_id' [-Werror=unused-variable]
const ContextID context_id = pkt->req->contextId();
^~~~~~~~~~
This is a squash commit, the unsquashed development went through many
unstable phases which would break bisects. The unsquashed branch is:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/v3.0-unsquash
The main improvement of this release was to greatly generalize the testing system.
The key addition was cli_function.py, which allows scripts such as ./run to
be transparently called either from Python or from the command line.
New tests scripts were created using this improved framework: test-baremetal
and test-user-mode.
We were lazy to port some of less important tests to the new setup, TODO's were
added, and we need comes they will be fixed. Getting started is however sacred
as usual and should work.
Other changes include:
- gem5: update to 7fa4c946386e7207ad5859e8ade0bbfc14000d91
- run: --tmux-args implies --tmux
- run: add --userland-args to make userland arguments across QEMU and gem5
Get rid of --userland-before as a consequence.
- bring initrd and initramfs back to life
- build-userland: create --static to make build a bit easier
- gem5: --gem5-worktree also set --gem5-build-id
- remove --gem5, use --emulator gem5 everywhere
Allow passing --emulator multiple times for transparent tests selection
just like --arch.
- test-userland: allow selecting just a few tests
- linux: update to v4.20
- buildroot: update to 2018.08
The main motivation for this was to fix the build for Ubuntu 18.10, which
has glibc 2.28, which broke the 2018.05 build at the m4-host package with:
#error "Please port gnulib fseeko.c to your platform!
- getvar --type input
- failed xen attempt, refactor timer, failed svc attempt, aarch64 use gicv3
- build-doc: exit 1 on error, add to release testing
- build: add --apt option to make things easier on other distros
- build-linux: --no-modules-install
The update is required to include 3c3ca64b5f0dd9eef7b1ce1c65cc6e8e9147dd38
otherwise baremetal does not on VExpress.
baremetal: create a baremetal setup with crosstool-ng
buildroot: improve directory location: move out/dl inside
out/buildroot/download, and add a new out/buildroot/build level
tagline: generalize, deliver more value than howto, since now howtos
are starting to multiply
rename all top scripts to separate words with hyphen more consistently,
e.g. run-gdb instead of rungdb
getvar: list all variables
gem5: make m5out section to focus all releated information at
Prevent m5term Text file busy when rebuilding gem5 while it is running.
Unsquashed version at v2-rc-unsquashed, but that cannot be merged as it
breaks bisects at several points. All bugs will not bisect to this
humongous change.
It all started with a conversion of the Bash scripts to Python, mainly
because I couldn't stand not being able to properly use --options for
run which has a million options.
Then since that required a full testing, I decided to do all the
refactorings that I had in mind at once, and so I did and it became
v2-rc.
This is the largest patch I have ever done! OMG a few weeks of extra time.
I'm never writing a Bash script for anything that starts getting big again.
Some of the features are:
* separate build-qemu and build-gem5 commands
* common: convert scripts to python. Add --option for everything
* rename build to build-buildroot now that we are splitting all the build
commands, Linux kernel to follow
* move all git submodules to submodules/ and all buildroot packages to
packages/
* refactor the out/ structure. Keep projects on toplevel, because guest
projects separate archs and host ones don't, making a toplevel arch wrong
* do-release: rename to just release
https://stackoverflow.com/questions/16174992/cant-get-argparse-to-read-quoted-string-with-dashes-in-it
* run: add --terminal and explain gem5 pdb
* just track the lvimrc
* store CLI kernel config fragment inside buildlroot to avoid conflicts
* gem5: document m5 initparam
* readme: make a bunch of things awesomer
* readme: fix broken refs
* parsec-benchmark: update to 75d55ac446a43c47efb1044844a108c6c330184c
Could not fetch otherwise.
* gem5: M5_OVERRIDE_PY_SOURCE