Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp805710img; Thu, 21 Mar 2019 09:17:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMpJhwC7tewmuPlrkTC6qEFaoYWqpLns94Ot+Wr6En/BEPoQ6+VaptpRjlAWX8YyBIu+00 X-Received: by 2002:a62:1f58:: with SMTP id f85mr4085572pff.39.1553185048247; Thu, 21 Mar 2019 09:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553185048; cv=none; d=google.com; s=arc-20160816; b=mDi3dpf9q7G8I/HF9QO4DtRB6fFm6hw1i3oCgFeBFa4V+DFmi01C7vv/HjEKrOYal0 6AuEYrxtf74AdT2fxHvzLm6HIVUYvXklAjLovjDXCZfEHLrgwxi3nf2V0A6eA90G1yr1 8OGjpMK8QivkrYVwjxuWUz95M3u7JV8cAmyvTCJBAxKwjV0mr0aVceeW9qX9ewzgXiAF 2H+cLqB1QWOBsi/tcO2cno/czEdDmYREwJ7YsAzbbwSBpnD8UOYQMg/GMC48aTRRSFnV lu7wwUlhbXdHd4smbJP0l+iBuyOziizrCFk7URrD0GNwsfVXCchLg7OxeYT61SjctjTt sfTQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yFJGkG2qAlqPkLagE8bY7qsbVsNEEIpaqQcVCEE7FJU=; b=Hhg2PvJ6mMpFQdfNkIKjesxR4n1Sdx8ACoFLzCO8ucdbLqxtwJMAmPXizw1S8wsTl5 CPfOghJ0ezCetKdEMaP+192Wc6nGpwwRMneJr9up8S20qxDjmYzfw5VpHOLyQuD7geWV /96Dzu06ocSrqkXex2qsQQmJqIiQNfWXjt/OZ8mEV4kygwrqM77p4EWZ/JOIozjCTlxc rqJCPSPg9AsVZqCxGuwEbIxqS6/XufSVr+QUqyMTvatrYLIc+XKkpWiK65Y7x1s5R3ej xHyJuNBKTvFVEJdmcLfyY+6Xrus0MnmIC7vsSNBqmbp8h5mkIgdX9H5zVSSiC//LnBXh f5Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a8NiOKE1; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si917523plm.62.2019.03.21.09.17.12; Thu, 21 Mar 2019 09:17:28 -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=@linaro.org header.s=google header.b=a8NiOKE1; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728535AbfCUQO1 (ORCPT + 99 others); Thu, 21 Mar 2019 12:14:27 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33285 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728016AbfCUQO1 (ORCPT ); Thu, 21 Mar 2019 12:14:27 -0400 Received: by mail-wr1-f68.google.com with SMTP id q1so7305336wrp.0 for ; Thu, 21 Mar 2019 09:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yFJGkG2qAlqPkLagE8bY7qsbVsNEEIpaqQcVCEE7FJU=; b=a8NiOKE1Iv7bOyOvNQuERrRLrkPc7oqseMcN/j1YEbBnEF9ExOr5H22hR+LO6Cjzqb +VqAum+u/SCnHzxOSyDDkhBxSxzN7xhdfjj9/CbfTYmS5Ef3EURWyXoYmMxC5n/SXzUY OSxI701Lir4RbDFdzcwd0FpTETnClNmGc4sBqSfC4yZs/GXqAzcRJ6wOp7eySf3dcMXu pzEY1yuGo2itcGdYbUuvdEnevqQuZ5yydcj3EASmad8W1ePvP24suQJM8bKanToJOrc5 cJXJOTQ7Oc3wwIrAG9+qGeSwuVfbX2tM6XUDrpsYHvXQjda/1lm4JcpxMqb6MiAQ01Tu 23VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yFJGkG2qAlqPkLagE8bY7qsbVsNEEIpaqQcVCEE7FJU=; b=SvqEOc3dScJXwrfnrYAu6uNdEQMcRSGsLfERx0zRuWTZyJdQPm9dmaiy8Xh5JcJLqv Zoz6NYsz/k/XOxoEt9Vo3AdDCyhMlyYUWHX66RivXXeGGMTrB3ly6hr6CduhLjagsHBY SJzYEHrY/5ivaFcgJ/o8JFSDIgLePOKVBtbV1STDYOuO0IrDCHxtbAy0sJVmGJwF4LZe Bk9ENqaXKNUIssYSmCVDjSq0nY8RN4Q0ltxy0nW/FLrwHXmjaxryoKFOhXhKDrFSwIsd Wrm3W5auJuC2AOwXs3fLb3qoaN1QNHa1wYeYTx80WsMFLKdeOb7Oe9GrUJu7H4rrXvLu UMSA== X-Gm-Message-State: APjAAAUSPp1tm+ZEw3t0flr94aP3IP1zs3Glx09UJ7/FOBknbJajn+UJ k27O7v3FYVBYpwQ7xx62MKkXhA== X-Received: by 2002:a5d:4e51:: with SMTP id r17mr3114077wrt.249.1553184865526; Thu, 21 Mar 2019 09:14:25 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id z14sm7959165wrv.78.2019.03.21.09.14.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 09:14:24 -0700 (PDT) From: Daniel Thompson To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Daniel Thompson , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kim Phillips , linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH] perf arm64: Use local headers for target compiler Date: Thu, 21 Mar 2019 16:13:53 +0000 Message-Id: <20190321161353.16198-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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