Basic
Build
Building Linux with Clang/LLVM
Generate compile_commands.json
Install (Replace Distro Default Kernel)
Get distro's kernel config, upon which you make customized configuration.
Build kernel:
Install the modules and kernel. Note that initramfs size should be small, or OOM will happen during boot. Pass INSTALL_MOD_STRIP=1
to modules_install
make target.
Optionally, edit /etc/default/grub
to enable some kernel commandline paremeters:
Take nosmap
as an example:
Formatted String
Pointers printed without a specifier extension (i.e unadorned %p
) are hashed to give a unique identifier without leaking kernel addresses to user space.
Use %px
to print unmodified addresses.
Deadline Task Scheduling
An EEVDF CPU scheduler for Linux
Deadline Task Scheduling - Documentation