]> git.baikalelectronics.ru Git - kernel.git/commit
perf unwind: Support for powerpc
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2017 10:24:41 +0000 (12:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jun 2017 14:35:42 +0000 (11:35 -0300)
commit97a18bdc286efafcb23f2daa6127ea0d29f5c3cf
treeb6da5d55cc6c2da01360643a6d5a1faad3a3c21a
parentfeba5da249acccd10b666a9b6d37226191cc40bd
perf unwind: Support for powerpc

Porting PPC to libdw only needs an architecture-specific hook to move
the register state from perf to libdw.

The ARM and x86 architectures already use libdw, and it is useful to
have as much common code for the unwinder as possible.  Mark Wielaard
has contributed a frame-based unwinder to libdw, so that unwinding works
even for binaries that do not have CFI information.  In addition,
libunwind is always preferred to libdw by the build machinery so this
cannot introduce regressions on machines that have both libunwind and
libdw installed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Milian Wolff <milian.wolff@kdab.com>
Acked-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1496312681-20133-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config
tools/perf/arch/powerpc/util/Build
tools/perf/arch/powerpc/util/unwind-libdw.c [new file with mode: 0644]