From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932689AbcFBJ4i (ORCPT ); Thu, 2 Jun 2016 05:56:38 -0400 Received: from szxga04-in.huawei.com ([58.251.152.52]:55864 "EHLO szxga04-in.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932519AbcFBJ4F (ORCPT ); Thu, 2 Jun 2016 05:56:05 -0400 From: He Kuang To: , , , , , , , , , , , , , , , , , CC: Subject: [PATCH v8 12/14] perf tools: Introduce flag to separate local/remote unwind compilation Date: Thu, 2 Jun 2016 09:55:24 +0000 Message-ID: <1464861326-22677-13-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1464861326-22677-1-git-send-email-hekuang@huawei.com> References: <1464861326-22677-1-git-send-email-hekuang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.250] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.575002AD.005E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7077414c2ef0e2755132b97c9ebbfbcd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a preparation for including unwind-libunwind-local.c in other files for remote libunwind. Signed-off-by: He Kuang --- tools/perf/util/unwind-libunwind-local.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/unwind-libunwind-local.c b/tools/perf/util/unwind-libunwind-local.c index 631b40d..01c2e86 100644 --- a/tools/perf/util/unwind-libunwind-local.c +++ b/tools/perf/util/unwind-libunwind-local.c @@ -22,8 +22,10 @@ #include #include #include +#ifndef REMOTE_UNWIND_LIBUNWIND #include #include +#endif #include "callchain.h" #include "thread.h" #include "session.h" @@ -689,5 +691,7 @@ _unwind_libunwind_ops = { .get_entries = _unwind__get_entries, }; +#ifndef REMOTE_UNWIND_LIBUNWIND struct unwind_libunwind_ops * local_unwind_libunwind_ops = &_unwind_libunwind_ops; +#endif -- 1.8.5.2