From patchwork Wed Dec 28 01:57:43 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: 37089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1681118wrt; Tue, 27 Dec 2022 18:21:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXu0EWQcfWtWJPPcvO82JLz/ZsJpvOAnYqenaD9cBKrPTY8udk2JcbbkN3yaozYy4X6T3aiL X-Received: by 2002:a05:6a20:4ca1:b0:af:f80a:140f with SMTP id fq33-20020a056a204ca100b000aff80a140fmr24455600pzb.8.1672194064008; Tue, 27 Dec 2022 18:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672194063; cv=none; d=google.com; s=arc-20160816; b=I0k6RVA5haOWkcaEICM0DXktbVoVL/9ivqPEQ4b2E0C2SXWfKbfA+li+9G/LlN4THX KXLtNftJaV6lrZosufMUeKREjlvPAOq8xvAUKNtkYBJ7UXSbIGjh7MbGumUMWIQ2Dl/+ hlFb+YnWulEX1LGH+peuMS9OCRnetLznKHp/v0VpCJpOnEz8LPz2lbmupY+T0S9Q10nM 0gHATkBMdpQP4am8BUtav4Jgs6eR1Jn3/XAGrZBoY/EU/InPczZAlzsFGH8h2XSBxgBH doN08aLyFUFXVRpdDrvISQSohrUV7urXDkuwRztDNP9ycX4zl12JobrbKPqticghP5Be rV6w== 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=qYUSEQxWGNeNMtnfxMUmpz6TnfUaqkG/IC4GoFIqokc=; b=CSHV90nBjNn94TSth5NCG82u5f2xv5mecn7kxp1FjIkrGuPaSd90SYSdIR96PLr62E O76oIYuJoLisBPc+jQ481YKDNxNQrdJtfetE9hv4E42dCjXusROC+QYJZX2D9n5+PdZ9 MRC5+NP5o1uY85Hvmk1Qv1Ie3kGMaatAYuYIXuYnRkdOsHUm4y5hHgQXkxQX6cxXCSjV u32cEySlUSNYkseM5KBPaU8BK3DMNv9fz3ue2b/eU1SGpqWqi7TBA5syGZBrHCVMcOIb QAP6HbFMYSKUlff+yzjDdmxDkT+BPUG30c3+j62dhp91WeC3UbBF/ESdNAEV8+fA3U6t 9jug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202211 header.b=ArgKPDLj; 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 e14-20020a63d94e000000b00496731929d6si12256660pgj.780.2022.12.27.18.20.51; Tue, 27 Dec 2022 18:21:03 -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=ArgKPDLj; 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 S232467AbiL1B5s (ORCPT + 99 others); Tue, 27 Dec 2022 20:57:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbiL1B5r (ORCPT ); Tue, 27 Dec 2022 20:57:47 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB25F292; Tue, 27 Dec 2022 17:57:44 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 1C1E2CC0; Wed, 28 Dec 2022 02:57:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1672192664; bh=eYffNI74F2vb3LyOB9M8P9PzlF3gRsq+btlJ4EZaKsI=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=ArgKPDLjuMAAgwc1bXl9tRoUXAJpUIwUE1VjZ9yy3wjDWv/Q58nKprah+ErHnyoIg wk2DSgYzXj614ACZORCfsp7WIgCuGP6AaOaPk7xt0aSPc6O1S5wYfFp2w/r0dhMc61 7s5QjWqjTKDXHfdD7j9PW3VaCHanEv7v5e71oy1NLXyKKSQGIEnPYf0BYpBJh5SaPh QpQAWjZlE+16hyQOgXUMXlRqzqheI/TKeU6tHsHjuBGCtoew/8ZGoC7vJNPXiKHwF3 cgLLUyD4QSyA3G9Sdh4zXdbjDP8FL1x0c/xDTSzvWH/NxY4XWxjrRON///iZicTO/A SDZijC1Mpf9lg== Date: Wed, 28 Dec 2022 02:57:43 +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 v2 2/4] perf python: fix clang feature detection littering Message-ID: References: <44bb9a29bd7a0385c25ebfd69abd0a41ac2d753b.1672187710.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753416276777707111?= X-GMAIL-MSGID: =?utf-8?q?1753422562964280572?= 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 1cee26c63613..ba0b1e078855 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -6,7 +6,7 @@ cc_is_clang = b"clang version" in Popen(["/bin/sh", "-c", "$CC -v"], stderr=PIPE src_feature_tests = getenv('srctree') + '/tools/build/feature' def clang_has_option(option): - cc_output = Popen(["/bin/sh", "-c", '$CC "$@"', "", option, path.join(src_feature_tests, "test-hello.c")], stderr=PIPE).stderr.readlines() + cc_output = Popen(["/bin/sh", "-c", '$CC "$@"', "", 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: