Summary
Add compatibility support for openEuler 6.6 kernel, which introduces
CONFIG_LIVEPATCH_WO_FTRACE (livepatch without ftrace) and removes the
CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY requirement.
Changes
kpatch-build: skip CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY check on kernel >= 6.6
The CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY check was previously required
for all openEuler kernels. On openEuler 6.6+, this config option no longer
exists, so the check is now skipped for kernels >= 6.6.0 to avoid a false
build failure.
kpatch: add support for CONFIG_LIVEPATCH_WO_FTRACE on openEuler 6.6
openEuler 6.6 introduces CONFIG_LIVEPATCH_WO_FTRACE, a livepatch
mechanism that does not rely on ftrace. When this option is enabled:
HAVE_WO_FTRACE_ENABLE is defined in the patch hook, and
klp_enable_patch() is conditionally compiled for this path.
NO_PROFILING_CALLS=1 is exported during build to suppress ftrace-based
profiling instrumentation, which is incompatible with the wo-ftrace path.
Summary
Add compatibility support for openEuler 6.6 kernel, which introduces
CONFIG_LIVEPATCH_WO_FTRACE (livepatch without ftrace) and removes the
CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY requirement.
Changes
kpatch-build: skip CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY check on kernel >= 6.6
The CONFIG_LIVEPATCH_PER_TASK_CONSISTENCY check was previously required
for all openEuler kernels. On openEuler 6.6+, this config option no longer
exists, so the check is now skipped for kernels >= 6.6.0 to avoid a false
build failure.
kpatch: add support for CONFIG_LIVEPATCH_WO_FTRACE on openEuler 6.6
openEuler 6.6 introduces CONFIG_LIVEPATCH_WO_FTRACE, a livepatch
mechanism that does not rely on ftrace. When this option is enabled:
HAVE_WO_FTRACE_ENABLE is defined in the patch hook, and
klp_enable_patch() is conditionally compiled for this path.
NO_PROFILING_CALLS=1 is exported during build to suppress ftrace-based
profiling instrumentation, which is incompatible with the wo-ftrace path.