Hi, Tiezhu,
Thanks for your patches, however,
1, You should rebase your code, since some functions such as
is_pc_insn is provided in the github's loongarch-next branch;
2, Your code may have some problems about preemption, you can do
something like this commit [1];
3, I don't think Kprobe should be enabled by default, distribution
configs can enable it if needed.
[1] https://github.com/loongson/linux/commit/023d5412ab5c154b87d57d70d465a4243df53717