From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933444AbcETJx7 (ORCPT ); Fri, 20 May 2016 05:53:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932340AbcETJx6 (ORCPT ); Fri, 20 May 2016 05:53:58 -0400 Date: Fri, 20 May 2016 11:53:53 +0200 From: Jiri Olsa To: Hekuang Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, wangnan0@huawei.com, jpoimboe@redhat.com, ak@linux.intel.com, eranian@google.com, namhyung@kernel.org, adrian.hunter@intel.com, sukadev@linux.vnet.ibm.com, masami.hiramatsu.pt@hitachi.com, tumanova@linux.vnet.ibm.com, kan.liang@intel.com, penberg@kernel.org, dsahern@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/6] perf tools: Promote proper messages for cross-platform unwind Message-ID: <20160520095353.GA17262@krava> References: <1463658462-85131-1-git-send-email-hekuang@huawei.com> <1463658462-85131-3-git-send-email-hekuang@huawei.com> <20160519164609.GC18909@krava> <573E7D79.8080804@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <573E7D79.8080804@huawei.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 20 May 2016 09:53:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2016 at 10:59:05AM +0800, Hekuang wrote: > hi > > 在 2016/5/20 0:46, Jiri Olsa 写道: > > On Thu, May 19, 2016 at 11:47:38AM +0000, He Kuang wrote: > > > > SNIP > > > > > #endif /* ARCH_PERF_COMMON_H */ > > > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > > > index 1e46277..a86b864 100644 > > > --- a/tools/perf/config/Makefile > > > +++ b/tools/perf/config/Makefile > > > @@ -345,6 +345,12 @@ ifeq ($(ARCH),powerpc) > > > endif > > > ifndef NO_LIBUNWIND > > > + ifeq ($(feature-libunwind-x86), 1) > > > + LIBUNWIND_LIBS += -lunwind-x86 > > > + $(call detected,CONFIG_LIBUNWIND_X86) > > > + CFLAGS += -DHAVE_LIBUNWIND_X86_SUPPORT > > > + endif > > > + > > how does one install that lirary? > > > > thanks, > > jirka > > My work environment is on an old suse distribution, so it's > difficult to find libunwind-$arch rpm packages, so I build them > from source. > > The git repository url is here: > http://git.savannah.gnu.org/r/libunwind.git(master) > > Then flow the build step in README, first for i686: > > $ ./autogen.sh > $ ./configure prefix=/xx/dst_i686 --target=i686-oe-linux > CC=x86_64-oe-linux-gcc > $ make && make install > > Similar for aarch64: > > $ make clean > $ ./configure prefix=/xx/dst_aarch64 --target=i686-oe-linux > CC=x86_64-oe-linux-gcc > $ make && make install > > NOTICE: the contents in '--target' should be like > 'i686-oe-linux', only give 'i686' cause strange build errors. > > It looks like that libunwind don't support building for multiple > platforms at the same time, so I build them separately into > different directories. > > Finally, copy the outputs into /usr/include and /usr/lib64, now > perf can detect them: we will need to extend LIBUNWIND_DIR or add variable, to be able to detect this from arbitrary directory jirka