Commit Graph

156 Commits

Author SHA1 Message Date
Ciro Santilli
4e0d9af81f netlink 2018-04-20 17:51:17 +01:00
Ciro Santilli
af210a7671 Move arm to virt armv7, unify arm QEMU and gem5 builds
gem5 requires armv7, and we learnt that the versatiledb we were using
was pre-v7.

We could have moved to -M vexpress-*, but in the end decided to go for
-M virt due to its simpliciy, and uniformity with aarch64.

platform_device: does not work anymore and was removed, since it was tied
to versatilepb.

We left a mention on the README and removed all in tree source. The QEMU
patch is still left as it was.

As a consequence, the linux tree had no other patches, and we now use
vanilla linux by default, which is a great thing for reproducibility.

Another consequence is the /poweroff.out works for arm -M virt,
and we removed all mentions of the problem.
2018-04-19 23:38:17 +01:00
Ciro Santilli
50f2518656 kernel_module, sample_package: correctly forward Buildroot -O and -g flags
readme: improve optimization documentation
2018-04-17 15:05:27 +01:00
Ciro Santilli
72e9fcc4b0 proc_events.c: comment out aarch64 2018-04-17 09:22:20 +01:00
Ciro Santilli
0111ca406b CONFIG_PROC_EVENTS 2018-04-16 13:38:04 +01:00
Ciro Santilli
24cdcdc756 readme: document rdtsc 2018-04-16 00:48:10 +01:00
Ciro Santilli
51e31cdc29 x86_64: rdstc
arm: attempt pmccntr, but didn't work, TODO why: no QEMU support?
2018-04-15 14:10:21 +01:00
Ciro Santilli
f33dab4a1c linux: pr_debug with CONFIG_DYNAMIC_DEBUG=y 2018-04-14 21:27:47 +01:00
Ciro Santilli
a08a87dc0f readme: more info on kernel panics, oops an backtraces.
myinsmod: use either finit or init
2018-04-14 19:11:13 +01:00
Ciro Santilli
7b0bd10c0b ring0 priviledged actions 2018-04-13 14:27:03 +01:00
Ciro Santilli
d992ba4e6e Generalize module_version.c into module_info.c 2018-04-13 09:13:22 +01:00
Ciro Santilli
2427a322fc kstrto 2018-04-13 08:37:00 +01:00
Ciro Santilli
42e634ffd1 debugfs.c: extend example with toplevel file, fop and kstrtoull_from_user 2018-04-13 07:58:58 +01:00
Ciro Santilli
36940cb322 Get rid of Maintainers section for lower level headers
Move benchmark this repo out of conversation, there is plenty of action there!

Move kernel module sections and buildroot sections out of conversation.

Document the instruction count between baseline Buildroot and our monstrosity.

Put ./count-boot-instructions in a separate script.

Link to MIPS graphics QEMU question.

Link to VFIO QEMU question.
2018-03-18 15:14:20 +00:00
Ciro Santilli
e8f09a76e6 Add a shortcute for /eval.sh
Create /eval_base64.sh to overcome quoting and newline limitations.

Documente poweroff's failure on readme.
2018-03-14 21:13:45 +00:00
Ciro Santilli
039b8a498c OpenBLAS
Also don't add br2_local by default, default params are insane.
2018-03-14 12:26:49 +00:00
Ciro Santilli
efb9c5458e parsec: more details, fix errors, more tests 2018-03-10 18:22:09 +00:00
Ciro Santilli
0e4791fd51 Improve kernel module doc 2018-03-05 16:06:30 +00:00
Ciro Santilli
2eff007f7c GEM5 checkpoint switch to HPI for benchmarking.
Don't pass -e on checkpoint restore.

Add benchmarks to how much GEM5 is slower than QEMU.

Rename Kernel boot command line arguments to match kernel docs name.

Document how to pass extra options to GEM5.

Start listing interesting benchmarks to run on GEM5.

Add an openmp hello world.
2018-02-25 10:59:28 +00:00
Ciro Santilli
6420c31986 GEM5 gdb debug
Improve GEM5 documentation in general.

Fix documentation for x86 kernel module debugging example, fop_write had been made static,
and use timer.ko instead of fops which is more reliable and fun.
2018-02-22 10:05:57 +00:00
Ciro Santilli
66e7208364 Make aarch64 boot again and explain its limitations better.
Restore lkmc_min that was accidentaly removed.

Explain how to remove modules that fail to build.
2018-02-14 07:56:35 +00:00
Ciro Santilli
254c8bf42e adoc
Semi automated conversion, in part because Pandoc is kind of buggy for adoc:

Some of the commands were along the lines:

    for f in *.md; do pandoc --atx-headers --base-header-level=3 -o ${f%.md}.adoc --wrap=none $f; done
    sed -Ei '/\[\[.*\]\]/d' *.adoc
    while read -r f; do cat $f; echo; done <f >g
2018-02-14 04:26:07 +00:00
Ciro Santilli
dc495f9334 Linux v4.15 2018-01-31 23:21:11 +00:00
Ciro Santilli
12abf43b78 Attempt migration to Buildroot 2017.08 + kernel 4.12.
Build fails at: https://git.busybox.net/buildroot/commit/?id=c128c5f3c79b31d89256ffbc5c650ba613d3d52b
2017-11-16 00:57:03 +00:00
Ciro Santilli
2e04c96fad MODULE_VERSION and srcversion 2017-11-13 15:49:22 +00:00
Ciro Santilli
98756d2454 Fix workqueue_cheat README link 2017-11-13 14:34:56 +00:00
Ciro Santilli
844b7c0411 Fix workqueue cheat link 2017-11-13 14:34:25 +00:00
Ciro Santilli
fa0a7e150d Less converstaion 2017-11-13 14:25:24 +00:00
Ciro Santilli
9ec43c4e88 lkmc_platform_device read example 2017-11-11 14:11:23 +00:00
Ciro Santilli
d8da713cf7 bak 2017-11-11 12:08:02 +00:00
Ciro Santilli
0d7259fe81 Remove runqemu from build... document platform_device.c a bit further, add a modprobe.conf test 2017-11-11 11:11:06 +00:00
Ciro Santilli
42051b51ed travis 9: bash -x debugging, make-host make nproc optional 2017-11-02 16:44:44 +00:00
Ciro Santilli
a8fe6cce28 Add userland hello world sanity check 2017-10-08 22:19:48 +01:00
Ciro Santilli
f3253d5109 rand_check pid 2017-10-07 07:21:08 +01:00
Ciro Santilli
62976c688b update to qemu v2.9.0! rand_check.c, init_forward.sh 2017-10-07 04:11:08 +01:00
Ciro Santilli
88cd83cd02 init_dev_kmsg 2017-10-01 22:27:25 +01:00
Ciro Santilli
f96d4d55c9 Rm useless init.sh, init_hello and poweroff are not init specific, so rename them more generically 2017-10-01 09:16:07 +01:00
Ciro Santilli
cbea7cc02c your inits are belongz to uz 2017-09-30 21:27:12 +01:00
Ciro Santilli
f80957cc40 frace docs an mmap minor improvements 2017-09-29 23:36:34 +01:00
Ciro Santilli
8d668d6ed3 Use busybox devmem 2017-08-08 11:56:01 +01:00
Ciro Santilli
a5b2038eab Fix character_device_create.c with missing cdev_del 2017-08-06 12:58:13 +01:00
Ciro Santilli
f67d99ff24 character device failure TODO, mknoddev use awk 2017-08-06 12:41:05 +01:00
Ciro Santilli
dab04d1852 character_device_create 2017-08-06 12:21:05 +01:00
Ciro Santilli
b2459d07f5 Add a non-root user user0 password "a" 2017-08-06 10:19:37 +01:00
Ciro Santilli
879001563a Attempt uio with devmem. I give up on UIO for now 2017-08-05 23:06:47 +01:00
Ciro Santilli
c6edbfddb0 devmem3 cleanup further 2017-08-05 21:24:16 +01:00
Ciro Santilli
d871c008fb devmem3 2017-08-05 21:18:57 +01:00
Ciro Santilli
83411a0597 sketch uio 2017-08-05 12:32:24 +01:00
Ciro Santilli
1f4f7faeba Document pagemap futher 2017-08-04 08:21:20 +01:00
Ciro Santilli
bb419de1fe Dont override CC for user make 2017-08-04 07:45:13 +01:00