Ciro Santilli
2bddcc2891
build: unify QEMU and gem5 kernel configs! The last one!
...
Split optional and required kernel configs into separate files.
readme: describe how our kernel configs are generated from Buildroot
readme: document QEMU `-no-reboot` and speculate gem5 `panic_on_panic`
in preparation for some more automated bisection with ktest.
2018-04-21 11:50:02 +01:00
Ciro Santilli
4e0d9af81f
netlink
2018-04-20 17:51:17 +01:00
Ciro Santilli
05888ec5c1
readme: rerun gem5-bench-caches and take some conclusions
2018-04-20 00:15:22 +01:00
Ciro Santilli
759fb7b7c8
run: move run.sh into out/arch/qemu or out/arch/gem5 subdirs
...
This allows to compare both commands as the run.sh won't overwritten.
2018-04-19 23:51:21 +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
2852fe1989
readme: failed attempt at arch/arm/boot/compressed/vmlinux
2018-04-19 09:14:49 +01:00
Ciro Santilli
2c084f5fb2
run: create -F option to run base64 encoded command after busybox init
...
Fix ./run -h which was showing the build help instead.
2018-04-19 08:57:35 +01:00
Ciro Santilli
9805d333ea
tc: create helper to access toolchain tools
2018-04-19 08:24:10 +01:00
Ciro Santilli
3fdabbda61
configure: updated submodules recursively
...
Otherwise, on the git module update fallback, QEMU's submodules don't get updated.
Also add a --recursive to the main qemu clone, just in case they add
submodules to the submodules in the future.
2018-04-19 07:34:57 +01:00
Ciro Santilli
f618718248
Merge branch 'master' of github.com:cirosantilli/linux-kernel-module-cheat
2018-04-19 07:21:10 +01:00
Ciro Santilli
0d8c066a8e
merge
2018-04-19 07:20:59 +01:00
Ciro Santilli
81e8ca6fb9
build: create out_dir to put out/cli into it
...
Fix:
```
touch: cannot touch /linux-kernel-module-cheat/out/br2_cli: No such file or directory
```
2018-04-19 06:46:09 +01:00
Ciro Santilli
ca84b8d0a7
readme: typo BR2_SOME_OPTION
2018-04-18 20:35:16 +01:00
Ciro Santilli
adfa082cd0
readme: ./build -K recommend putting inside data/
2018-04-18 15:42:17 +01:00
Ciro Santilli
b21d78b96f
readme: more /proc/config.gz info on README
2018-04-18 15:30:39 +01:00
Ciro Santilli
8d9e1ac1a8
readme: CONFIG_LOGO, group with other interactive stuff
2018-04-18 15:25:54 +01:00
Ciro Santilli
b5d64142e9
readme: explain how to use dynamic debugging for boot messages
...
run: pass the console_msg_format=syslog boot parameter by default,
to allow seeing what is the priority of messages on the terminal.
Document printk better.
2018-04-18 15:04:19 +01:00
Ciro Santilli
5698a5ed2b
build: move br2_cli.gitignore to out/
2018-04-18 14:06:48 +01:00
Ciro Santilli
f4eed4163b
scripts: factor out benchmarks and run further with ./eeval and common_bench_cmd
2018-04-18 12:47:43 +01:00
Ciro Santilli
96090a4c24
readme: aarch64 gem5 hpi slow: document gem5 update and cache size increase not working
2018-04-17 22:54:55 +01:00
Ciro Santilli
cc6099dd6b
gem5: update to 2a9573f5942b5416fb0570cf5cb6cdecba733392
2018-04-17 22:54:21 +01:00
Ciro Santilli
ad6e311a8b
readme: gem5 arm possible good panics...
2018-04-17 21:33:24 +01:00
Ciro Santilli
991dd49748
readme: arm gem5 slow fix good commit
2018-04-17 17:15:43 +01:00
Ciro Santilli
3f1979c1b2
readme stress: expected outcome of ps
2018-04-17 15:08:42 +01:00
Ciro Santilli
fad1eb0a99
readme: too may try outs
2018-04-17 15:07:27 +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
ffa430eef9
readme: typo
2018-04-17 13:16:33 +01:00
Ciro Santilli
02b433e3ee
readme: move compiler optimization section under Buildroot
2018-04-17 13:11:18 +01:00
Ciro Santilli
383e1c3120
readme: ./run -f does not need a - in the argument
2018-04-17 13:05:26 +01:00
Ciro Santilli
6e8cf30849
stress
2018-04-17 11:51:13 +01:00
Ciro Santilli
d5de5c6324
ltp
2018-04-17 11:15:22 +01:00
Ciro Santilli
de9dba276b
readme: document failed attempt to get newer uclibc to fix aarch64 proc_events
2018-04-17 10:44:03 +01:00
Ciro Santilli
4e42e29f6d
readme: recommend better br2 path data/br2
2018-04-17 10:28:18 +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
d58d4f0796
readme: more detail to GDB step debug userland non-init without -d
2018-04-16 11:06:14 +01:00
Ciro Santilli
bfba11afdd
run: add qemu options directly into run
...
readme: add ascii tmux split screenshot to preamble
2018-04-16 01:09:11 +01:00
Ciro Santilli
24cdcdc756
readme: document rdtsc
2018-04-16 00:48:10 +01:00
Ciro Santilli
6eae8bb052
readme: document arm lx-symbols failure
2018-04-15 22:59:50 +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
ae780f6750
Two working methods for module_init GDB step debugging!
...
Not perfect, but doable.
2018-04-15 11:05:03 +01:00
Ciro Santilli
3cc33a8fe8
readme: find module load address with pr_debug
...
Post mortem stack to line with GDB.
2018-04-14 23:36:51 +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
898e945e6c
Merge branch 'master' of github.com:cirosantilli/linux-kernel-module-cheat
2018-04-13 13:41:12 +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
94fdb4e003
kernel config: aarch64 CONFIG_8139CP for rtl8139 which is required for qemu record and replay
2018-04-12 13:41:19 +01:00