• Guo Ren's avatar
    csky: Fixup perf probe -x hungup · c2e59d1f
    Guo Ren authored
    case:
     # perf probe -x /lib/libc-2.28.9000.so memcpy
     # perf record -e probe_libc:memcpy -aR sleep 1
    
    System hangup and cpu get in trap_c loop, because our hardware
    singlestep state could still get interrupt signal. When we get in
    uprobe_xol singlestep slot, we should disable irq in pt_regs->psr.
    
    And is_swbp_insn() need a csky arch implementation with a low 16bit
    mask.
    Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
    Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
    c2e59d1f
ptrace.c 11.1 KB