Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp824266img; Thu, 21 Mar 2019 09:40:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqiP8xg5TH4eMVLSRrXptBgdeYlyrE5aGzFxWgaim4jaOLrDHZNFCwfPW+7SOKyddktNHy X-Received: by 2002:a62:e911:: with SMTP id j17mr4218541pfh.107.1553186425942; Thu, 21 Mar 2019 09:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553186425; cv=none; d=google.com; s=arc-20160816; b=Cy57G/nzy4nYbD+TyaPhTi1iAKdg3l+GM/+vIeogqPrw5LtkPsuD6BAu0clBZhhUb9 60Z/uHImhQ8zpokmCC1WY+jCZmrcb0msW7ERhS9D+6Iurh3Zq+MjemEYNwPLYrE5rb+o yB7w06P4IK3ThWn9BUIetJAlP1IbvsskQI7/Q0niGfLFwHJShfOBjU+lkdD2kY1JuNWs HICoozMzMBPSqPFLDYtvV11TXcUofONaTWpK9RJbLPcWna2wK6phe+hSZCnxC+116WnR p+HRjAvfU839tXxqjgK/E/kQKEhRY4TWT430Tf2nmP6OXBaFofRJcnVYi0joot935Je+ 5rog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=EvJYP6Th87NC7DBukEZL7siMEprNA22crit+VNHzh24=; b=JTxK4M/+g2WVayC/SdLSTPqHch9h24y99aqp1ZCaa5fB/3qCZpjbTmC/ilnvPWR2R/ IMLIYPqbSC0z4Uo/tJ5XH590IdxvTquAyfH4VlckBUUTLYdz/FQC4iWY2fftJWi1F8y8 PfcO5e0WNAGqL/OdXeoHBa613zwLe8queIn3fFybpEFiSUz+FQcT/Ed+KoVs8sH0H88D zrGouUlYhiYKtQ00NA3fsmw7w9eS4WOJqCbzjCW7nNV5eDfd1XKBMtO89Y4vBnJdsvj+ qUMg9j9gkeDMNo8TbiqJVIAKSCOIi7Uint4KfU/Nqoszd5ov+ci4wVgT/Kw95Q3K1PDz x0yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ooo3Rg35; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m133si4540791pga.314.2019.03.21.09.40.10; Thu, 21 Mar 2019 09:40:25 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ooo3Rg35; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728552AbfCUQjX (ORCPT + 99 others); Thu, 21 Mar 2019 12:39:23 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:45810 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727921AbfCUQjW (ORCPT ); Thu, 21 Mar 2019 12:39:22 -0400 Received: by mail-qt1-f194.google.com with SMTP id v20so7283409qtv.12 for ; Thu, 21 Mar 2019 09:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EvJYP6Th87NC7DBukEZL7siMEprNA22crit+VNHzh24=; b=Ooo3Rg35RTwFxlhp8Rj4Isl7A1qbh6VkqR1wjIfoCga1t7gBT3My+GfXFnf7caZ4ij RRXYExah0zeMQefMTR6QS9WQdKQwo97gSLeDRkzw3BU/J4EDvV0VWUhdOiDPsXy7JYRo rGKg5GqDC8ZjY0IsoDkh0/ZhuSsaDjMNMZt6IIwmNgSyAzBaaUTFqWJ4knb7Wq3XJp6w cbL/Xpx0cZWAfiU8Vxv2cAPY6b7QVDkt9I2e9kfc+tun/dlHbclNVoB8aVUBdsPYJvB9 NqE/lnwm11P+1z7WGNDnYpT9wG0YmzBTqk8SneoDiFY5UPTHj4GJXzGG415t6gDFMJ4a xouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EvJYP6Th87NC7DBukEZL7siMEprNA22crit+VNHzh24=; b=detTWCVcWOwqr71Z/rHmsCONHp5IKhAq50PaKr9gdDyWf7IvPiYvAe7F6D87ir2hho n9Ln6JLDx2wCBvsOuzHNhlPEIIPXQSrXtuEe9fYaeP1l/5rI/8dCg7678xPHybDKgY9Q ekWMJKkSWHtuoIDawRyjMn7+WPr3lddCvRuidrJZZ9r1iEuDf12MC7+tZlfAQzZ/TxMD 6jxMOY6h4Fduf0GXWzU2F9W04qsSjKk5Upg3u+ly4eNADfuJVCgQhGqn+vIvI6L/G5iy epMDFoOyayy5i8mOXeOi1Ebj0mKokEGEvw3RL9znemvrvLL2wV8E7WsYv1h6HRN//Nhz NjYA== X-Gm-Message-State: APjAAAU6uuS6njghEawm4ttHZPNN2Ti18x6NU2DP22ZQIh6f/cEO/v/t deP/IuBPLE8ZvWgRr3G4gh4= X-Received: by 2002:a0c:d483:: with SMTP id u3mr4014262qvh.54.1553186361535; Thu, 21 Mar 2019 09:39:21 -0700 (PDT) Received: from quaco.ghostprotocols.net ([190.15.121.82]) by smtp.gmail.com with ESMTPSA id g65sm2993130qkf.52.2019.03.21.09.39.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 09:39:20 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D52494039C; Thu, 21 Mar 2019 13:39:17 -0300 (-03) Date: Thu, 21 Mar 2019 13:39:17 -0300 To: Daniel Thompson Cc: Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kim Phillips , linux-kernel@vger.kernel.org, patches@linaro.org Subject: Re: [PATCH] perf arm64: Use local headers for target compiler Message-ID: <20190321163917.GH3967@kernel.org> References: <20190321161353.16198-1-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321161353.16198-1-daniel.thompson@linaro.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Mar 21, 2019 at 04:13:53PM +0000, Daniel Thompson escreveu: > Currently the set of available syscalls is generated from the > target compilers default > (i.e. /usr/include/asm-generic/unistd.h on a self-hosted system). It shouldn't, Kim? > The numeric values are then generated by the host compiler using > tools/include/uapi/asm/unistd.h . > > This leads to some nasty version skew problems (including failed perf > builds if you are running a bleeding edge distro and want to build an > older version of perf for testing). > > Let's make the target compiler use the local headers too. > > Signed-off-by: Daniel Thompson > --- > tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > index c88fd32563eb..1aca6a839e4f 100755 > --- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > +++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > @@ -56,7 +56,7 @@ create_table() > echo "};" > } > > -$gcc -E -dM -x c $input \ > - |sed -ne 's/^#define __NR_//p' \ > - |sort -t' ' -k2 -nu \ > +$gcc -I $incpath/include/uapi -E -dM -x c $input \ > + |sed -ne 's/^#define __NR_//p' \ > + |sort -t' ' -k2 -nu \ > |create_table > -- > 2.20.1 -- - Arnaldo