• Mao Han's avatar
    riscv: Add perf callchain support · dbeb90b0
    Mao Han authored
    This patch add support for perf callchain sampling on riscv platforms.
    The return address of leaf function is retrieved from pt_regs as
    it is not saved in the outmost frame.
    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: fixed some 'checkpatch.pl --strict' issues;
     fixed patch description spelling]
    Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
    dbeb90b0
perf_callchain.c 2.43 KB