Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp405564ybc; Tue, 12 Nov 2019 03:22:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxmkcu31HocTL8nhVT6y5eiRuzr7I1bf28sBed8KHzG2XGyfuwrT21GQ+Pka5UwHa5ot+ki X-Received: by 2002:a05:6402:4c7:: with SMTP id n7mr31738033edw.263.1573557758007; Tue, 12 Nov 2019 03:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573557758; cv=none; d=google.com; s=arc-20160816; b=bW3J/P5VdAUv2tVsO9DljPtAWSO+Ldrqq9bfcRcteNnMOzvb5A1VRoCqi4gt9DmTNT gfx4Wq1adCZnX9W1S/BgW85NEmHpFaZJkI5dAh593gBGzIIxYTkGmaPOVVeFTGvdIOdv nhd7mpQFdIhwiX59aXTogJJRg0YDghlixI8Eq973acZcE5HNwo4FbX2L48kBHddAakmc qIl3KbaUvqkUbzs1KYhXdKFWD+0pm6ZfZyKoyArHarEZVggFQkyY9Ox9NhVjJiem3gKe DChYTil7Uiz4pRL5ekPihhZLEoZF4eqNkVkTVQejWjQo6mQx92aG5brfZkb+C3MNHuqJ Ni/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=HSraysrn+ImRtKu6bQEVbT5UJedcq+HB9WL5+BlsV44=; b=Va1eVANc54MkAL4AQOkyN/HrA+icnNgMNZ+IpaveddWc9ck8oYd5WAwAVZll8stIq+ s8/DLwzDJZIUBTmI3A/Lm1qTwo3It+buRSnd8E1+2vkfB/yfUMvn5bNLyNqxhv5C5O1m oOUB9b4tQRhJCZxIaFkaZRGXFR2lC+eYsI7sSdT19yZQRJs+o6m5qmcPAIG2OC6kI8ge zhavibJgjvAx96k95q018TRwKDK9/q2vr2iOBHNf461c4S+2diTnP31YSyggMIhlaGKO 197dcKJtScWOEiyek781i3dAX70hK5f/QUl1PkyjnQh/qPawf2lEMapeVo6NerkHGdit 7S5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si11002115ejx.139.2019.11.12.03.22.13; Tue, 12 Nov 2019 03:22:37 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbfKLLUi (ORCPT + 99 others); Tue, 12 Nov 2019 06:20:38 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:33840 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbfKLLSX (ORCPT ); Tue, 12 Nov 2019 06:18:23 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iUUBT-0000PC-TY; Tue, 12 Nov 2019 12:18:07 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 97E711C03AB; Tue, 12 Nov 2019 12:17:59 +0100 (CET) Date: Tue, 12 Nov 2019 11:17:59 -0000 From: "tip-bot2 for John Garry" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf tools: Fix cross compile for ARM64 Cc: John Garry , Alexander Shishkin , Jiri Olsa , Mark Rutland , Namhyung Kim , Peter Zijlstra , Will Deacon , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <1573045254-39833-1-git-send-email-john.garry@huawei.com> References: <1573045254-39833-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Message-ID: <157355747919.29376.7056460865693873731.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 71f699078b154fcb1c9162fd0208ada9ce532ffc Gitweb: https://git.kernel.org/tip/71f699078b154fcb1c9162fd0208ada9ce532ffc Author: John Garry AuthorDate: Wed, 06 Nov 2019 21:00:54 +08:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Wed, 06 Nov 2019 15:49:39 -03:00 perf tools: Fix cross compile for ARM64 Currently when cross compiling perf tool for ARM64 on my x86 machine I get this error: arch/arm64/util/sym-handling.c:9:10: fatal error: gelf.h: No such file or directory #include For the build, libelf is reported off: Auto-detecting system features: ... ... libelf: [ OFF ] Indeed, test-libelf is not built successfully: more ./build/feature/test-libelf.make.output test-libelf.c:2:10: fatal error: libelf.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. I have no such problems natively compiling on ARM64, and I did not previously have this issue for cross compiling. Fix by relocating the gelf.h include. Signed-off-by: John Garry Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Link: http://lore.kernel.org/lkml/1573045254-39833-1-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm64/util/sym-handling.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/arch/arm64/util/sym-handling.c b/tools/perf/arch/arm64/util/sym-handling.c index 5df7889..8dfa3e5 100644 --- a/tools/perf/arch/arm64/util/sym-handling.c +++ b/tools/perf/arch/arm64/util/sym-handling.c @@ -6,9 +6,10 @@ #include "symbol.h" // for the elf__needs_adjust_symbols() prototype #include -#include #ifdef HAVE_LIBELF_SUPPORT +#include + bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) { return ehdr.e_type == ET_EXEC ||