Commit Graph

220 Commits

Author SHA1 Message Date
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
2427a322fc kstrto 2018-04-13 08:37:00 +01:00
Ciro Santilli
c1c517a1c7 readme: link to gem5 spectre meltdown poc 2018-04-12 11:20:58 +01:00
Ciro Santilli
08abfb1e85 run: Ctrl+C works and gets passed to guest... at last!
readme: document graphics failures on arm and aarch64 further.
2018-04-11 01:08:30 +01:00
Ciro Santilli
4601aff344 zip-img: create, zips all QEMU images
build-all: make gem5 rebuild optional

rootfs_post_image_script: prevent qemu-img from generating trace files
2018-04-10 23:24:42 +01:00
Ciro Santilli
ca1ce45811 buildroot baseline: use cpio to find minimal image sizes 2018-04-10 14:56:45 +01:00
Ciro Santilli
b6dc20cb74 trace-boot: automate instruction count on arm
Clean old trace boot results with new automated results.
2018-04-10 03:38:24 +01:00
Ciro Santilli
fb317f4778 readme: document failed attempts at QEMU ARM shutdown automation 2018-04-09 11:46:35 +01:00
Ciro Santilli
8b77fe703b readme: kgdb only working in x86 graphic mode
Not sure if it ever worked outside, but I guess it didn't.

Fix should be simple, but not important enough.
2018-04-08 18:16:35 +01:00
Ciro Santilli
9e79b9b06f Save .log output files to out/arch/
This is cleaner as it removes yet another .gitignore rule and allows
for one command per arch.

This was prompted by the recent Docker patch creating files as root,
which then breaks future host runs.

Also separate all arguments by newlines. This:

- makes it much easier to minimize when reporting QEMU bugs
- shows the full command on the screen despite line wrapping being turned off
  by one of the annoying emulators, to be investigated.

The commands are not yet pristine, because:

- there are some leading spaces
- options not sorted

but it is already a huge improvement, and those operations are now be easy from Vim.

The general strategy is:

- end every variable containing a command with a newline
- when expanding such variables, don't add an extra newline
2018-04-08 17:49:14 +01:00
Ciro Santilli
21499559eb readme: extend actual commands ran to report upstream bugs 2018-04-08 16:09:42 +01:00
Ciro Santilli
ef421c6a43 qemu rr: update status 2018-04-08 15:30:47 +01:00
Ciro Santilli
105c506ac6 sample-package: create 2018-04-08 12:49:12 +01:00
Ciro Santilli
c5f4d2289e readme: -monitor is what is killing out ctrl-c 2018-04-08 11:41:34 +01:00
Ciro Santilli
294a8c2424 docker: crate docker host setup
readme: standardize keyboard input notation to the format: Ctrl-C
2018-04-08 10:27:26 +01:00
Ciro Santilli
d5950cb499 readme: benchmark initial build is on p51 2018-04-07 18:50:40 +01:00
Ciro Santilli
cc190fd355 readme: fix all broken asciidoctor links.
Add the -v flag to build-doc to help catch them later.
2018-04-07 18:46:26 +01:00
Ciro Santilli
6a745855d7 Merge commit '7d9102373d60bd159920abfe96d636420afedd67' 2018-04-06 01:35:24 +01:00
Ciro Santilli
9405b35ad2 Create data/ dir, move cli, 9p and readfile there. 2018-04-06 01:02:41 +01:00
Ciro Santilli
6692ec03f7 Linux v4.16 2018-04-05 22:37:08 +01:00
Ciro Santilli
330edbe8eb Reorganize the benchmark section.
Automate Linux kernel measures and move them into that new section.
2018-04-05 22:36:46 +01:00
Ciro Santilli
7d9102373d gem5-bench-cache: allow bench without regenerating checkpoints
Print Dhrystone size on the output as well.
2018-04-05 14:06:17 +01:00
Ciro Santilli
8a68375b2e Merge branch 'master' of github.com:cirosantilli/linux-kernel-module-cheat 2018-04-05 09:59:56 +01:00
Ciro Santilli
8a6e4bcd35 readme: document gem5 kvm failure error message 2018-04-05 09:59:45 +01:00
Ciro Santilli
32920fd25d Reorganize the benchmark section.
Automate Linux kernel measures and move them into that new section.
2018-04-05 08:53:50 +01:00
Ciro Santilli
e38a1dea92 Linux v4.16 2018-04-04 10:09:17 +01:00
Ciro Santilli
f482f24f87 readme: explain how to run benchmarks with readfile straight out
gem5 cache automate benchmarks, and remove results that were scattered all over.

Move console fun under linux kernel section, since not important enough
for getting started.

Set arch x86_64 by default through common on all scripts.
2018-04-03 22:28:53 +01:00
Ciro Santilli
0dd444d8eb readme: start update and automate gem5 cache benchmarks
Missing HPI.
2018-04-03 18:03:38 +01:00
Ciro Santilli
f3503b4cc8 readme: link to gem5 perf so answer 2018-04-02 22:49:17 +01:00
Ciro Santilli
12083ec1fa readme: console fun, arm /dev/fb0 works 2018-04-02 20:36:33 +01:00
Ciro Santilli
4462aa75ac gem5 readme: document failed restores on aarch64 2018-04-02 19:51:31 +01:00
Ciro Santilli
1f5baf5371 gem5: m5 execfile 2018-04-01 22:47:55 +01:00
Ciro Santilli
56fd3975d6 gem5: benchmark x86 after gcc 7 2018-03-31 07:58:20 +01:00
Ciro Santilli
4cb8a543ee gem5 build benchmark 2018-03-31 07:41:04 +01:00
Ciro Santilli
5f2a6fbd8b readme: gem5 checkpoint restore and run another script 2018-03-31 07:20:57 +01:00
Ciro Santilli
5235854384 Create the cli.gitignore mechanism to pass extra default cli options
Document that X11 mouse is not moving.

Convert x='' to x= on all scripts, and also fix case ;; indentations.

Add dummy value to QEMU's -trace enable= to prevent warning.

Expand built-in package choice rationale.
2018-03-30 17:03:17 +01:00
Ciro Santilli
9076c1d9bc parsec: general cleanup, retest everything
Get rid of br2_parsec, since there are just too many possible variations on that file.

Blow up the gem5 vs qemu table to make it saner, add missing aarch64 entries.

Make sections titles describing number of cores and memory size emulator agnostic.
2018-03-29 21:16:50 +01:00
Ciro Santilli
9afaecec87 readme: gem5 tracing.
Fix some parsec readme errors after missed ./run flag updates.
2018-03-29 18:24:25 +01:00
Ciro Santilli
9fd72c786f Move all build and run output to out/$arch/
Most of it was present inside buildroot/output.* and the rest scattered
on top level.

This came about for the n-th time when we were reviewing QEMU trace file
locations.

On one hand, it would be cool to have per arch traces.

This made buildroot/output.${arch}~/ a natural choice.

But on the other, those traces have nothing to do with Buildroot,
and could potentially interfere with Buildroot build files.

It also feels nicer to have buildroot/ pristine source code only,
and keep all output under a single directory out/
2018-03-29 02:08:18 +01:00
Ciro Santilli
f74e001789 readme: m5 readfile
gitignore: trace-
2018-03-28 22:17:00 +01:00
Ciro Santilli
f5065183a8 tracing: create trace2line
This lead to a re-factoring of count boot instructions, since trace2line
relies on the same tracing mechanism.

Also, now that we have common factored, I've decided to put the traces on
the out dir, to concentrate all outputs in a single place, and allow
easy switching between archs.
2018-03-28 14:12:03 +01:00