Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27701358rwd; Tue, 4 Jul 2023 06:45:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlF44xhld+X97sEgHgXYV/s4R64xaJ4JpjZHNf6yItVoamZQTowb+o8TuIXSmrTm+3546uib X-Received: by 2002:a17:903:2281:b0:1b8:6e2e:78cd with SMTP id b1-20020a170903228100b001b86e2e78cdmr13249334plh.40.1688478305060; Tue, 04 Jul 2023 06:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688478305; cv=none; d=google.com; s=arc-20160816; b=uItgwz78eJcbjX3xhxIaj/6hzGkZlVww+OHvKWcn3fRE+Agrs5mXguxpA67+H1Cxip nH2slhoedzxUpowY4+iRoAnxsis9nOWiFBOlRsgaa2ErBEWGlJUhMODegtG1TaEkRDLT opYTOED0/+RC16hI2TTsulvEBFMzBR0urG9HXVhbo5AHz6kS5vx2g99d/xFFP2lxMzkp WPwVuYrfsbkBQlYVOoxN5TI3aAuHPIGSnZTAvthqBsJSxu0ybFR9kh4cL7qw3nzEZGLm Ql0LoP+eQWfaEUH+P0CEVXJnw7iL6Wjddj/D730sFbdPW2lHkTh+vbozvU1BbOJv2xqn fwKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XmB7Lt1kdBVFrZQRN7GBaRqYcNVkYfgU/8oYqlFezt4=; fh=gHAZAFQtYoSLR/r03v5LBe0lzv8tA6d1EToHlDbFiQA=; b=WN4wFFwJYXtLXlsakyp2urSm02zRKvK6wT1vevhPmCwElQ48pL7E5j9+13Izk3DqhL /Xlv3Q7f85NwtktbsjWrSXtGs28s5fwHQUF5Q3Gxd/o0CYWt9gnStEvLJPZgOy7YXQH5 OQCZrPhIJ98gM6yHuITeeih/YW8NCHAHW9IyOQxdYJazQUKe2tg1Z/UNw+etoEWNWk2w e8+zPUkilgsXLFL/7tCl6bzpmgT7QJofRFRkHZXfKdHk1Hl3xumMJoPxpv8MkYqT88AS fiRQXiLa83Sqlm0QIIPg1rHknHEXxcqYCjZGmSeVdi6WeHCzCMpqWktzi5J+80oM+0U3 5xjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ajJ4UiuF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a1709027fc600b001b00ae4ad57si5842124plb.369.2023.07.04.06.44.48; Tue, 04 Jul 2023 06:45:05 -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=@gmail.com header.s=20221208 header.b=ajJ4UiuF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231345AbjGDN3i (ORCPT + 99 others); Tue, 4 Jul 2023 09:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjGDN3h (ORCPT ); Tue, 4 Jul 2023 09:29:37 -0400 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DAE99; Tue, 4 Jul 2023 06:29:36 -0700 (PDT) Received: by mail-vs1-xe34.google.com with SMTP id ada2fe7eead31-440c5960b58so1708419137.3; Tue, 04 Jul 2023 06:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688477375; x=1691069375; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XmB7Lt1kdBVFrZQRN7GBaRqYcNVkYfgU/8oYqlFezt4=; b=ajJ4UiuFndj1QghyWQgPkL/JxKC3j1CBoSonKOyfUJJL7j07mh4qPoGIsk56/chegt xpzBz4hA+2qF8Iyg+suTKjFLkDI9hiAyA43m8+N0/78KMweoPyissSbRCxDPlEZlbe9B QQq2iQaIM63wFhEmEq36Es23XFItAVroZiyNHk0nsjNxChQS4gcw5rx0S+jPQJsKNUDF qgt/yD4FKjpTxS/+okX250KkIfpcfwON3oS8NF1OyVkfF/+c6WS0nNI/C+dSZIpBKbWs v+0j+vAEGllmImrMMhN+l6gMWa+85tjTmTlkC8lX6fitTHJJ5jx3Q8ckwwVni/moruf8 7wBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688477375; x=1691069375; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XmB7Lt1kdBVFrZQRN7GBaRqYcNVkYfgU/8oYqlFezt4=; b=e+Koq5aAylfI7xnJ926pmdLcIdmzAJSjU4xzn7pr7q1l+Epx1cHbeWCO+C5BFcQQkm F4n2PfUrcgBhXBXbpa1IhSIbuaKqZWMtuNJ7EbEIpElATRrWJWNNt3AxyU73B65lftVa nSGfpx/kVFewdX+1DimJPJ2+83JIFC4KA6eietr8dTof8aflqckPhKaOJA1I/zt0ATGm 8I46Yvlfm6EwBHint1mIGWUDVV87UlayCl4Lwr/EyhKoQ+NzSBHQSBGNWZxl9sa56iNU rv/1ekCYnfabx/uSev+nKCZSoDcxToynaepV7LoefeWJ3G0++vI7FA9OwJCIsTxITCRk Kw9A== X-Gm-Message-State: ABy/qLaRKz+3vMgrZgtwIvMAN/F3etnBz24wKOmZ1m8rI1BYCiDJbPMH b+mD/BA40cSJLSvC5LdmcDA= X-Received: by 2002:a05:6102:50d:b0:443:92af:a851 with SMTP id l13-20020a056102050d00b0044392afa851mr5784886vsa.32.1688477375412; Tue, 04 Jul 2023 06:29:35 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id v13-20020a67ac0d000000b00440978082a6sm3673732vse.8.2023.07.04.06.29.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 06:29:34 -0700 (PDT) Message-ID: <5164d21e-1ceb-35cf-1d1d-6c32fcdcc4c5@gmail.com> Date: Tue, 4 Jul 2023 10:29:29 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] btf, scripts: rust: drop is_rust_module.sh To: Andrea Righi , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho Cc: Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_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 References: <20230704052136.155445-1-andrea.righi@canonical.com> Content-Language: en-US From: Martin Rodriguez Reboredo In-Reply-To: <20230704052136.155445-1-andrea.righi@canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 7/4/23 02:21, 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. Keep it, I think it can be useful with tooling like kmod. > > Signed-off-by: Andrea Righi > --- > [...] Reviewed-by: Martin Rodriguez Reboredo