Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1369145

[PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile

From Ralf Baechle <ralf@linux-mips.org>
Newsgroups linux.kernel
Subject [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile
Date 2016-04-01 12:00 +0200
Message-ID <rj420-2sb-25@gated-at.bofh.it> (permalink)
References <rj420-2sb-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: David Daney <david.daney@cavium.com>

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 <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: linux-kernel@vger.kernel.org
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/3] Add MIPS support to perf tools Ralf Baechle <ralf@linux-mips.org> - 2016-04-01 12:00 +0200
  [PATCH v3 2/3] perf tools: Add support for MIPS userspace DWARF  callchains. Ralf Baechle <ralf@linux-mips.org> - 2016-04-01 12:00 +0200
    Re: [PATCH v3 2/3] perf tools: Add support for MIPS userspace DWARF  callchains. Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-04-01 16:10 +0200
  [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the  Makefile Ralf Baechle <ralf@linux-mips.org> - 2016-04-01 12:00 +0200
    Re: [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in  the Makefile Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-04-01 13:00 +0200
      Re: [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in  the Makefile Ralf Baechle <ralf@linux-mips.org> - 2016-04-01 13:20 +0200

csiph-web