Skip to content
  • Mao Han's avatar
    98a93b0b
    riscv: Add support for perf registers sampling · 98a93b0b
    Mao Han authored
    
    
    This patch implements the perf registers sampling and validation API
    for the riscv arch. The valid registers and their register ID are
    defined in perf_regs.h. Perf tool can backtrace in userspace with
    unwind library and the registers/user stack dump support.
    
    Signed-off-by: default avatarMao Han <han_mao@c-sky.com>
    Cc: Paul Walmsley <paul.walmsley@sifive.com>
    Cc: Greentime Hu <green.hu@gmail.com>
    Cc: Palmer Dabbelt <palmer@sifive.com>
    Cc: linux-riscv <linux-riscv@lists.infradead.org>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Guo Ren <guoren@kernel.org>
    Tested-by: default avatarGreentime Hu <greentime.hu@sifive.com>
    [paul.walmsley@sifive.com: minor patch description fix]
    Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
    98a93b0b
    riscv: Add support for perf registers sampling
    Mao Han authored
    
    
    This patch implements the perf registers sampling and validation API
    for the riscv arch. The valid registers and their register ID are
    defined in perf_regs.h. Perf tool can backtrace in userspace with
    unwind library and the registers/user stack dump support.
    
    Signed-off-by: default avatarMao Han <han_mao@c-sky.com>
    Cc: Paul Walmsley <paul.walmsley@sifive.com>
    Cc: Greentime Hu <green.hu@gmail.com>
    Cc: Palmer Dabbelt <palmer@sifive.com>
    Cc: linux-riscv <linux-riscv@lists.infradead.org>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Guo Ren <guoren@kernel.org>
    Tested-by: default avatarGreentime Hu <greentime.hu@sifive.com>
    [paul.walmsley@sifive.com: minor patch description fix]
    Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Loading