61 Commits

Author SHA1 Message Date
1e28f2eddf bump LDD3 submodule to inclue newer fixes by cirosantilli 2025-05-09 16:08:06 +01:00
e4847e4b40 kernel modules: add a quick scull port from LDD3
Also:

* fix fops.c on both kernels:
  * 5.9: the out of space error code was 1 not 8
  * 6.6: for whatever reason we can't read the user buffer as before on the
         diagnostic print, it leads to segfault and oops
* create memfile.c which is like fops.c but of unlimited size
2025-04-30 13:15:27 +01:00
9ba3d117a8 add ldd3 as a submodule just because 2025-04-28 10:38:01 +01:00
5686ec49a6 Fix buildroot broken build due to INRIA breaking links
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/165
2022-03-13 06:28:23 +00:00
5ec6595e1f gem5: update to 927cd10cb48c73e5a4a092ec42d36674c73892fd
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/147
m5term terminal input problem.
2021-03-27 00:00:01 +00:00
2581068a59 gem5: update to ccee3283341454c4480eadd568b010857a044d1a
Kernel boot 5.9 works on gem5 aarch64 now.
2021-01-15 00:00:00 +00:00
d76f5838f5 qemu: update to v5.2.0
Build was failing on Ubuntu 20.10 with:

qemu/docs/qemu-option-trace.rst.inc:4:Malformed option description '[enable=]PATTERN', should look like "opt", "-opt args", "--opt args", "/opt args" or "+opt args"

Likely fixed by: https://www.mail-archive.com/qemu-devel@nongnu.org/msg723079.html
2021-01-04 00:00:02 +00:00
39073519b1 GoogleTest hello world.
./build and ./test work automatically when cwd is inside userland/libs/XXX
without --package-all.
2020-11-25 00:00:00 +00:00
304bf3dbe9 more readme improvements 2020-10-30 00:00:02 +00:00
5c4683d3d3 linux: update to v5.9.2
buildroot: update to 2020.08.1
2020-10-30 00:00:01 +00:00
1cf5222769 gensim: update to official github repo now that they've migrated to git 2020-10-29 00:00:00 +00:00
f6be232ea8 Build improvements 2020-10-29 00:00:02 +00:00
a5dcad93b4 fixes 2020-10-29 00:00:01 +00:00
f6c3ba7c43 qemu: update to v5.1.0 2020-10-13 13:18:44 +01:00
9e8f4406dc freebsd for fun 2020-09-23 03:00:02 +00:00
76a48621f4 gem5: update to b2847f43c91e27f43bd4ac08abd528efcf00f2fd 2020-09-15 02:00:01 +00:00
91a65612a9 Fix fatal error: errno.h: No such file or directory in ./build-modules --arch aarch64
```
make -C '/home/ciro/bak/git/linux-kernel-module-cheat/out/linux/default/aarch64' M='/home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules'
make[1]: Entering directory '/mnt/sda3/linux-kernel-module-cheat-out/linux/default/aarch64'
  CC [M]  /home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules/dump_regs.o
In file included from /home/ciro/bak/git/linux-kernel-module-cheat/lkmc/aarch64_dump_regs.h:4,
                 from /home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules/dump_regs.c:8:
/home/ciro/bak/git/linux-kernel-module-cheat/lkmc.h:10:10: fatal error: errno.h: No such file or directory
 #include <errno.h>
          ^~~~~~~~~
```

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/127
2020-09-15 03:00:02 +00:00
e57885d146 gem5-resources 2020-08-03 01:00:00 +00:00
b5d6fcd7d8 Coremark: start
Fix --emulator native.

Add baremetal/arch/aarch64/contextidr_el1.c
2020-07-24 01:00:00 +00:00
12d5c9c947 gensim: add submodule 2020-07-22 05:00:04 +00:00
439882cc49 restore correct linux kernel submodule version v5.4.3
Accidentally updated at 144a552cf9 ooops. I
will start using worktrees now, I swear.
2020-07-22 03:00:02 +00:00
16ef5ecad1 nodejs and python helper symlinks 2020-07-17 02:00:01 +00:00
144a552cf9 More on O3, create a simple hazard and hazardless microbenchs to study pipeline 2020-07-14 01:00:00 +00:00
9be19ae1cf openmp validation: learn how to compile and run. No proper build integration yet. 2020-07-10 01:00:00 +00:00
1300b25e29 gem5: update to 56967e317bd7cc730e98ecaf0ab218fe3160857c
At last baremetal works again without any disk images.
2020-04-17 04:00:03 +00:00
14b87f6efe parsec-benchmark: update to 7b6c9d1c942014ba4e2233fe0305b2f9d9d3520b 2020-04-17 02:00:01 +00:00
4eba236615 dhrystone: update to 35f961d841f5cd3ff217b6c40537cb7bd13c7c48
Doc only change
2020-04-17 01:00:00 +00:00
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
f42c525d79 gem5: update to 5af26353b532d7b5988cf0f6f3d0fbc5087dd1df
Re-enable HDF5, build fixed.

THIS BREAKS GEM5 BAREMETAL! Fix and bug report incoming.
2020-03-16 00:00:00 +00:00
8a2cad195b gem5: update to 4c8efdbef45d98109769cf675ee3411393e8ed06
The Linux boot was still broken after the previous gem5 update. Let's try
a new one...

Add the --no-ccache option to benchmark builds.
2020-02-26 00:00:00 +00:00
2f7047024d gem5: update to fcbea600851fd72c69ecf3fc437628cd67c5123d
There have been a billion gem5 changes upstream (for the better), and I'll
admit that I was naughty and merged stuff into the python scripts with
gem5 master in mind. But there is always one new semi-critical stuff left,
the current one being: https://gem5.atlassian.net/browse/GEM5-337 so let's
just merge correctly in this reasonable state for now.
2020-02-23 00:00:01 +00:00
7482b6f631 gem5: update to ae7dd927e2978cee89d6828b31ab991aa6de40e2 2020-01-22 00:00:01 +00:00
ae17a79bba buildroot: update to 2019.11
qemu: update to v4.2.0

linux: update to v5.4.3
2019-12-27 09:35:51 +00:00
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
c3f2045e1f stream: play with the STREAM benchmark 2019-11-27 00:00:00 +00:00
4aff114c4c parsec: update to 1d4a1025e06a4f7ad23f1ca7f908e0135e712585 2019-11-13 00:00:01 +00:00
5cdbd57de0 gem5: update to fa877e19d31203744aecbb252a4f0207dc7491dd 2019-10-30 00:00:00 +00:00
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
59f96b192a dhrystone: create nicer custom build, baremetal almost working 2019-10-18 00:00:01 +00:00
f11dd1f830 arm baremetal: link back to svc answer 2019-07-19 06:59:14 +01:00
4a4407e7a8 qemu: update to d8dae268c0a3e4e361002aca3b382fedd77f2567
Now on top of QEMU v4.0.0.

Ha, everything just worked. That wasn't fun!

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/70
2019-05-29 00:00:04 +00:00
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
48079d0843 crosstool-ng: update to crosstool-ng-1.24.0
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/68

Copy source tree into build dir since ./ctng started failing out of tree.
I give up.
2019-05-27 00:00:02 +00:00
3527c8df5b gem5: update to 865287d5b593b84d6ad91946a9ca4c49e24f9595
Include workaround for: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/64
2019-05-27 00:00:00 +00:00
72200dee4e userland: scope every header identifier with lkmc_ 2019-05-21 00:00:01 +00:00
6fe9e5bae7 baremetal: symlink all programs that currently run on both userland and baremetal 2019-05-21 00:00:00 +00:00
5caf50747c gem5: update to 1bfc29b0592eb040a01d7977a14191c3d3d46c51
Work around fatal kernel too old with a hack, I can't stand it anymore.
2019-05-21 00:00:00 +00:00
b5558eeebe linux: updated to v5.1
Fix MS_RDONLY issue https://github.com/cirosantilli/linux-kernel-module-cheat/issues/56

mmap module had trivial update on return value incompatibility.
2019-05-21 00:00:00 +00:00
75fd708099 gem5: update to e2656006df442a995bf80ee03fa9700d6ec14537
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();
                     ^~~~~~~~~~
2019-05-21 00:00:00 +00:00
b60784d59b linux: update to v5.0 2019-03-05 00:00:01 +00:00