From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCEEDC433E0 for ; Wed, 8 Jul 2020 04:32:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89F3F20720 for ; Wed, 8 Jul 2020 04:32:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qKrWixYE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89F3F20720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zf2qEHdccntS8Nu5ceUhlyJl6NXKbFUoBu3SYKmgd54=; b=qKrWixYEIJcUZxGxY5VjKiR7d aFi30V2UJcz8kzoa2ZqIxqFOXqcaJ96n0KSGVSArxHGqg45j4bjO3vWSz8Gbp2huEoW7qLYohPNhd /GtCqNePyIipQT2BHezRYSMlI9ovy9/D5FFgYd+Jt6HqSW5sP/qwJXVNCRvvPjNOFTKky/KI3xU1n n0wWXnWxprt5Iv0UQsSItMim4kt+Fv2OMSZZ9Jg2FYNJzajKSOtAeYUNd5ybQue0Zr5npOFq+xtcV AcHHc0M7Of3jRPpVj0kR34Yvc5XTOHETRsB7U1wWtGJi89i+7cnfDLf/nWRdUsNA/rG/uWTUHBQh9 zkc2wh9TA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jt1k7-0001hx-Uw; Wed, 08 Jul 2020 04:31:35 +0000 Received: from mail-pf1-f194.google.com ([209.85.210.194]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jt1k5-0001gx-Hr; Wed, 08 Jul 2020 04:31:34 +0000 Received: by mail-pf1-f194.google.com with SMTP id u185so17362077pfu.1; Tue, 07 Jul 2020 21:31:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=w74eNERLG2pgyjUdSRcYW9SUoyc7gG8Z+LPaMqm+zH4=; b=CHZPODYqpy0Cm7A9WCA4NrAEaeSa6bdctdWWyFRgcwC9yV8xj2HpVG2f5BuE4pWylA JbQm+UiLHhxxvr4kTMMiIBOq6/qRcCjRh1KWPHDl4li1N+qw2VLh7440YuHEH4cL5vkR KSDumcPShn4vqEwJm/P5MgBF+Ce7qWK8xKIicHFtpnGDjXebt7YukuS9BIAq5a5bUzV7 Z+8zR5/E1JJ3Reso4aT3XoWbFaf5UpOOWtcFc9XxVZx39V0Fy747TIbD9uw7esMUoryK plNGGmusf7GGQuF4ed3cFF79WoHxP3Kn66u5OVoAYgnCvlhi05RVNLi5oeS10go7CMd9 i6PA== X-Gm-Message-State: AOAM5336a1A31cItfrBi5M/LD36bNtSzrhPjNtAjaJDabSDtOoj5meJs SYyP5mWngJTEu1+FMi6ud+E= X-Google-Smtp-Source: ABdhPJxHZU8n57bHyUA87/h7IOAVFo14RjremkjbHa0piNVeEl4DjqKtxGu5JTtc4Tf00fVU/dHDDQ== X-Received: by 2002:a05:6a00:2c1:: with SMTP id b1mr40074651pft.159.1594182690346; Tue, 07 Jul 2020 21:31:30 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id w9sm3745302pja.39.2020.07.07.21.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 21:31:29 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id A30C1400DB; Wed, 8 Jul 2020 04:31:28 +0000 (UTC) Date: Wed, 8 Jul 2020 04:31:28 +0000 From: Luis Chamberlain To: Brendan Higgins Subject: Re: [PATCH v5 01/12] vmlinux.lds.h: add linker section for KUnit test suites Message-ID: <20200708043128.GY4332@42.do-not-panic.com> References: <20200626210917.358969-1-brendanhiggins@google.com> <20200626210917.358969-2-brendanhiggins@google.com> <202006261416.F4EAAE47E3@keescook> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200708_003133_623164_AB717754 X-CRM114-Status: GOOD ( 23.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:DOCUMENTATION" , catalin.marinas@arm.com, jcmvbkbc@gmail.com, will@kernel.org, paulus@samba.org, "open list:KERNEL SELFTEST FRAMEWORK" , Frank Rowand , Anton Ivanov , linux-arch@vger.kernel.org, Richard Weinberger , rppt@linux.ibm.com, Benjamin Herrenschmidt , Iurii Zaikin , linux-xtensa@linux-xtensa.org, Kees Cook , Arnd Bergmann , Jeff Dike , linux-um , linuxppc-dev@lists.ozlabs.org, David Gow , Shuah Khan , Linux ARM , KUnit Development , chris@zankel.net, monstr@monstr.eu, Stephen Boyd , Greg KH , Linux Kernel Mailing List , Logan Gunthorpe , Michael Ellerman , Andrew Morton , Alan Maguire Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 26, 2020 at 02:22:11PM -0700, Brendan Higgins wrote: > On Fri, Jun 26, 2020 at 2:20 PM Kees Cook wrote: > > > > On Fri, Jun 26, 2020 at 02:09:06PM -0700, Brendan Higgins wrote: > > > Add a linker section where KUnit can put references to its test suites. > > > This patch is the first step in transitioning to dispatching all KUnit > > > tests from a centralized executor rather than having each as its own > > > separate late_initcall. > > > > > > Co-developed-by: Iurii Zaikin > > > Signed-off-by: Iurii Zaikin > > > Signed-off-by: Brendan Higgins > > > Reviewed-by: Stephen Boyd > > > --- > > > include/asm-generic/vmlinux.lds.h | 8 ++++++++ > > > 1 file changed, 8 insertions(+) > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h > > > index db600ef218d7d..4f9b036fc9616 100644 > > > --- a/include/asm-generic/vmlinux.lds.h > > > +++ b/include/asm-generic/vmlinux.lds.h > > > @@ -881,6 +881,13 @@ > > > KEEP(*(.con_initcall.init)) \ > > > __con_initcall_end = .; > > > > > > +/* Alignment must be consistent with (kunit_suite *) in include/kunit/test.h */ > > > > Nit on naming: > > > > > +#define KUNIT_TEST_SUITES \ > > > > I would call this KUNIT_TABLE to maintain the same names as other things > > of this nature. > > > > > + . = ALIGN(8); \ > > > + __kunit_suites_start = .; \ > > > + KEEP(*(.kunit_test_suites)) \ > > > + __kunit_suites_end = .; > > > + > > > #ifdef CONFIG_BLK_DEV_INITRD > > > #define INIT_RAM_FS \ > > > . = ALIGN(4); \ > > > @@ -1056,6 +1063,7 @@ > > > INIT_CALLS \ > > > CON_INITCALL \ > > > INIT_RAM_FS \ > > > + KUNIT_TEST_SUITES \ > > > } > > > > Nack: this must be in INIT_DATA, not in INIT_DATA_SECTION. Not all > > architectures use the INIT_DATA_SECTION macro (e.g. arm64), but everything > > uses INIT_DATA. > > Oh, maybe that would eliminate the need for the other linkerscript > patches? That would be nice. Curious, did changing it as Kees suggest fix it for m68k? Luis _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel