From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758019AbcFAKBL (ORCPT ); Wed, 1 Jun 2016 06:01:11 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:42441 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757491AbcFAKBJ (ORCPT ); Wed, 1 Jun 2016 06:01:09 -0400 Subject: Re: [PATCH v7 14/14] perf callchain: Support aarch64 cross-platform To: Jiri Olsa References: <1464693552-104294-1-git-send-email-hekuang@huawei.com> <1464693552-104294-15-git-send-email-hekuang@huawei.com> <20160601084048.GI13738@krava> CC: , , , , , , , , , , , , , , , , From: Hekuang Message-ID: <574EB0E8.5080609@huawei.com> Date: Wed, 1 Jun 2016 17:54:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160601084048.GI13738@krava> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.110.55.166] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.574EB144.00B9,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 06d79c0e57cc31ca978f2779be7f37e9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2016/6/1 16:40, Jiri Olsa 写道: > On Tue, May 31, 2016 at 11:19:12AM +0000, He Kuang wrote: > > SNIP > >> diff --git a/tools/perf/util/Build b/tools/perf/util/Build >> index 7746e09..fced833 100644 >> --- a/tools/perf/util/Build >> +++ b/tools/perf/util/Build >> @@ -102,6 +102,7 @@ libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o >> libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o >> libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o >> libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o >> +libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o >> >> libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o >> >> diff --git a/tools/perf/util/libunwind/arm64.c b/tools/perf/util/libunwind/arm64.c >> new file mode 100644 >> index 0000000..99c0d42 >> --- /dev/null >> +++ b/tools/perf/util/libunwind/arm64.c >> @@ -0,0 +1,18 @@ > also please add some comments in here describing how this file works > like that it setups defines to compile arch specific binary from the > generic one, which is then represented by the arm64_unwind_libunwind_ops, > which get assigned for each arm64 thread > > or something along those lines > > thanks, > jirka ok >> +#define REMOTE_UNWIND_LIBUNWIND >> + >> +#define LIBUNWIND__ARCH_REG_ID libunwind__arm64_reg_id >> + >> +#include "unwind.h" >> +#include "debug.h" >> +#include "libunwind-aarch64.h" >> +#include <../../../../arch/arm64/include/uapi/asm/perf_regs.h> >> +#include "../../arch/arm64/util/unwind-libunwind.c" >> + >> +#undef NO_LIBUNWIND_DEBUG_FRAME >> +#ifdef NO_LIBUNWIND_DEBUG_FRAME_AARCH64 >> +#define NO_LIBUNWIND_DEBUG_FRAME >> +#endif >> +#include "util/unwind-libunwind-local.c" >> + >> +struct unwind_libunwind_ops * >> +arm64_unwind_libunwind_ops = &_unwind_libunwind_ops; > SNIP >