Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3852341rwl; Tue, 27 Dec 2022 16:44:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXt99Mwf7i03jtIf3eqQ2aH3hjrk6tR8HhUwo6VW4ooJv9aeUAFpa2SznfpTcVaQ5SnSKXGB X-Received: by 2002:a17:907:7d8f:b0:7b5:911c:9b12 with SMTP id oz15-20020a1709077d8f00b007b5911c9b12mr23974010ejc.1.1672188282331; Tue, 27 Dec 2022 16:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672188282; cv=none; d=google.com; s=arc-20160816; b=qM2YGxzMyB0Ez7EhM2me763zb7bMYiypRvlxwspDHhnxjrj4OhjhHsoJl9UFNBGOCk 3r98fKqL6P1K7+LQfpJi9mLMUg6nMWFgXrgsLyakQTmlMKgKuSHzYRYs9zx2vvgz6k9t xlz4q0Z6KGllzjsMuCi2lJuggPiJt662YzxMWd27wtIu2uUk7yJq7jxeustJxGqRfUNo KZy5GblCSI+WBSt0D3/+Wi7lZNbSs39wt6Z5pm5vuzaOjyLJWKo4O5pOPC9q15NBzD5m 2vz7AIhNC5QGncGXYV7CL9uT3oq37/HY56Fxq4EMl115CCR9tHaZGiVkFHIQJTwtZFDu UO8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:from:date :dkim-signature; bh=5Nyu5a8aD0exGXIEq9DfNxLT0kk4u4U0mdegstypVdM=; b=BrP1Qukb2eh+IwxChcKW83vZ6TVZ1IziSY6wCjoLxxSCD+x78H6/7RKtiLvzXrip1l FEdFGpXFAysJFo+9NdrbvuMnL1353VxR8fTyAel/YcPWp8EqInNXGH4ACMw6GOZcICs+ IoHcjxAxzVbw4nJdq+xXh9ooPI2Dgqhm0v16v+zExOHbQsrqeVA02DHzyp/UJNdg0vdm lmolSnIuFqmzHXlajCuCUqOYPF4yxubiIYtXNiWy96I+96QG0GEnOHxJXTne4HIH9nNf NJalyJs426qCaATI6gSPQSlQ27b9zwAnYo3KbO+CTMD6ZeeFlxXE5RCOBAVhUvcdGZax rsfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202211 header.b=fuPuYWcB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft31-20020a170907801f00b007c0fa2d86d1si8572176ejc.906.2022.12.27.16.44.26; Tue, 27 Dec 2022 16:44:42 -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=fuPuYWcB; 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 S229939AbiL1AgR (ORCPT + 67 others); Tue, 27 Dec 2022 19:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiL1AgN (ORCPT ); Tue, 27 Dec 2022 19:36:13 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1170C2A; Tue, 27 Dec 2022 16:36:12 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 04443DB8; Wed, 28 Dec 2022 01:36:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1672187772; bh=/RGVuKr5/3fCEx87FQ8Nip6ERreIb5DBGC2EyffIs24=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=fuPuYWcBEuWZDrHK7r+tlFxnVEDjRSfUxg5F1XbZUdKjSLnkAUn2hZH2WRFYRtVr8 7wbGB7GKMQYpblP0yaD0DtfNvlvENzCWXcxQglQf288+wAbkC8nEH0BT4UmkQhCQnP vQ0spz/+EKLikRfa3lbF2LnzbCnoXuP+26d1jR4upnQOKZ/qSSyJpaZBkUyTlIw7As HhCx1oru5tKwvwf3knElh+jyjJH3ijWm8lONORICVA+3YDTNVUNYqM+8mMTZrueFEZ DZr/3V7lh66OSxXg0jtO1rBxeHh8ooZHLMAt8CWOKf+0eG73JtCyofQ4vMrHiF28GF jZSohr6L3xI+g== Date: Wed, 28 Dec 2022 01:36:10 +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 2/2] perf python: don't run the linker for clang feature tests Message-ID: <7d943ff294fbc606880a824b9764704f803f8beb.1672187710.git.nabijaczleweli@nabijaczleweli.xyz> References: <44bb9a29bd7a0385c25ebfd69abd0a41ac2d753b.1672187710.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3obvt4otlktrkdug" Content-Disposition: inline In-Reply-To: <44bb9a29bd7a0385c25ebfd69abd0a41ac2d753b.1672187710.git.nabijaczleweli@nabijaczleweli.xyz> User-Agent: NeoMutt/20220429 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, 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-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 --3obvt4otlktrkdug Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This, for me, slightly-more-than-halves the time it takes to run for a in "-mcet" "-fcf-protection" "-fstack-clash-protection" \ "-fstack-protector-strong" "-fno-semantic-interposition" \ "-ffat-lto-objects"; do cc "$a" ../build/feature/test-hello.c -o /dev/null; done =66rom just over 600ms. Signed-off-by: Ahelenia Ziemia=C5=84ska --- 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 58239e1cdb2a..400c99cd7734 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -16,7 +16,7 @@ cc_is_clang =3D b"clang version" in Popen([cc, "-v"], std= err=3DPIPE).stderr.readline src_feature_tests =3D getenv('srctree') + '/tools/build/feature' =20 def clang_has_option(option): - cc_output =3D Popen([cc, cc_options + option + "-o /dev/null", path.jo= in(src_feature_tests, "test-hello.c") ], stderr=3DPIPE).stderr.readlines() + cc_output =3D Popen([cc, cc_options + option + "-c -o /dev/null", path= =2Ejoin(src_feature_tests, "test-hello.c") ], stderr=3DPIPE).stderr.readlin= es() return [o for o in cc_output if ((b"unknown argument" in o) or (b"is n= ot supported" in o))] =3D=3D [ ] =20 if cc_is_clang: --=20 2.30.2 --3obvt4otlktrkdug Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmOrj3oACgkQvP0LAY0m WPHFcQ//VwvmoEt08EvPPuNlO0m3AH/15h9Tw3G8eXSbMBHT4IhvE7UZm7CiOaCx ymvzKpnbZ4q/zqn8TV9MoVuppr9E6r6PNk7LTCzVFpTVPjphBuXM1tZ66JQAc1Tl Gq/k9xumFejBUE9pRJHoeutprC2gAAIhc8Tn36URCjgqFLb1phq1MyPg6DbKuAVo itbenP+2z5iSXtLM9cB1MmrK5UUSK61blfEsJJ4tph93zG9VSBGeqGMgHHSLpxUr dLJkHbsrhlmhM2x1ufzCxcd6mOf8PN7Hur7krUKdyjguhmBvXDscHcmQrZooaZct lFU5On8l5QHNClXH0cI8VectiD1tJGX82Y/c6XiEPV1Nn0Nz1vdiwtpX6rfV8Wey tBWr+sFSLbDqgg0Iqr4ooxK/lraJvXj2PJrKLg1chwEcTAqYC8/kR1KNGfMq/b+D /pdsXvVym1GWRMZ2wrhy+yvhja2mn3DRoEUQwTPi6Oxqv9JCgfuRHvuru2v4xP9c Sf8VqDsVdu20Xuty6WUfo5pJaXAYMP8Ze/bGDOEGSM7tOBdzjRuTa5HkeOzUK9uu LyusCrHNKV5H/A+DnZQWY/s4o/hilgJSpBOFySPT71tsM8aEoci2cdbbZOZB0NXm 5i8sfvHOnKdJHfgXThvcZmXj0vCZSSptTvEE0WIR4ATt/E2lge0= =ZA2T -----END PGP SIGNATURE----- --3obvt4otlktrkdug--