Commit Graph

61 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
192a657250 start moving arm-assembly-cheat readme in here 2019-05-12 00:00:05 +00:00
Ciro Santilli 六四事件 法轮功
a13e99ec1c assembly SIMD add: make uniform for all ISAs, mark as entry point to learning SIMD 2019-05-12 00:00:04 +00:00
Ciro Santilli 六四事件 法轮功
1ab7fbf607 Fix import_path circular dependency by splitting it out.
Use import thread_pool instead from, from is evil.

Fix poweroff.out path for ./trace-boot.
2019-05-12 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
7cf3c20a40 x86 assembly: addpd 2019-05-12 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
fe9c31f737 fix run-toolchain, qemu-monitor, trace-boot, trace2line, bisect-linux-boot-gem5. Fixes part of #63
I'm sad no one reported qemu-monitor break, that one is kind of important.

count.out arguments broke it as an init program, since the kernel adds trash
parameters to every init.

Is anyone using this repo, I wonder? Keep pushing, keep pushing.
One day it gets good enough, and the whole world will see.
2019-05-12 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
300671cd39 x86 paddq: test entire family 2019-05-11 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
16ecab4af0 x86: paddq 2019-05-10 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
5d774c0947 gas_data_sizes.S: make PIE for all ISAs 2019-05-09 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
7014d34576 gas data sizes 2019-05-09 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
5e55547ce1 userland x86_64: allow ASSERT_EQ to take just about anything 2019-05-09 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
53ef7281a4 userland x86_64: implement ASSERT_MEMCMP 2019-05-08 00:00:10 +00:00
Ciro Santilli 六四事件 法轮功
fce78fcd46 userland x86_64: ASSERT_EQ show actual and expected values 2019-05-08 00:00:08 +00:00
Ciro Santilli 六四事件 法轮功
88db1a725a userland assembly: build empty.S and fail.S to toplevel and run fail.S with path_properties exit_status
They were just duplicating stuff needlessly while we don't support non-native in-tree builds,
which leads to executable conflicts for C file anyways.
2019-05-08 00:00:06 +00:00
Ciro Santilli 六四事件 法轮功
62571fa649 aarch64: fix ASSERT_EQ_REG tests on gem5
Was doing an 8-byte aligned store, which gem5 dislikes.

But the ARMARM says bad things may happen there, notably a signal:
"D1.8.2 SP alignment checking" so gem5 is not really too wrong,
QEMU just happens to work by chance.
2019-05-08 19:23:53 +01:00
Ciro Santilli 六四事件 法轮功
40169f7427 baremetal: implement C assert 2019-05-08 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
3d83206461 baremetal: ah, actually nope, it didn't work :-(
Workaround for now. Works on asserts, but not on exit 1.

Some other day, maybe.

https://github.com/cirosantilli/linux-kernel-module-cheat/issues/59
2019-05-07 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f176d04500 userland: start refactor to show failing values on failure!
aarch64 basically done, but missing:

- other archs
- maybe convert main.c into C++ to use templates?
- full review of ASSERT_EQ calling convention issues not seen by tests
  by chance
- documentation
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e26a60f376 userland: classify linux 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
9cd48d5184 userland: make libs work
Working for build, but now test-user-mode-in-tree is not using --in-tree,
TODO fix later on.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e5dbbcd8c2 userland: only link to lkmc.o if needed 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f1c3b64a55 userland: x86_64 linux hello world make PIE 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
fb3fdaa8a6 userland: move getchar from cpp-cheat 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
5695748b3f userland: move posix/environ from cpp-cheat 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
8509f17a84 userland: native testing 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 六四事件 法轮功
0c9afcf9b6 asm: prefix every linux specific with linux/ 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1d766fe3d7 userland: make build perfect 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 六四事件 法轮功
1cc3ee8657 rename include to lkmc 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
aea97698c3 bak 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
0ef494b681 migrate all 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ecef42be81 start the big userland migration 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 六四事件 法轮功
42f8de774a userland: add ported to all archs 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
3388d72bb2 asm: more links 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
549bd4a7fd x86 fail works 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d4f698306a document userland asm syscall interfaces 2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
0263c21557 userland: add assembly support
Move arm assembly cheat here, and start some work on x86 cheat as well.
2019-05-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
4943c9ed2e userland: in-tree build shortcuts from inside tree 2019-03-15 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e32dcb85e9 userland: start per-directory flags with userland/gcc 2019-03-13 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
a85ca696c4 userland: move hello_cpp.cpp into cpp 2019-03-13 18:25:53 +00:00
Ciro Santilli 六四事件 法轮功
276688bb33 userland: allow selecting targets, including directories 2019-03-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
550897ce17 build-userland: multithreading
Looking ahead for when I'll move cpp-cheat C++ slowness in.

First tried with concurrent as in:
https://stackoverflow.com/questions/19369724/the-right-way-to-limit-maximum-number-of-threads-running-at-once/19370282#19370282
Implementation was easy, but I can't find out how to exit immediately on error,
so I came up with this setup instead.
2019-03-12 10:01:38 +00:00
Ciro Santilli 六四事件 法轮功
1a0d15ca86 userland: convert make to python 2019-03-12 10:01:38 +00:00
Ciro Santilli 六四事件 法轮功
852c1c01ae userland: get rid of interactive
We are already whitelisting tests on a one on one basis for tests
that depend on kernel modules, so get rid of that other way of specifying
the same information.
2019-03-10 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
c382ecf3f7 gcc: neverbuild, Buildroot can rebuild it :-) 2019-03-10 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
23f80c2310 binutils: describe gas hello world hack 2019-03-05 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
a30ed0f047 inline assembly: improve everywhere 2019-02-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d5e16fd8ae lkmc_vector_equal into lkmc.c
Document lkmc.c
2019-02-20 00:00:04 +00:00
Ciro Santilli 六四事件 法轮功
e855a262fd aarch64 baremetal svc factored out for C and asm 2019-02-18 00:00:00 +00:00