On Wed, Nov 29, 2023 at 9:07 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
The kernel CONFIG_UNWINDER_ORC option enables the ORC unwinder, which is
similar in concept to a DWARF unwinder. The difference is that the format
of the ORC data is much simpler than DWARF, which in turn allows the ORC
unwinder to be much simpler and faster.
diff --git a/arch/loongarch/lib/Makefile b/arch/loongarch/lib/MakefileI have a draft live-patch patch here:
index a77bf160bfc4..e3023d9a508c 100644
--- a/arch/loongarch/lib/Makefile
+++ b/arch/loongarch/lib/Makefile
@@ -3,6 +3,8 @@
# Makefile for LoongArch-specific library files.
#
+OBJECT_FILES_NON_STANDARD := y
+
lib-y += delay.o memset.o memcpy.o memmove.o \
clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o
https://github.com/chenhuacai/linux/commit/744942cbf456b320f2333638e4bd27d35900284c
But we get such an error:
# selftests: livepatch: test-ftrace.sh
[48/1865]
[14936.262721] livepatch: failed to register ftrace handler for
function 'cmdline_proc_show' (-16)
# TEST: livepatch interaction with ftrace_enabled sysctl ...
I think it is probably because we skip mem* functions here.