riscv: Add support for libdw
authorMao Han <han_mao@c-sky.com>
Thu, 5 Sep 2019 03:46:36 +0000 (11:46 +0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Thu, 5 Sep 2019 07:51:52 +0000 (00:51 -0700)
commit51bc620ba972e1600b791a32c69fa28c80e16fdb
tree155a116b0e7cfe486683d7432870dcfb93aa9572
parent98a93b0b561c571153b7cd6953e882bc3fd8cfcd
riscv: Add support for libdw

This patch adds support for DWARF register mappings and libdw registers
initialization, which is used by perf callchain analyzing when
--call-graph=dwarf is given.

Signed-off-by: Mao 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: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
tools/arch/riscv/include/uapi/asm/perf_regs.h [new file with mode: 0644]
tools/perf/Makefile.config
tools/perf/arch/riscv/Build [new file with mode: 0644]
tools/perf/arch/riscv/Makefile [new file with mode: 0644]
tools/perf/arch/riscv/include/perf_regs.h [new file with mode: 0644]
tools/perf/arch/riscv/util/Build [new file with mode: 0644]
tools/perf/arch/riscv/util/dwarf-regs.c [new file with mode: 0644]
tools/perf/arch/riscv/util/unwind-libdw.c [new file with mode: 0644]