Kernel module for LTTng-profile.
Sends a signal to applications profiled with the LTTng-profile userspace libray when they spend more than a predefined amount of time in a system call.
You will need to have your kernel headers available (or access to your full kernel source tree), and do:
make
sudo make modules_install
sudo depmod -a
The above commands will build the modules against your current kernel. If you need to build the modules against a custom kernel, do:
make KERNELDIR=/path/to/custom/kernel
sudo make KERNELDIR=/path/to/custom/kernel modules_install
sudo depmod -a kernel_version
Make sure your target kernel has the following config options enabled:
CONFIG_MODULES
: loadable module supportCONFIG_KALLSYMS
: see files inwrapper
; this is necessary until the few required missing symbols are exported to GPL modules from mainline
To load the module:
sudo ./load
Once the module is loaded, an ioctl() API on /proc/lttngprofile file becomes available.