Hi, Tiezhu,
On Wed, Apr 19, 2023 at 5:57 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
Uprobes is the user-space counterpart to kprobes, this commit
adds uprobes support for LoongArch.
+#define MAX_UINSN_BYTES 8In old versions we define UPROBE_XOL_SLOT_BYTES to 128, why we use 8 now?
+#define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
+
+#define UPROBE_XOLBP_INSN larch_insn_gen_break(BRK_UPROBE_XOLBP)
+#define UPROBE_SWBP_INSN larch_insn_gen_break(BRK_UPROBE_BP)
+#define UPROBE_SWBP_INSN_SIZE LOONGARCH_INSN_SIZE
case BRK_UPROBE_XOLBP:As I know, XOL means "execute out of line", is it an alias of "single step"?
- if (notify_die(DIE_UPROBE_XOL, "Uprobe_XOL", regs, bcode,
- current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP)
+ if (uprobe_singlestep_handler(regs))