From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754531AbcDAJuI (ORCPT ); Fri, 1 Apr 2016 05:50:08 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:48456 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899AbcDAJuE (ORCPT ); Fri, 1 Apr 2016 05:50:04 -0400 Message-Id: In-Reply-To: References: From: Ralf Baechle To: 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 Date: Fri, 1 Apr 2016 10:56:57 +0200 Subject: [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Daney Define a new symbol (ARCH_SUPPORTS_LIBUNWIND) in config/Makefile. Use this from x86 and MIPS to gate testing of libunwind. 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 -- 2.5.5