diff options
author | Mao Han <han_mao@c-sky.com> | 2019-04-15 05:17:30 -0400 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-05-09 08:36:42 -0400 |
commit | 3213486f2e442831e324cc6201a2f9e924ecc235 (patch) | |
tree | c026f692a0cb5775a8a5a88969705e399e141bec /tools/arch | |
parent | 085b7755808aa11f78ab9377257e1dad2e6fa4bb (diff) |
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>
Diffstat (limited to 'tools/arch')
-rw-r--r-- | tools/arch/csky/include/uapi/asm/perf_regs.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/arch/csky/include/uapi/asm/perf_regs.h b/tools/arch/csky/include/uapi/asm/perf_regs.h new file mode 100644 index 000000000000..ee323d818592 --- /dev/null +++ b/tools/arch/csky/include/uapi/asm/perf_regs.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | // Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd. | ||
3 | |||
4 | #ifndef _ASM_CSKY_PERF_REGS_H | ||
5 | #define _ASM_CSKY_PERF_REGS_H | ||
6 | |||
7 | /* Index of struct pt_regs */ | ||
8 | enum perf_event_csky_regs { | ||
9 | PERF_REG_CSKY_TLS, | ||
10 | PERF_REG_CSKY_LR, | ||
11 | PERF_REG_CSKY_PC, | ||
12 | PERF_REG_CSKY_SR, | ||
13 | PERF_REG_CSKY_SP, | ||
14 | PERF_REG_CSKY_ORIG_A0, | ||
15 | PERF_REG_CSKY_A0, | ||
16 | PERF_REG_CSKY_A1, | ||
17 | PERF_REG_CSKY_A2, | ||
18 | PERF_REG_CSKY_A3, | ||
19 | PERF_REG_CSKY_REGS0, | ||
20 | PERF_REG_CSKY_REGS1, | ||
21 | PERF_REG_CSKY_REGS2, | ||
22 | PERF_REG_CSKY_REGS3, | ||
23 | PERF_REG_CSKY_REGS4, | ||
24 | PERF_REG_CSKY_REGS5, | ||
25 | PERF_REG_CSKY_REGS6, | ||
26 | PERF_REG_CSKY_REGS7, | ||
27 | PERF_REG_CSKY_REGS8, | ||
28 | PERF_REG_CSKY_REGS9, | ||
29 | #if defined(__CSKYABIV2__) | ||
30 | PERF_REG_CSKY_EXREGS0, | ||
31 | PERF_REG_CSKY_EXREGS1, | ||
32 | PERF_REG_CSKY_EXREGS2, | ||
33 | PERF_REG_CSKY_EXREGS3, | ||
34 | PERF_REG_CSKY_EXREGS4, | ||
35 | PERF_REG_CSKY_EXREGS5, | ||
36 | PERF_REG_CSKY_EXREGS6, | ||
37 | PERF_REG_CSKY_EXREGS7, | ||
38 | PERF_REG_CSKY_EXREGS8, | ||
39 | PERF_REG_CSKY_EXREGS9, | ||
40 | PERF_REG_CSKY_EXREGS10, | ||
41 | PERF_REG_CSKY_EXREGS11, | ||
42 | PERF_REG_CSKY_EXREGS12, | ||
43 | PERF_REG_CSKY_EXREGS13, | ||
44 | PERF_REG_CSKY_EXREGS14, | ||
45 | PERF_REG_CSKY_HI, | ||
46 | PERF_REG_CSKY_LO, | ||
47 | PERF_REG_CSKY_DCSR, | ||
48 | #endif | ||
49 | PERF_REG_CSKY_MAX, | ||
50 | }; | ||
51 | #endif /* _ASM_CSKY_PERF_REGS_H */ | ||