If you are running a kernel so you built and installed ' by hand ', rather than by installing a package from a distributio N, you can follow these steps to use SYSTEMTAP. The following blurb may also is found at the bottom of the README file in the sources. See also cross compiling tips.
Build the kernel using your normal procedures. Enable Config_debug_info, Config_kprobes, Config_relay, Config_debug_fs, Config_modules, Config_module_unload, CONFIG _uprobes and the minimal number of auxiliary modules you need (since config_debug_info can multiply disk space usage).
% make Modules_install Install
Boot into the kernel.
If you want to build instrumentation for so installed kernel without rebooting, you can use the following (replacing REL EASE with version number of the installed kernel):
% Stap-r RELEASE [...]
If You don't install the kernel, simply run
% Stap-r/path/to/kernel/build/tree [...]
Https://sourceware.org/systemtap/wiki/SystemTapWithSelfBuiltKernel
Using Systemtap with self-built kernels