blob: 3fd318037f6be4b4ae80f114027346f273bb5ad0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# kBench9000 – simple kernel land cycle counter
### by [Jason A. Donenfeld](mailto:jason@zx2c4.com)
This is a very simple kernel land cycle counter. To use, simply edit `function.h`,
add any other `.c` files and mention them in the `kbench9000-y +=` line of the
`Makefile`, and then type:
```
$ make run
```
![Expected kBench9000 output](https://data.zx2c4.com/kbench9000-screenshot.png)
### Kernel Toolchain
You'll need to have a working kernel toolchain, usually achievable by:
```
$ sudo apt install linux-headers-$(uname -r) build-essential
```
or
```
$ sudo dnf install kernel-devel @development-tools
```
|