90 Commits

Author SHA1 Message Date
Ciro Santilli
cfa2e5ab04 Implement a minimum linux version build mechanism
We were about to use it for scull.c when we found a way to fix its build
intsead.
2025-05-09 16:16:55 +01:00
Ciro Santilli 六四事件 法轮功
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
Ciro Santilli 六四事件 法轮功
367df352d3 perf_event_open: generalize to multiple events 2020-11-18 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
d4a27987d6 play a bit with the ARM PMU 2020-11-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
52a5fdd7c1 fix c atomic mess 2020-09-17 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
584a90eae2 Docker: start migrating to 20.04
Still failing with:

Traceback (most recent call last):
  File "util/cpt_upgrader.py", line 73, in <module>
    from six.moves import configparser
ImportError: No module named six.moves

Also fix some issues noticed:

- userland/c/atomic was not ignoring arch specific examples
- ./build would not stop on the first error, now it does
- add libhdf5-dev as a dependency of gem5
2020-09-15 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
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
Ciro Santilli 六四事件 法轮功
ea989d7541 gem5: one concrete minimal example of a coherentxbar snoop 2020-08-12 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
b5d6fcd7d8 Coremark: start
Fix --emulator native.

Add baremetal/arch/aarch64/contextidr_el1.c
2020-07-24 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1795c003a2 skip requires_syscall_get_nprocs on gem5 2020-06-03 10:00:09 +00:00
Ciro Santilli 六四事件 法轮功
6202b44eba a quick C cat 2020-06-03 07:00:06 +00:00
Ciro Santilli 六四事件 法轮功
e73b200142 add missing cpu count to WFE SEV tests 2020-06-03 05:00:04 +00:00
Ciro Santilli 六四事件 法轮功
dfa60cd89d timespec_get.c: remove from baremetal, fails build 2020-06-03 04:00:03 +00:00
Ciro Santilli 六四事件 法轮功
ed369cd57e userland/arch/aarch64/dump_regs.c 2020-06-03 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f17e68a109 pure getcpu() example 2020-05-13 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f0e6ee9fb2 cpu register interface
pthread_barrier
2020-05-06 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ce1665d686 sched_getcpu: add missing ncpus for tests 2020-04-22 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
547ac466ef sched_getcpu example 2020-04-17 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
6bb20c0386 fix ./build-baremetal, default freestanding was wrongly set to True 2020-04-01 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e1d0a2fafb userland/freestanding/gem5_* work on baremetal
Remove all the duplicates of those present throughout the tree.
2020-03-26 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
d09a0d97b8 learn more c++, it never ends 2020-03-19 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
33f9862974 gem5: benchmark hdf5 stats 2020-03-16 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
f9acdc0525 start microbenchmarks section 2020-03-12 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
9f934c7cd6 cython: hello world and primes examples 2020-02-26 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
7c93912413 embedding python move from python-cheat 2020-02-24 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
b468b5bc95 pybind11: disable LKMC build 2020-02-24 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
7fbce888cf hdf5 2020-02-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
8447a9a8a7 userland: freestanding gem5 checkpoint restore examples 2020-02-20 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
d29a07ddad userland/arch/aarch64/inline_asm/futex_sev.cpp 2020-01-14 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
3b3f073e2c userland/arch/aarch64/freestanding/linux/gem5_exit.S to benchmark immediate gem5 exit
ldxr_stxr does an ldxr on thread 0 to fall in the ISA case where event is certain.

Also add ldxr_str which tests yet another case where event is certain: non conditional
write.
2020-01-10 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
cbd7a47966 skip aarch64_ldaxr_stlxr.cpp build in non aarch64 2019-12-23 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
89a981aaf2 arm WFE: add some userland examples 2019-12-16 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
10946a7d80 one useless futex example, hopefully correct 2019-12-13 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
a8ea7c81f1 wfe example, and more nostartfiles stuff 2019-12-12 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
7b74328603 c++ parallel sort algorithm example 2019-12-02 00:00:00 +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 六四事件 法轮功
5fd2a3da76 pthread_mutex: move in from cpp-cheat 2019-11-19 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
9dfcb316bf start moving algorithm in 2019-11-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
175b0e3d50 bst_vs_heap_vs_hashmap: create nicer version with separated benchmarks
One data structure per executable, and gem5 instrumented versions in
separate executables.

Create the allowed_emulators path_properties property.

TODO: wire it up to benchmark result generation and remove the old version.
2019-11-15 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
627623157c atomic.cpp: split into several versions one per executable 2019-11-15 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
730eb8e991 static g++: clarify pthread problems further 2019-11-15 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ca47a77676 fork and fork bomb moved in from cpp-cheat 2019-11-12 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
988289f766 gem5: classify all test failures
To skip tests, create a decent list of "which instructions a test use"
and "which instructions each simulator does not support".
2019-11-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
5b67747214 cpp: parametrize nthreads on threaded programs CLI
Mark them as multithreaded in path_properties. Preparation for
https://cirosantilli.com/linux-kernel-module-cheat/#user-mode-static-executables-with-dynamic-libraries
which is likely what breaks gem5 on them.
2019-11-04 23: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 六四事件 法轮功
02018daa95 arm: sve_addvl test program that prints sve length 2019-10-30 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
9afe5355e9 userland: add some random filesystem and random stuff
Some moved from C++, some moved from SO, some I just made up.
2019-10-18 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
b4b2164f29 wget: move from cpp-cheat 2019-09-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e0fb39c92a userland: move more multithreading from cpp-cheat!
Convert infinite_loop.c into loop.c. Keep all examples fast by default!
2019-09-07 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
d1d12e4b43 infinite_loop.c: document better, allow 0 magic value to not print
Enable test by passing arguments to the test to limit loops.

gem5 arm LSE: still skipped, but add a link to the master patch that was merged.
2019-09-07 00:00:00 +00:00