From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349AbcEaLUD (ORCPT ); Tue, 31 May 2016 07:20:03 -0400 Received: from szxga04-in.huawei.com ([58.251.152.52]:62326 "EHLO szxga04-in.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751484AbcEaLTs (ORCPT ); Tue, 31 May 2016 07:19:48 -0400 From: He Kuang To: , , , , , , , , , , , , , , , , , CC: Subject: [PATCH v7 12/14] perf tools: Introduce flag to separate local/remote unwind compilation Date: Tue, 31 May 2016 11:19:10 +0000 Message-ID: <1464693552-104294-13-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1464693552-104294-1-git-send-email-hekuang@huawei.com> References: <1464693552-104294-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.0A020203.574D734B.02C2,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: e9010c1d1ec97fa8465fbce445468863 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