Override kernel version check

edit

The -no-kernel-version-check flag, or the no-kernel-version-check key in the host-agent configuration file, controls the kernel version compatibility check during the profiling host-agent’s startup process. The kernel version compatibility check enforces the minimum kernel version supported, and prevents the profiling agent from running on certain kernel versions with known issues. When the no-kernel-version-check is set to true, the compatibility check is bypassed, allowing host-agent execution to proceed regardless of the kernel version. By default, this option is set to false, and the kernel compatibility version check is performed as usual.

Take extra caution when using this configuration option, especially when running the host-agent on older kernels with backported eBPF functionalities. Setting this option to true on kernels with unfixed eBPF bugs can crash your system.

Host agent configuration example
edit

The following example shows how to configure the -no-kernel-version-check in the Universal Profiling agent CLI:

sudo pf-host-agent/pf-host-agent -no-kernel-version-check=true ...'