Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37194115rwd; Tue, 11 Jul 2023 10:38:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCpyyFG+ASmouqo5rMWjloDS9yIRFC+KOQO/Nd+6sLdQHtQm/1L0Jsk9WUqgEmcGRwjCbU X-Received: by 2002:a17:906:7785:b0:991:b2a2:e424 with SMTP id s5-20020a170906778500b00991b2a2e424mr19866064ejm.76.1689097113552; Tue, 11 Jul 2023 10:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689097113; cv=none; d=google.com; s=arc-20160816; b=H5ESINYI1ICWhc6sGkyhO51hnQ3XkSL39sgG011jBFpUfSoQtK3ZyEEccH2HhT9NuK 7qNvfhWxjutCnx9+0tdaHqpJHxZ7IONxq+ww+vvAOYSsMtJNu5+0Qy9P79ZxIJKELAjQ 53H6iW0Ay2mdIjRPtUhN8LFivrG9uOYp28M3pRFCiyhe8jxwzZkOF/QYYIfyre08FkVM c1jzMVGF4ZG8KRE+quYr75Y/cisqVSA9J6o0S4Q6rC/60gH0R9EPTPGkk4OyusokQltu csIkwS8q2DXKdI/Er1fCntb9mZFNmmAWjNViYFpd38QexBDlki4JXYKCzttk06MshJPj TCKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=WVuQD8F16q+8KpkRXUZfCZXz1Vbx2RrVytD1O4kCmYE=; fh=a8zRU5iiB3sKmfb6e9s/3sbpB88t8vtatHPNtPlxoGM=; b=BlZe8ccWJ3/iM0H6ePoxH0MyqxN4A4mKz4Iia+CVYyEDuXF+TIgAKX7jAYJU1hhLbo 6cIiunxhvScukwsBsZv/cv+3l3kZgZusxk0wJxDy2WUYZiXQaqg5N7uOLdrIhpFIkkEn OdULEp4QTIbHI8WGVEhFIJQcfysXMDnSzy/5EVhGecmaCSFnAf8VEUlA1XGef4Bpg8XU 3iBcpgJTFPrq7clxcPYqHeAZOKTaYpoFYv4wz7p2bqgI55vAgyZKnQQUQj4K+UqTWss9 nQCoHbYQLYi/wXZgptGue34Hx+UnQ4WVHhFsq9iPFWV7ORsCXkBy/Q9SPg8Xff9r+6B6 ZNLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=Z9nqXzX7; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jCe2kUA8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jo24-20020a170906f6d800b0099302549616si2374647ejb.805.2023.07.11.10.38.01; Tue, 11 Jul 2023 10:38:33 -0700 (PDT) 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=@dxuuu.xyz header.s=fm1 header.b=Z9nqXzX7; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jCe2kUA8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232971AbjGKRXX (ORCPT + 99 others); Tue, 11 Jul 2023 13:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbjGKRXH (ORCPT ); Tue, 11 Jul 2023 13:23:07 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED095170A; Tue, 11 Jul 2023 10:22:42 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0EA415C007D; Tue, 11 Jul 2023 13:22:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 11 Jul 2023 13:22:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1689096142; x=1689182542; bh=WVuQD8F16q+8KpkRXUZfCZXz1Vbx2RrVytD 1O4kCmYE=; b=Z9nqXzX77m6gQD3BPliH5EP/1qdo75FV8gW/EU/f13H7zNT7JQt 8PZC0CZLyIlDTCrBj/Smo0OqcndyK1K5JHlzClVY+s1Mplvu16IIMUE6rITaxtMV 8oJ3mevxtINrvAKzDZtBfNeebRLgkKXZH4gK1QaKyqxVeclkFAHA86cC+E7haWyf UDLUjZx0zDEzgPlAjiHGn8Bk0a8sWLe8SmeAgngNQbjSIV0N56edv9V8lzpugg21 EMOuIDwxx2rSwNVQtiBHP6B4SOBRetiLS0Qwu4jK7+ggLy16q7BuzKycbWEnZjdd M/+PcitRiR4Nb9jxg9tRbcupdu+1k2jWiDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1689096142; x=1689182542; bh=WVuQD8F16q+8KpkRXUZfCZXz1Vbx2RrVytD 1O4kCmYE=; b=jCe2kUA8fhmQT2/vhwHddfoBVjVRMZXXCVH35gCyMesgcvm3T4u 295KaMluRX/o4yOuK1rhOqcpZCPsohH+VJMgAXV1ISHl/BAZ2o83dmmKr76H53az wKExqr6xxi3C1sXTn+6v7QoBmqTaruZwf+verZsvBs03ShG0CnlhYR7PZUbR9XXT etxxz0ySlDmc6b7VrEiPV2I1vlzGxIi/e2sU2HctVSIsCl9d+49CoBA0ogijWAu8 yB0Nb8trWqr1vvJAafhQ/SeZsfLDk2+DDC1FZwmQeJzhxYFTPeJmCDoGgvpWbabJ uWDTQnoFgaRiWWSXINj16+76u1wLEBQfLHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrfedtgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtugfgjgestheksfdt tddtjeenucfhrhhomhepffgrnhhivghlucgiuhcuoegugihusegugihuuhhurdighiiiqe enucggtffrrghtthgvrhhnpedtgfeuueeukeeikefgieeukeffleetkeekkeeggeffvedt vdejueehueeuleefteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Jul 2023 13:22:18 -0400 (EDT) Date: Tue, 11 Jul 2023 11:22:17 -0600 From: Daniel Xu To: Miguel Ojeda Cc: Andrea Righi , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, bpf , Martin KaFai Lau , Arnaldo Carvalho de Melo Subject: Re: [PATCH] btf, scripts: rust: drop is_rust_module.sh Message-ID: <56yvbhhiij3t5tsvnjcrrpbpvnezi2bm2w5c5xkrvwgix2arq2@ku3curqk7b5u> References: <20230704052136.155445-1-andrea.righi@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miguel, Andrea, On Tue, Jul 11, 2023 at 04:39:27PM +0200, Miguel Ojeda wrote: > On Tue, Jul 4, 2023 at 7:21 AM Andrea Righi wrote: > > > > With commit c1177979af9c ("btf, scripts: Exclude Rust CUs with pahole") > > we are now able to use pahole directly to identify Rust compilation > > units (CUs) and exclude them from generating BTF debugging information > > (when DEBUG_INFO_BTF is enabled). > > > > And if pahole doesn't support the --lang-exclude flag, we can't enable > > both RUST and DEBUG_INFO_BTF at the same time. > > > > So, in any case, the script is_rust_module.sh is just redundant and we > > can drop it. > > > > NOTE: we may also be able to drop the "Rust loadable module" mark > > inside Rust modules, but it seems safer to keep it for now to make sure > > we are not breaking any external tool that may potentially rely on it. > > Just to recall the history of these changes: > > - The script got added in order to skip the BTF generation in the > `BTF [M]` step (under `DEBUG_INFO_BTF_MODULES`, which depends on > `DEBUG_INFO_BTF`). > > - A few months later, it was noticed that C modules couldn't be > loaded if Rust was enabled, due to the base BTF info in `vmlinux`. > That triggered the eventual addition of `--lang_exclude=` to `pahole`, > but meanwhile, we made `DEBUG_INFO_BTF` and `RUST` exclusive. > > - Now, this patch removes the script because having a newer `pahole` > also correctly skips the Rust CUs in the `BTF [M]` steps (i.e. and not > just the `vmlinux` one), since we pass `--lang_exclude=` to both cases > (`link-vmlinux.sh` and `Makefile.modfinal`), if I understand correctly > (the script could, in principle, have been removed even before > `pahole` got the new feature, given the exclusivity of the options). > > If this is all correct, then the patch looks good to me. I am Cc'ing > Arnaldo, Martin and the BPF list. I believe I authored the original script. This all sounds right to me. Acked-by: Daniel Xu Thanks, Daniel