diff options
| author | Mao Han <han_mao@c-sky.com> | 2019-09-05 11:46:36 +0800 |
|---|---|---|
| committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-09-05 00:51:52 -0700 |
| commit | 51bc620ba972e1600b791a32c69fa28c80e16fdb (patch) | |
| tree | 155a116b0e7cfe486683d7432870dcfb93aa9572 /tools/perf/arch/riscv/Makefile | |
| parent | 98a93b0b561c571153b7cd6953e882bc3fd8cfcd (diff) | |
| download | linux-51bc620ba972e1600b791a32c69fa28c80e16fdb.tar.bz2 | |
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>
Diffstat (limited to 'tools/perf/arch/riscv/Makefile')
| -rw-r--r-- | tools/perf/arch/riscv/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/arch/riscv/Makefile b/tools/perf/arch/riscv/Makefile new file mode 100644 index 000000000000..1aa9dd772489 --- /dev/null +++ b/tools/perf/arch/riscv/Makefile @@ -0,0 +1,4 @@ +ifndef NO_DWARF +PERF_HAVE_DWARF_REGS := 1 +endif +PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 |