From patchwork Wed Dec 28 00:35:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ahelenia_Ziemia=C5=84ska?= X-Patchwork-Id: 37052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1650543wrt; Tue, 27 Dec 2022 16:41:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXty+Xqo5W87G/wgeO67cX5XShfDYV3+aYvcWPM4BMlR5RvFKa5Z6KBhMM4nJUfAhBhaFHbJ X-Received: by 2002:a05:6a21:596:b0:a3:9ca0:b982 with SMTP id lw22-20020a056a21059600b000a39ca0b982mr27556441pzb.26.1672188069333; Tue, 27 Dec 2022 16:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672188069; cv=none; d=google.com; s=arc-20160816; b=NjfIBkDljLppuUsDnR918vbDjNs3ZxnABm2kWLY7QN/kk+Lx4yaRkossZJgVwPhb6o lHKDi8JRbAW10UFxp3eHCtWC+qODLGPa8QsQBDmD8jmR2oUEyAlX380mQW7y5WlqiG48 lj9zLDH4WG+7jr60rffaeKXxOfF6579kH9UXoNaPiBJc4NJh2iy5c4eyopdSwoxcRDXC KxG3S7hmg5F9RdUnS1xk2Qx2qKEXdvk/9FmnF0plDrRzhJ7qxRaOcT8v74z0up8EPPGZ 2PSoYUsKPo3s+DKOz1c7XkVV5qpL14tGdPkzn4fWlsHMEyR1YSi18Jx7PP/XBUKw94nW xKMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:user-agent:content-disposition:mime-version :message-id:subject:cc:from:date:dkim-signature; bh=huc3jApK7cpas+mkALhKGHef4s6PYdSCXK1LdAYWHF0=; b=Dhz9sruiGt5dvN6BqFoL2PyXD9J07sAz5ucnh89QPv/IeHuLspMhjYfFc2vXa+4sDc lQMKZWLQtxx6GF1yMI9WLQepfrEWN/EEK3Jb/AaClPiMj+ofFVSbZRc7FUyCkPdcQODl Hb13H26zl6O8YvgrQBCt7N30kUpDv6iQ9WSvC01AUu/MOW5Z2rHaf4n2ExXMOwb1MN+O +Ajp4aVbktk/06PTQMZcWSi9dxo7BI+5Q/xMe5PyJARhtFa6TwTqwzhcB7v7ZmtunL96 k4YspaHTWHEQdw9uadJi+5ZhHDRSAUuLiBZwwFbHtQglMvncE4bZYJSiyKGFvCmMmq+v NrgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202211 header.b=hsmtYgBQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t203-20020a635fd4000000b0049ab7c8661bsi4739015pgb.112.2022.12.27.16.40.51; Tue, 27 Dec 2022 16:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202211 header.b=hsmtYgBQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229608AbiL1Af5 (ORCPT + 99 others); Tue, 27 Dec 2022 19:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiL1Af4 (ORCPT ); Tue, 27 Dec 2022 19:35:56 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AC8BC2A; Tue, 27 Dec 2022 16:35:53 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id B34C6DB4; Wed, 28 Dec 2022 01:35:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1672187750; bh=+yuFqRfY2HLZJC2FTM5sps1/rCx07mHiCqapWOI0R/c=; h=Date:From:Cc:Subject:From; b=hsmtYgBQLo1Z4Qzh85AN9gMUxXyHYaoD5iz+hIUBCovvxPn6km+W6Z1C6v1MscyZh Lha37KFpdbgElHnNfALmj/AhX2VXwFxgZ2vUGoLmBRzZJaEeVUVPe6tRrEgzcPEyW6 equ9UmhUp9IeYY8D0PfCeYpxvVomhg42/LJPGJ6PTDaMKuvjmB7KjTfzq6THmx9Itd B3e5634EoqAHoDAXNs9JLN9S8ZUPw4quAzlRqd+eYHvYAEs0jsOI15Sr1IjxZ2W1kp 7N+AZ6KCyos8845Hofx20UxisuGi+6QxUpes/opTdX+SEfHwcXarHyZCpdKoxjA/Fz NH0pbvjRY+mNQ== Date: Wed, 28 Dec 2022 01:35:49 +0100 From: Ahelenia =?utf-8?q?Ziemia=C5=84ska?= Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 1/2] perf python: fix clang feature detection littering Message-ID: <44bb9a29bd7a0385c25ebfd69abd0a41ac2d753b.1672187710.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20220429 X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,MISSING_HEADERS,PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753416276777707111?= X-GMAIL-MSGID: =?utf-8?q?1753416276777707111?= This left behind tools/perf/a.out, not .gitignored and not removed by make clean. Fixes: commit 5508672d7f4949f15c316ffd947228f130498534 ("perf python: Remove -mcet and -fcf-protection when building with clang") Signed-off-by: Ahelenia ZiemiaƄska --- tools/perf/util/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py index c294db713677..58239e1cdb2a 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -16,7 +16,7 @@ cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline src_feature_tests = getenv('srctree') + '/tools/build/feature' def clang_has_option(option): - cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr=PIPE).stderr.readlines() + cc_output = Popen([cc, cc_options + option + "-o /dev/null", path.join(src_feature_tests, "test-hello.c") ], stderr=PIPE).stderr.readlines() return [o for o in cc_output if ((b"unknown argument" in o) or (b"is not supported" in o))] == [ ] if cc_is_clang: