From patchwork Thu Mar 21 16:13:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 160798 Delivered-To: patches@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp979183jan; Thu, 21 Mar 2019 09:14:26 -0700 (PDT) X-Received: by 2002:a1c:2283:: with SMTP id i125mr62453wmi.24.1553184866057; Thu, 21 Mar 2019 09:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553184866; cv=none; d=google.com; s=arc-20160816; b=bXWhT/hiae7OL1lJZpokqd0L9utE0wx/SdUhQKPLK97DWuE+sMJiAz6o2o2nIZq9Rf LXrCNaNBdseZQiMzawrs7GHA6Jvv3gWGHGALv0ZIr+yZ7Dq5jMpv4PRUGiLGA8PrEhgX 0T97LWXd/0IDhRBZGJgx5RD9D2XK4g7ZriBkwfe1Umx7MzKuQf1rMCpMXR3iBmKf9F4W SY0V86P305bYepVHdaIIpvZoifVdF1aMl2ryJwwa14i8rvhiQFZQV6GumBpAH+6a0BS8 np+DIWT6+NDfCosWZhLiHAe3Xf/tzjwWAL3HyiizBM3u7oU8q2Sg+Qo2AABeLR9QrobJ QSpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=yFJGkG2qAlqPkLagE8bY7qsbVsNEEIpaqQcVCEE7FJU=; b=uce+Ut6Hom6LkQvTx9fkYAfQ4nbkJWlHJ89zTzBTcJVHzE/rrm+8qlRCqOz65brWoe /7FDe7Fj9QG0tV1GksgYGsX+MLjr7KBB5Jp2hIRzge4/emIgDJlIaZN3YNCn9eBsZRkj uX+Hrp3vfevlkNAG1ZewEUBrEfvJ/pD27wKgy59DslOYHD5ePhFq7X7NQVTig7eWhSHN zKhFlEx700/1CHhwW+VENchrkiJmQux0km7pyft64f8sC/dZr/FB2ejPwfBLvHF1Dpqh OKSLAGFzNOclTaKJzr43yDSeb7OOGSp6IdFbPrxkJ8QTr3gRpa9A9c8ctpgPSr8y9L9q sk2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a8NiOKE1; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x3sor4352039wrr.13.2019.03.21.09.14.25 for (Google Transport Security); Thu, 21 Mar 2019 09:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a8NiOKE1; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=sHkl+cRs3IdSuNz3w4c4lgPBrNKH78t1b9q1eohVR45jmBHTj5jougbduvrLiNJ1TK 5KMEc2CvDeLk/Qv+li8l33QTYzWRP0N9qvCHrsEr4ypieJ74SS0DrwOQfJWmb9D4ZybQ YH7b7Wt/qBSe8lVrXEIBtf4FpTrzqTaZNfAffXumA7goHq73QnqEfarDNv1iyxQwRzUs O8U7CvIMlV5cuQtXzC/523GSgWSQW8LJGzHNzZ9OyWnblvr2jUJfIi7NVRMmZj84/7mS rz0K6TtMuxppHMnqGTB/QFErLVzrATtMUmPRP/wmFI7q5b+ktF7WsDm2QeLbZ89AXzUs 1M+w== X-Gm-Message-State: APjAAAWTmIfkmqDF+po9eojuFiiLnH9qJsbsbkcyY+M7pGm6BmW1byel /nY4rZdPPdYHy4776sFwLesGMkb3WYh28/y5 X-Google-Smtp-Source: APXvYqzBJ7rMmk9uAgdRKuO1mopJiClA277eaCNVOkkXymkr9ObnaF7J4li7fYhBrr6tmxLGydRgjA== X-Received: by 2002:a5d:4e51:: with SMTP id r17mr3114077wrt.249.1553184865526; Thu, 21 Mar 2019 09:14:25 -0700 (PDT) Return-Path: 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 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(-) -- 2.20.1 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