Commit Graph

215 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
8dae332c17 run: fix image check logic accounting for userland
Was failing if I try to run userland (with abspath) when out/
directory is not present.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
73db3a4952 common: fix absolute path runs
--gdb: allow running from arbitrary directory
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1ca732bf75 userland: move more userland/arch/ logic into property tree 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
eba97f9cef userland: try to make userland executable selection saner
Only allow existing files to be built, stop extension expansion madness.

cli_function: get_cli print booleans properly, was printing without --no-
for negations.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e611806df9 run: create the uber convenient --gdb option 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
776ec896f2 run: create --tmux-program gdb to open gem5 GDB 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
7dedb18580 run: rename --wait-gdb in --gdb-wait, --gdb prefix might become a thing 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
74b3672dea gem5: --debug-flags without =, looks nicer whenever it can be done 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ca2dbcd25d userland: path properties getting nice! 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
8509f17a84 userland: native testing 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
5daad53289 thread_pool: support passing thread IDs
Then use that to fix gem5 error log read race.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
b49ebb1c8a userland: get a bit closer to perfection 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
85006363f8 test-user-mode: make perfect like build-userland
Multithreading and target selection.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
44ab6b7c6c userland: fix kernel version to work on older ubuntu
Expose --kernel-version to allow customization.

Update LTP info.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
8618025682 mtops.h is perfect now 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
0ef494b681 migrate all 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
146e568db8 move all our stuff into /lkmc in guest
Motivation: userland is getting several new subdirectories, it would be
too insane to just dump all of that in the guest root filesystem.

To alleviate the cd pain, .profile puts user inside /lkmc by default.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e32b1cba45 ./build-userland: resolve relative paths 2019-03-13 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
2b93b18646 run: --trace-insts-stdout 2019-02-20 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
a8b6f758ba split --prebuilt and --host into --gcc-which and --qemu-which
Only one --host exists at ./build-modules, since that can select the host
kernel, which is independent from the toolchain.

Document that user mode simulation stopped working.
2019-02-16 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1e2b7f1e5e arm baremetal: svc, get closer but not there yet 2019-02-06 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
325bef81bb run: --debug-vm-args: imply --debug-vm 2019-02-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
64dbf624db gem5: update to 9048ef0ffbf21bedb803b785fb68f83e95c04db8
--generate-dtb was removed and is set by default now
2019-01-28 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
4f6051af1d build android sketch 2019-01-23 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
da900a579c LKMC v3.0
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
2019-01-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
cb32b2994c gem5: use --generate-dtb by default 2018-12-04 15:10:02 +00:00
Ciro Santilli 六四事件 法轮功
61fa99844a run: minor style 2018-12-04 15:10:02 +00:00
Ciro Santilli 六四事件 法轮功
bc9e348a44 start simple integration to test dp650
Not yet merged on gem5 mailine, review published at:
https://gem5-review.googlesource.com/c/public/gem5/+/11036/1
2018-12-04 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
bf54be658e run: comments 2018-11-29 15:07:02 +00:00
Ciro Santilli 六四事件 法轮功
2a16ddc1bf run: trace to stdout 2018-11-29 15:07:02 +00:00
Ciro Santilli 六四事件 法轮功
ba2976cc7f gem5: fix arm multicore with system.auto_reset_addr = True
baremetal: fix aarch64/no_bootloader/semihost_exit.S which was wrong
because was using unset sp for register block. Tests needed urgently!!
2018-11-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
2b10066549 run: forward --userland and --baremetal to tmux! It's just beautiful. 2018-11-23 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
f73eaaffd2 prebuilt: automatically pick up qemu from PATH if not built like qemu-img 2018-11-22 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
35ab408e1e gem5: set kvm cpu type for arm 2018-11-22 12:28:07 +00:00
Ciro Santilli 六四事件 法轮功
65d33ab11e run: actually rename ./run --busybox-init to --eval-after
Had just changed the CLI parameter but nothing else!

Had half worked because Python argparse is insane and accepts substrings
like --eval-a.

Fix #43
2018-11-20 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
c2ac65a807 docker: split minimum setup to separate script 2018-11-17 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1fda6357c3 gdb: stub for testing userland
Not working because cannot find, requires moving --userland to common.py
2018-11-15 20:07:47 +00:00
Ciro Santilli 六四事件 法轮功
95c1800b0e run: dont break on userland due to missing termout file 2018-11-15 20:07:47 +00:00
Ciro Santilli 六四事件 法轮功
425fb26736 run: fix error log parsing 2018-11-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
238f1ad1c0 common: add --qemu option to override configs 2018-11-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
a06872241b the docker setup is perfect 2018-11-11 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
32420eec33 download-dependencies: merge into ./build --download-dependencies
Reuses the module system dependencies present there.

run: make --dry-run work even when there is no out directory yet

docker: make the wrapping more intuitive
2018-11-10 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
e0dbe2416d gdb: create some automated tests with pytest
gem5 baremetal: use m5exit m5op in exit() so as to not force users to
apply a patch for almost all examples
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
b1e16a59a1 baremetal: exit at the end of main instead of infinite loop
run: interpret lkmc_test_fail as the last line of test as an error
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
ba570f57f3 gem5: update to 121160d97f3d41220a26d3371a277434c3defea3 2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
49b2b1b896 baremetal: remove panic_on_panic from gem5
Fixes error:

    tried to set or access non-existentobject parameter: panic_on_panic
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
d39d5b8154 run: add --background option 2018-11-07 05:48:13 +00:00
Ciro Santilli 六四事件 法轮功
8fb9db3931 manually encode newlines on all printed commands
This way we group key value arguments: e.g.:

    make \
    -j 8 \
    all

instead of:

    make \
    -j \
    8 \
    all

and reach CLI nirvana, while also subtly breaking several commands due to
lack of testing.
2018-11-04 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
9693c23fe6 gdb userland and gdbserver are perfect 2018-11-03 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
34ee5f2fbf ./run --debug-vm: pass GDB arguments to the option on the CLI.
readme: remote g packet reply is too long

Benchmark gem5 single file rebuild
2018-11-02 00:00:02 +00:00