This subsection contains articles on how to compile/modify/boot the Arch Linux kernels.
Systemtap provides free software (GPL) infrastructure to simplify the gathering of information about the running Linux system.
Easy and fast
Officially, it is recommended to build a linux-custom package to run systemtap, but rebuilding the originalpackage can be very easy and efficient.
You can run
sudo abs; cp -r /var/abs/core/linux . to get the original kernel build files.
Edit config (for 32-bit systems) or config.x86_64 (for 64-bit systems), turn on these options:
By default only CONFIG_DEBUG_INFO and CONFIG_KPROBES are not set.
Once modifying config.x86_64, save and close it.
md5sum config.x86_64 to get a new md5sum.
In PKGBUILD file, the
md5sums=('sum-of-first' ... 'sum-of-last') has the same order with
source=('first-source' ... 'last-source'), put your new md5sum in the write place.
Build and Install
Optional: you can set
/etc/makepkg.conf to speed up the compilation.
makepkg to compile, then simply
sudo pacman -U *.pkg.tar.gz to install the packages.
pacman will tell you reinstall, That's great!
and should be reinstalled, does not matter.
Via this method, external modules (e.g.and ) don't need to be rebuilt.
Simply install systemtap from AUR: AUR, all done.
Build custom kernel
Please reference this README