Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9683019rwl; Wed, 11 Jan 2023 08:39:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXuk1SlgY5lpWFccz7miXBVg+iQyp0r45dx5EguMtQbuyED0M0vED5/dBWCNvFSLDegTFb3k X-Received: by 2002:a17:902:b401:b0:188:6300:596a with SMTP id x1-20020a170902b40100b001886300596amr70365334plr.7.1673455148642; Wed, 11 Jan 2023 08:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673455148; cv=none; d=google.com; s=arc-20160816; b=XiiaND8ckS1hDhWj4fsgSigCUuila4pH6fuVUMZPZuw/iJWIoPGIz3orx/0JAnETBa lheLFmFt1FMHn5sHLyHZJSi9NopA32ExvGqsPDT0E2xQwsTtPZQw5IKrbgZ/gKMBza3f ddA7wVwfgIXI3aLaIml25yoZ2ENdpuZW4W+22t0eOXMtBMtueO40R0U8LdK1ltLfnU1k 26yjTludrJU4bYM0f6Xwor4lrhBzobpHOwcsqzQhVVdhzFt6cvaiE0UGq8ywWYw+fG9H xAxwRfj+QoIdwkYpZHoErsQoZJ3RubopXaV69KdGAYqVDl1v8WrU3xWHTXaq5GWf3H6l p5ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=qVmBnTp1A2p/C0W7hdhZqcU0bQDtPYsv6rnzRVpsMKM=; b=CnV3yCDheaboqJTXJef97tanmNxm8Q97/0haeQ6uIFciv1JREGfhHrmtjBMXaXdH97 bDQFJDoh4l1D9y9Yoh1eitIwyQvWZqECv84jgH2FjyuCQ6uEdw/90CeN9wVFy9bbaOSF Cw7dPmStArM2h8g0v7lSnbcD6GRb86b1KSuJE0GFSO2l29ZTEmx5KrztV7NSalKLNmYV T22BlrNTogxYDkhsNPmjSL6uWzkQNZ1L0wPVEADS+Bg7BBd1QoKAKFB0Wj+S+uDwUIYB faa0xzDsLothCvJiUxe2lJbXIe35I6zAZFKKJLKSsEddL12ifRK0bJSnBoCcB5HvvZss T8Sw== ARC-Authentication-Results: i=1; mx.google.com; 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 t203-20020a635fd4000000b0046b2ec0de65si14510984pgb.789.2023.01.11.08.39.01; Wed, 11 Jan 2023 08:39:08 -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; 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 S239489AbjAKQZ7 convert rfc822-to-8bit (ORCPT + 51 others); Wed, 11 Jan 2023 11:25:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239115AbjAKQZP (ORCPT ); Wed, 11 Jan 2023 11:25:15 -0500 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A20373B0; Wed, 11 Jan 2023 08:21:55 -0800 (PST) Received: by mail-ej1-f42.google.com with SMTP id u9so38206940ejo.0; Wed, 11 Jan 2023 08:21:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6DXJPy/Pk1SGO6M8vS+/vVNiY2j49Leord0f9bwih1I=; b=AQODSh3jKybMUYZdF7trgotRE7C0tYH54DOA0ZPga9k/yCGKSETsf72zQJ1fEKNIHI yW+i4En3XGn2TohvPQ40cB4Yi9T8/kAc7Dvlisj0thlgAkJyBfd8O3cFPF3G7vYNMcrQ 2g/7v1bAdqg6KxRqVjpmz9otBfGP0m/bOl1dXQpChHSiqlHKF59oYSsLzz1qICbtNSU9 WeYBUocNv2ESguI8RywNaH0mHlJ4z2TfefDRDfiawR2zvmXL824F5O6XMpFLNrD1TdNv lw3ZkGW7J51KRH76YG9FJwhiazWMOKrYSzgPAnNAiPYx9E/HxxWi8H9tMFJsbhF+osTg 53Hw== X-Gm-Message-State: AFqh2kpKSa6RrUqNf1orA5wDX5lSmxDiOfhA358LlHEymQkqFLcU6pNh Wo4Rx6bVEyM5NBVXtSGNykO7eE9Ht5T0kYVf X-Received: by 2002:a17:907:73c1:b0:7e8:cf25:4b9c with SMTP id es1-20020a17090773c100b007e8cf254b9cmr57813609ejc.59.1673454113562; Wed, 11 Jan 2023 08:21:53 -0800 (PST) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com. [209.85.208.54]) by smtp.gmail.com with ESMTPSA id c2-20020a17090618a200b0077a8fa8ba55sm6318153ejf.210.2023.01.11.08.21.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 08:21:53 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id b4so3544974edf.0; Wed, 11 Jan 2023 08:21:52 -0800 (PST) X-Received: by 2002:a05:6402:1d8f:b0:48c:fc4f:f837 with SMTP id dk15-20020a0564021d8f00b0048cfc4ff837mr3605348edb.79.1673454112657; Wed, 11 Jan 2023 08:21:52 -0800 (PST) MIME-Version: 1.0 References: <20230111152050.559334-1-yakoyoku@gmail.com> In-Reply-To: From: Neal Gompa Date: Wed, 11 Jan 2023 11:21:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] scripts: Exclude Rust CUs with pahole To: Eric Curtin Cc: Martin Rodriguez Reboredo , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , bpf@vger.kernel.org, rust-for-linux@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Jiri Olsa , Yonghong Song , Miguel Ojeda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Jan 11, 2023 at 11:16 AM Eric Curtin wrote: > > On Wed, 11 Jan 2023 at 15:34, Neal Gompa wrote: > > > > On Wed, Jan 11, 2023 at 10:21 AM Martin Rodriguez Reboredo > > wrote: > > > > > > Version 1.24 of pahole has the capability to exclude compilation units > > > (CUs) of specific languages [1] [2]. Rust, as of writing, is not > > > currently supported by pahole and if it's used with a build that has > > > BTF debugging enabled it results in malformed kernel and module > > > binaries [3]. So it's better for pahole to exclude Rust CUs until > > > support for it arrives. > > > > > > Link: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=49358dfe2aaae4e90b072332c3e324019826783f [1] > > > Link: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=8ee363790b7437283c53090a85a9fec2f0b0fbc4 [2] > > > Link: https://github.com/Rust-for-Linux/linux/issues/735 [3] > > > > > > Co-developed-by: Eric Curtin > > > Signed-off-by: Eric Curtin > > > Signed-off-by: Martin Rodriguez Reboredo > > > --- > > > V2 -> V3: Enable pahole option upon comparing with version 1.24 > > > V1 -> V2: Removed dependency on auto.conf > > > > > > init/Kconfig | 2 +- > > > lib/Kconfig.debug | 9 +++++++++ > > > scripts/pahole-flags.sh | 4 ++++ > > > 3 files changed, 14 insertions(+), 1 deletion(-) > > > > > > diff --git a/init/Kconfig b/init/Kconfig > > > index 694f7c160c9c..360aef8d7292 100644 > > > --- a/init/Kconfig > > > +++ b/init/Kconfig > > > @@ -1913,7 +1913,7 @@ config RUST > > > depends on !MODVERSIONS > > > depends on !GCC_PLUGINS > > > depends on !RANDSTRUCT > > > - depends on !DEBUG_INFO_BTF > > > + depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE > > > > Does the order matter here? I'd rather it prefer a fixed pahole and > > disable BTF only if we can't use pahole properly. > > The order won't matter. > Then it looks good to me! Reviewed-by: Neal Gompa -- 真実はいつも一つ!/ Always, there's only one truth!