csky: Add support for perf unwind-libdw
authorMao Han <han_mao@c-sky.com>
Mon, 15 Apr 2019 09:17:30 +0000 (17:17 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Thu, 9 May 2019 12:36:42 +0000 (20:36 +0800)
commit3213486f2e442831e324cc6201a2f9e924ecc235
treec026f692a0cb5775a8a5a88969705e399e141bec
parent085b7755808aa11f78ab9377257e1dad2e6fa4bb
csky: Add support for perf unwind-libdw

This patch add support for DWARF register mappings and libdw registers
initialization, which is used by perf callchain analyzing, eg:

perf record --call-graph=dwarf <COMMAND>

Here is elfutils csky backend patch set:
https://sourceware.org/ml/elfutils-devel/2019-q2/msg00007.html

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Arnd Bergmann <arnd@arnd.de>
tools/arch/csky/include/uapi/asm/perf_regs.h [new file with mode: 0644]
tools/perf/Makefile.config
tools/perf/arch/csky/Build [new file with mode: 0644]
tools/perf/arch/csky/Makefile [new file with mode: 0644]
tools/perf/arch/csky/include/perf_regs.h [new file with mode: 0644]
tools/perf/arch/csky/util/Build [new file with mode: 0644]
tools/perf/arch/csky/util/dwarf-regs.c [new file with mode: 0644]
tools/perf/arch/csky/util/unwind-libdw.c [new file with mode: 0644]