Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kpatch-build: Add sym->has_func_profiling support for aarch64
The "has_function_profiling" support field in the symbol struct is used to show that a function symbol is able to be patched. This is necessary to check that functions which need to be patched are able to be. On arm64 this means the presence of 2 NOP instructions at function entry which are patched by ftrace to call the ftrace handling code. These 2 NOPs are inserted by the compiler and the location of them is recorded in a section called "__patchable_function_entries". Check whether a symbol has a corresponding entry in the "__patchable_function_entries" section and if so mark it as "has_func_profiling". Additionally updated the error message in kpatch_check_func_profiling_calls() to accurately reflect the cause of the failure. Signed-off-by: Suraj Jitindar Singh <[email protected]>
- Loading branch information