Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4270667rdb; Mon, 11 Dec 2023 14:08:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+jt1WwqAH83vQoGcvTc1C2YcIeN0u7I+vHblHM8Wq0EBpy2cji1Ai/3QfucgBmdgX9XZQ X-Received: by 2002:a05:6a20:3d02:b0:18c:4800:b0ac with SMTP id y2-20020a056a203d0200b0018c4800b0acmr2780512pzi.23.1702332529420; Mon, 11 Dec 2023 14:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702332529; cv=none; d=google.com; s=arc-20160816; b=O14++n2Dz3YY9uFKM5PbXOH9PGxj98yg5sI3AnVR1xOTrF9Kq13mcnG+GfPKnQQYZN EDjtqymoOVJwpvHXnh+yfgZTc50E/1yrFFlqzFRlzlKsX5GfbYO4FjwxZOdMACuv2Mme y7CghBPfIvHlT7QWokOy+CSU+JAnk3rdIPpHsaf/1vUvhHcMyhZwbtGUVkyJCAm1UVDe Ffxm/JiUL1n6qPF7eblFwywfVWj8dTuZntPc3wx92ujICBwuZSCK36ZITEc5Hzn5kRe+ RCozMH7SqVSiy9Z03ZffGbsFigHJYPELBxo+MpDrQBixC6YroCt+0FuwNQPrSuyCvDI3 mMRw== 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 :dkim-signature; bh=qlYlHCXGFU5KZ74rv5ll10Sv9Er2/TqtV7SmAS1Ie5U=; fh=WrJNEbZEqZFtkgJa91CUUkBae7oEsf1zS0vVMhZJxBA=; b=qZRsnn3EjIOKNoDATK9HxoRJ5r1m2zZAbHtwVuySoeuWPWyxi2cKaG7uKXzbWSWVAx oBcdEFz5H4s69tcQ5JkjED9RBd7mMfAGETWYu1IFSk1yIV+cs/Ub33wJ7PPA3cXkvO4y PNkZX4xKd5FpScpuocBZecrx3FlKo+CHEPp/GSRSFAO5Tiwutqbwoe5x0bkquxdXt+Xb dR1TKTK8PGQHwMib1QBhGLJDvX5GEBndnPMGl5H66cS/GYPvdyY5qHg/VipiZd1fcXdp ZRxSCJ9bc+oo5IhE9yX9JWCLApsifvtrsJ/EQ2vqLUEzUnGsZ1SYPoA+2ULK1/k53DH/ c96w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fmleqSyA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f31-20020a63555f000000b005bddca8236dsi6766996pgm.699.2023.12.11.14.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:08:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fmleqSyA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 165498053663; Mon, 11 Dec 2023 14:08:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345541AbjLKWIe (ORCPT + 99 others); Mon, 11 Dec 2023 17:08:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345529AbjLKWId (ORCPT ); Mon, 11 Dec 2023 17:08:33 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE13CA6 for ; Mon, 11 Dec 2023 14:08:39 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c3963f9fcso5825e9.1 for ; Mon, 11 Dec 2023 14:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702332518; x=1702937318; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qlYlHCXGFU5KZ74rv5ll10Sv9Er2/TqtV7SmAS1Ie5U=; b=fmleqSyAoJZqKuOxvTFhOA72jJdQb1AodQZBs7Isl+mYKM2JAp+t/WS7sNwTgrC7f6 PvzJ84i3Ehl2rZtYUIquiqD0yt0BnyokdTCq613WvfAhYZ/I+KeJYsfFztW+o0pFISym MTnwHdfk3l+mTsASlFujN0Ga3bMl9gn265etgTGWuZskylOJB96pvBDI6W8EfzKm4evc Rq4+s8ZApP0TLCE52ZZekDQfh4S1NmeKTTMOAuC6Aiw9TohCoI5LohgNJs9DXtqm8G5a UPpQrUXd1PyrNOv+ZYj+hCqrsc02r1yLkQye6yKzNgYZBm52NthWo2HPsxu4G+3wm5v7 2FCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702332518; x=1702937318; 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=qlYlHCXGFU5KZ74rv5ll10Sv9Er2/TqtV7SmAS1Ie5U=; b=pporcD/PKuqlEZz6vD/ol7qj2D/HvGzySpy9UbA7DeQHBkArvxjvxkjzPkbc3j7oZ0 8/Q3g1T6h5Zbr/hES22YMltgQoheO1DAacAatIdojmodzm54AZh71KQVA/TaZzBUDdRW 8crF+pXDCp8ONF8oFuEEWhJopncl17awAgNYwHidxC9kxowEfUu8vATEDHcUGbQfMiQP qypW1FY2cA+4kvjwgEMyC6cOdubokDPGw5d0+3q7EsSrdXfi58QZfe9hNkiqOENU7jfs C9DpVB5cg6OtPGXNUGuIU0elSAFVPdjG3I4mmj7dpoE0kTp8ArJRfyqirFU7sY9rWvLp 6Jlw== X-Gm-Message-State: AOJu0YySVxpnr2IALYyTcvhcsTh6OgY2x0b0+VHA921gOhEKVQd9jwBP hZ7ozfntLYMmWOH/GWC+6OwOivUsiOL9n3N5dln6yw== X-Received: by 2002:a05:600c:2941:b0:405:320a:44f9 with SMTP id n1-20020a05600c294100b00405320a44f9mr243192wmd.5.1702332518004; Mon, 11 Dec 2023 14:08:38 -0800 (PST) MIME-Version: 1.0 References: <20231204221932.1465004-1-rmoar@google.com> In-Reply-To: From: Rae Moar Date: Mon, 11 Dec 2023 17:08:26 -0500 Message-ID: Subject: Re: [PATCH v3 1/6] kunit: move KUNIT_TABLE out of INIT_DATA To: David Gow Cc: shuah@kernel.org, dlatypov@google.com, brendan.higgins@linux.dev, sadiyakazi@google.com, keescook@chromium.org, arnd@arndb.de, linux-kselftest@vger.kernel.org, linux-arch@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 14:08:47 -0800 (PST) On Sat, Dec 9, 2023 at 2:48=E2=80=AFAM David Gow wrot= e: > > On Tue, 5 Dec 2023 at 06:19, Rae Moar wrote: > > > > Alter the linker section of KUNIT_TABLE to move it out of INIT_DATA and > > into DATA_DATA. > > > > Data for KUnit tests does not need to be in the init section. > > > > In order to run tests again after boot the KUnit data cannot be labeled= as > > init data as the kernel could write over it. > > > > Add a KUNIT_INIT_TABLE in the next patch for KUnit tests that test init > > data/functions. > > > > Signed-off-by: Rae Moar > > --- > > I think this actually fixes a potential bug, as we loop through the > list of suites after init has ended in the debugfs logic. > > So maybe this is: > Fixes: 90a025a859a3 ("vmlinux.lds.h: add linker section for KUnit test su= ites") > > Regardless, I'd love to get this in, even if we don't manage to get > the rest of the series in soon. > > Reviewed-by: David Gow > > Cheers, > -- David Hello! Thanks for reviewing! I will be adding this fixes tag. Should I make this a separate patch for the next version? Thanks! -Rae > > > include/asm-generic/vmlinux.lds.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vm= linux.lds.h > > index bae0fe4d499b..1107905d37fc 100644 > > --- a/include/asm-generic/vmlinux.lds.h > > +++ b/include/asm-generic/vmlinux.lds.h > > @@ -370,7 +370,8 @@ > > BRANCH_PROFILE() = \ > > TRACE_PRINTKS() = \ > > BPF_RAW_TP() = \ > > - TRACEPOINT_STR() > > + TRACEPOINT_STR() = \ > > + KUNIT_TABLE() > > > > /* > > * Data section helpers > > @@ -699,8 +700,7 @@ > > THERMAL_TABLE(governor) = \ > > EARLYCON_TABLE() = \ > > LSM_TABLE() = \ > > - EARLY_LSM_TABLE() = \ > > - KUNIT_TABLE() > > + EARLY_LSM_TABLE() > > > > #define INIT_TEXT = \ > > *(.init.text .init.text.*) = \ > > > > base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 > > -- > > 2.43.0.rc2.451.g8631bc7472-goog > >