From patchwork Thu Oct 8 08:29:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 54636 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 8CE2422FF8 for ; Thu, 8 Oct 2015 08:37:12 +0000 (UTC) Received: by lbwr8 with SMTP id r8sf19940022lbw.0 for ; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=zEnSabgJYhT6pFSTxHcl0ISGoiwqd7jvbFz8VYQfD88=; b=irJ0GLhnLu4AzyHKSW+Yv8pfPnl5gBtJ59QIAHUw0cH43RWzEN6ppIecSg1zYd3Wqf p4z1Heve3anLV9DKzKeTBv/Ba2TiXTxwqVCMx4jgbWfZDmHnY90CPuF8wnIgtmm951F+ 2Ztd5dACFuQg4j0Xomet8LCkOMfr0b8Qg8L+ZqahJANKg8ClZD6WzDDBH+sRoR49IH3Q OTVStJAab198LcsRv2/IQY1mTb0Flc49fPPCw7gnORephmwzmi8/wCkeYKvU7KPx84S3 uQz+BqoM2rMdzpKr4qliWfQoDYiiX7s8utFFEnBWjjFd0FdUxtacOcLNRrKLuAbqdiru Jv1w== X-Gm-Message-State: ALoCoQm0Dz3gRnXpAPWFKcbD297hdtICoweAhf08czAfkvffymekFX0DPrlbvWrrFw6yitRDWoPM X-Received: by 10.112.144.99 with SMTP id sl3mr1108924lbb.12.1444293431561; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.30.18 with SMTP id e18ls144929lfe.35.gmail; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) X-Received: by 10.112.163.131 with SMTP id yi3mr2952766lbb.36.1444293431394; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id z7si28798695lbf.45.2015.10.08.01.37.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 01:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbos8 with SMTP id s8so38330807lbo.0 for ; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) X-Received: by 10.25.19.73 with SMTP id j70mr1922328lfi.29.1444293431256; Thu, 08 Oct 2015 01:37:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp440393lbq; Thu, 8 Oct 2015 01:37:10 -0700 (PDT) X-Received: by 10.50.134.73 with SMTP id pi9mr2507020igb.20.1444293430264; Thu, 08 Oct 2015 01:37:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74si30790664ioh.172.2015.10.08.01.37.09; Thu, 08 Oct 2015 01:37:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754448AbbJHIg6 (ORCPT + 30 others); Thu, 8 Oct 2015 04:36:58 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:51737 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547AbbJHIfQ (ORCPT ); Thu, 8 Oct 2015 04:35:16 -0400 Received: from 172.24.1.49 (EHLO szxeml427-hub.china.huawei.com) ([172.24.1.49]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BOO15925; Thu, 08 Oct 2015 16:30:48 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by szxeml427-hub.china.huawei.com (10.82.67.182) with Microsoft SMTP Server id 14.3.235.1; Thu, 8 Oct 2015 16:29:39 +0800 From: Wang Nan To: CC: , , , Wang Nan , He Kuang , "Alexei Starovoitov" , Brendan Gregg , Daniel Borkmann , David Ahern , Jiri Olsa , Kaixu Xia , Namhyung Kim , Paul Mackerras , Peter Zijlstra Subject: [PATCH 15/22] perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on Date: Thu, 8 Oct 2015 08:29:37 +0000 Message-ID: <1444292984-13135-16-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1444292984-13135-1-git-send-email-wangnan0@huawei.com> References: <1444292984-13135-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.56162A80.015D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d84da00ca535d5faf7fe3d00a435eede Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangnan0@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , regs_query_register_offset() in dwarf-regs.c is required by BPF prologue. Make it be compiled if CONFIG_BPF_PROLOGUE is on to avoid building failure when CONFIG_BPF_PROLOGUE is on but CONFIG_DWARF is not set. Signed-off-by: Wang Nan Signed-off-by: He Kuang Acked-by: Masami Hiramatsu Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Zefan Li Cc: pi3orama@163.com Cc: Arnaldo Carvalho de Melo Link: http://lkml.kernel.org/n/ebpf-6yw9eg0ej3l4jnqhinngkw86@git.kernel.org --- tools/perf/arch/x86/util/Build | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/x86/util/Build b/tools/perf/arch/x86/util/Build index ff63649..4659703 100644 --- a/tools/perf/arch/x86/util/Build +++ b/tools/perf/arch/x86/util/Build @@ -5,6 +5,7 @@ libperf-y += kvm-stat.o libperf-y += perf_regs.o libperf-$(CONFIG_DWARF) += dwarf-regs.o +libperf-$(CONFIG_BPF_PROLOGUE) += dwarf-regs.o libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o