Commit Graph

249 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
f5d4998ff5 gem5: expose syscall emulation multiple executables 2020-04-29 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
68f974f05f gem5: fix kernel run, don't set --bare-metal with kernel
Broken on recent commit.
2020-04-03 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
c0bc5cffed pass disk image to baremetal if present
Why not? But this is mostly a cheap workaround for gem5 baremetal not
handling no disk images.
2020-04-03 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
66473201eb dhrystone baremetal!!!
Factor out --optimization-level and --static to all builds

More conventionally set argv[0] to be the basename of the image.

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
2020-04-02 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
b7887ac06b gem5 baremetal cli!!!
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/67
2020-04-02 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
637ef640bf qemu-baremetal-cli-args
QEMU part done https://github.com/cirosantilli/linux-kernel-module-cheat/issues/67
2020-04-02 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
c5aeb1791c Fix init environment code examples
Likely not updated after --kernel-cli-after-dash was added.

Prompted by: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/120
2020-03-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
44a45c0656 out/run.sh: write before execution 2020-03-14 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
a1b312891f run.sh shortcut, m5 executable userland 2020-03-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ba49c4a37e gem5: fix run which had removed --bootloader and --interp
At 1f007b2004 I accidentally removed them
while doing a temporary test.
2020-03-11 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1f007b2004 gem5: more analysis 2020-02-28 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
8447a9a8a7 userland: freestanding gem5 checkpoint restore examples 2020-02-20 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
f2713e69f6 Don't pass dummy disk images to gem5
After https://gem5.atlassian.net/browse/GEM5-337:

- gem5 baremetal can run without any disk images, just like QEMU
- gem5 X86 can run with a single disk image and no horrendous dummy vmlinux
  and second disk image
2020-02-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
17fba4a968 gem5: update to 1db7ecb4ce46e4ea525e6564032b4486c72c1c41
M5_PATH is not needed anymore, get rid of it!
2020-02-13 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
47bb44ec5b ./run --tmux works again without --gem5-worktree, was looking for None/m5term 2020-02-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
57ead1bd2d run: forward --gem5-worktree to tmux 2020-01-21 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d5876c9980 --debug-vm-args affects --debug-vm-rr, fix #112 2020-01-07 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
90f3701f83 run: OK, I give in, --debug-vm-file is on 2019-12-24 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
31dcf128c4 run: --gem5-script link to #gem5-fs-biglittle 2019-12-23 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
5d233f2664 gem5: update to bcf041f257623e5c9e77d35b7531bae59edc0423
This notably allow dynamic linking to work! Move entire README to it.

Also:

- explain what Dhrystone does and run it on gem5 to get DMIPS
- create getprops
- ./test-executables don't test files that start with "tmp."
2019-11-28 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
9dfcb316bf start moving algorithm in 2019-11-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ed602152b3 qemu-rr: add missing LFs 2019-11-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f895d89227 qemu-rr: remove ./run -r and -R record and replay short options
In line with the "be very conservative with short options" philosophy.
2019-11-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
b92016218d gem5: expose --memory to se.py and fs_bigLITTLE.py 2019-11-08 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
4c3b9c79a7 readme: --dry-run setup, give emphasis on getting started
Instruction counts for the busy wait loop program.
2019-11-08 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
6936bd6ba9 how to update gcc
Automatically add extra remotes from ./build.
2019-10-31 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f8848329f7 gem5: LF!!!!! 2019-10-29 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
c62848d228 gem5 fs_bigLITTLE.py: enable m5 readfile 2019-10-29 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
44227c7b6a gem5: update to 239054f48439c18b93e1a70ff29dbcb0c4742cff
fs_bigLITTLE: no patches needed anymore, we now have the --root option.
2019-10-29 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d282759944 ./gem5.sh: document better 2019-10-29 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
6aa375df2a run: make --num-cpus work in gem5 userland and fs_bigLITTLE.py 2019-09-07 00:00:04 +00:00
Ciro Santilli 六四事件 法轮功
4ff62c4840 enable basic mozilla rr support 2019-08-28 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
677b4646bb get rid of machine2, that was too insane 2019-08-27 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
398d09d5ae gem5: fix fs_bigLITTLE: error: unrecognized arguments: --num-cpus 1 2019-08-21 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d7a24ea200 start moving malloc and friends in 2019-08-11 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d205140557 userland: move some multithreaded examples from cpp-cheat
Using them mostly to evaluate how well the emulators are handling user
mode multithreading.
2019-07-19 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
6fe321deed gem5: make --cpus work in user mode simulation 2019-07-19 06:59:14 +01:00
Ciro Santilli 六四事件 法轮功
7b0ac771dc relase: get failed extract-vmlinux automation back working
Only the command is back in business, but it does not work:
https://github.com/cirosantilli/linux-kernel-module-cheat/issues/79
2019-07-14 00:00:04 +00:00
Ciro Santilli 六四事件 法轮功
4c71ac5072 run: automate failed extract-vmlinux 2019-07-14 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
f9fc7aa372 run: make gem5-shell work even when not on cwd 2019-07-14 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
89bb810768 gem5: exit with error status on simulate() limit reached 2019-07-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
d334a0db53 gem5: fix --gem5-readfile
Was completely broken due to confusion between --gem5-readfile and a common
variable with the same name which referred to the file path... OMG.

Conclusion: no one has ever used this tutorial!

Improve ./gem5.sh documentation.

Also fix ./gem5-bench-dhrystone.
2019-07-13 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
2438410c25 gem5: put m5 back in path, was in lkmc/bin/m5
It is a dilemma to do this or not, since all other test execs are
not in /bin, but I'll go with "this is not just a random test program" for
now. Let's see.

Checkpointing: correctly sort fs.py checkpoints numerically, was only
working previously due to coincidence.
2019-07-11 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
28cd27f969 Move all non-README links to cirosantilli.com where the file is not cut off... 2019-07-07 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
3fdd83c2c5 Rationalize -mcpu for emulators, compilers and assemblers on ARM
Move SVE example in from arm-assembly-cheat.

atomic.cpp aarch64 add LSE ldadd placeholder, not compiling yet
2019-06-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
a99b897891 kvm: fix kvm_init_vcpu failed: Invalid argument on QEMU aarch64 2019-06-07 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
4d001f521f gem5: update to 08c79a194d1a3430801c04f37d13216cc9ec1da3
Fix gem5 userland fatal: kernel too old.

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/64
gem5 x86 boot fails with: "Assertion `locked && curr_frag_id == 0' failed

So we are now back to mainline gem5!
2019-05-29 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
8138e68810 update kernel version everywhere 2019-05-25 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
c15c43f0b0 tmux: pretty print the command to be executed 2019-05-21 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
01984c2201 test-boot: run in parallel
--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.
2019-05-21 00:00:00 +00:00