From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932419AbcDAK6m (ORCPT ); Fri, 1 Apr 2016 06:58:42 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:33893 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759205AbcDAK6j (ORCPT ); Fri, 1 Apr 2016 06:58:39 -0400 Subject: Re: [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile To: Ralf Baechle , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , David Daney , Thomas Gleixner , Paul Burton , James Hogan , Matt Redfearn , Qais Yousef , Ben Hutchings , Jiri Olsa , Wang Nan , Adrian Hunter , Namhyung Kim , Stephane Eranian , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org References: From: Sergei Shtylyov Message-ID: <56FE545A.7090003@cogentembedded.com> Date: Fri, 1 Apr 2016 13:58:34 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On 4/1/2016 11:56 AM, Ralf Baechle wrote: > From: David Daney > > Define a new symbol (ARCH_SUPPORTS_LIBUNWIND) in config/Makefile. Eh? Where is it? > Use this from x86 and MIPS to gate testing of libunwind. x86? Where? > Signed-off-by: David Daney > Cc: linux-mips@linux-mips.org > Cc: Jiri Olsa > Cc: linux-kernel@vger.kernel.org > Cc: Peter Zijlstra > Cc: Paul Mackerras > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Signed-off-by: Ralf Baechle > --- > tools/perf/config/Makefile | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > index f7d7f5a..713c69c 100644 > --- a/tools/perf/config/Makefile > +++ b/tools/perf/config/Makefile > @@ -51,6 +51,11 @@ ifeq ($(NO_PERF_REGS),0) > $(call detected,CONFIG_PERF_REGS) > endif > > +ifeq ($(ARCH),mips) > + NO_PERF_REGS := 0 > + LIBUNWIND_LIBS = -lunwind -lunwind-mips > +endif > + > # So far there's only x86 and arm libdw unwind support merged in perf. > # Disable it on all other architectures in case libdw unwind > # support is detected in system. Add supported architectures MBR, Sergei