From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423108AbcFHIrA (ORCPT ); Wed, 8 Jun 2016 04:47:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:54260 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161215AbcFHIqz (ORCPT ); Wed, 8 Jun 2016 04:46:55 -0400 Date: Wed, 8 Jun 2016 01:46:13 -0700 From: tip-bot for He Kuang Message-ID: Cc: ak@linux.intel.com, tumanova@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, peterz@infradead.org, jpoimboe@redhat.com, adrian.hunter@intel.com, mhiramat@kernel.org, tglx@linutronix.de, jolsa@kernel.org, alexander.shishkin@linux.intel.com, acme@redhat.com, hekuang@huawei.com, dsahern@gmail.com, mingo@kernel.org, namhyung@kernel.org, kan.liang@intel.com, wangnan0@huawei.com, sukadev@linux.vnet.ibm.com, eranian@google.com, penberg@kernel.org, hpa@zytor.com Reply-To: tumanova@linux.vnet.ibm.com, ak@linux.intel.com, linux-kernel@vger.kernel.org, peterz@infradead.org, jpoimboe@redhat.com, adrian.hunter@intel.com, mhiramat@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, tglx@linutronix.de, acme@redhat.com, hekuang@huawei.com, dsahern@gmail.com, mingo@kernel.org, namhyung@kernel.org, kan.liang@intel.com, wangnan0@huawei.com, sukadev@linux.vnet.ibm.com, eranian@google.com, penberg@kernel.org, hpa@zytor.com In-Reply-To: <1464924803-22214-3-git-send-email-hekuang@huawei.com> References: <1464924803-22214-3-git-send-email-hekuang@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf unwind: Decouple thread->address_space on libunwind Git-Commit-ID: c1d1d0d9b302cb5f0365f4de78dd7fcbf7983c05 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c1d1d0d9b302cb5f0365f4de78dd7fcbf7983c05 Gitweb: http://git.kernel.org/tip/c1d1d0d9b302cb5f0365f4de78dd7fcbf7983c05 Author: He Kuang AuthorDate: Fri, 3 Jun 2016 03:33:11 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 7 Jun 2016 12:08:51 -0300 perf unwind: Decouple thread->address_space on libunwind Currently, the type of thread->addr_space is unw_addr_space_t, which is a pointer defined in libunwind headers. For local libunwind, we can simple include "libunwind.h", but for remote libunwind, the header file is depends on the target libunwind platform. This patch uses 'void *' instead to decouple the dependence on libunwind. Signed-off-by: He Kuang Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Ekaterina Tumanova Cc: Josh Poimboeuf Cc: Kan Liang Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Pekka Enberg Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Sukadev Bhattiprolu Cc: Wang Nan Link: http://lkml.kernel.org/r/1464924803-22214-3-git-send-email-hekuang@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/thread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 08fcb14..4c9f0aa 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h @@ -9,9 +9,6 @@ #include "symbol.h" #include #include -#ifdef HAVE_LIBUNWIND_SUPPORT -#include -#endif struct thread_stack; @@ -36,7 +33,7 @@ struct thread { void *priv; struct thread_stack *ts; #ifdef HAVE_LIBUNWIND_SUPPORT - unw_addr_space_t addr_space; + void *addr_space; #endif };