Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp176105pxp; Wed, 9 Mar 2022 00:05:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE111RvzZiIKoKYdEbZJrxheboTC2d6CeNQ31cToVJLuZVjVzyVv3kbvKNUgrP/7czq7/w X-Received: by 2002:a17:907:96a6:b0:6db:1d4a:a8ed with SMTP id hd38-20020a17090796a600b006db1d4aa8edmr12337459ejc.317.1646813104562; Wed, 09 Mar 2022 00:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646813104; cv=none; d=google.com; s=arc-20160816; b=0GklKGIrWdXOf7tcw/4tSIWeJXSAsCD8AWwZfNjjzZXJ0Ed+VKJ9iGScqK9xXI78J0 izT32sJcH/6FN8gNPLuFF+3blBqDdYIOfT+s6gqHxzXp5p+IozSWrnVv4qJ1cWBrbllg s8vkvQh6bLbVySgCZzVXo6QT+6zS+99GD7k1nNiePK8QzEh67MnvGRmsa3ajQ0YN0G8m KYYeneNj1+R+qL2yPwjSsyGrjGV1B0IpSStf/BoyJsRDp9dbulxKZVHHHRsdfsJRZ+Iy sCk6WziQ2Tmp0vz/q62uH13XhD4IyNg3Njc1+B1hSX35vKK3bZEyox8/1DEMubjWX5cO DVYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Zs/HnwZkcAjJ7ABcRK0nCVppv7MEBZOg0+qJPwhPzIA=; b=hcJxLh+NYazTLEYg2R3QLagOwfC+/sV/2ZzuWhx981OaI26BOYng2G9QcjT/fhSEBy fpPp8rPe8mNLFbeIgPJ4W+m7sIw3snPBi1tt6HaSqcpNPuDFLKUAMkSt6GCGqXCMmkSd qUyGpogGzgNclQ5+1FLRP7px0BFCf2wzqtKd30tHDMV1il4C40Y8toHIxmTCfHWQ1utB P3Vwm4FC6R/Ebt6lmfG6qQIcUqSbtYtSQmwifvC5moFB12tfpltL4WJePEfDpiJv7q3E 9+y99XHlrtG14/FQTTzdJ8R3VuiOKkkBaCppUIh0DWrL25y483DhOp3DZfNZCeNWsMxv Dj4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cDTY3Xff; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a50fe8b000000b00412b2ce732esi745653edt.443.2022.03.09.00.04.39; Wed, 09 Mar 2022 00:05:04 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cDTY3Xff; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbiCIICf (ORCPT + 99 others); Wed, 9 Mar 2022 03:02:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiCIIC1 (ORCPT ); Wed, 9 Mar 2022 03:02:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF16169200 for ; Wed, 9 Mar 2022 00:01:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B87A60F26 for ; Wed, 9 Mar 2022 08:01:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C027C340EE; Wed, 9 Mar 2022 08:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646812887; bh=v3kCSOlPYnjQWLgSvNmxaNEN5wv4j9rO5qcLBkRkMHo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cDTY3XffBbD3A8QDjhNkD5yGc9ypqwpzzem4gW/Zd+oxcSuK8A5w/OrorKIxvhTLS JvsZslWk7G6hy+OI/3rC9P7I+ln0NweMjX2ClnC+sDiMnkqjoT5dUVlcrr4MEXT5+d COJ861hGPcAqeMT6xcirRBlbGwSYspIQrRBm/0L0QzISG4dEFE5gv5yZ7o2zx+QehK I9O6JDgw7f+sFTTdQmwppzb0zJxrE5slb25ewrK+PNgVbFEhn7xz04lun+WI+pVAE2 uqtH70VBH/YqgZNr5tK/p+5lIORy1FlZRguXWPdekBuMrSHA8JMbZa5phEm6Rb7AqC usSm+biJJvGTw== Date: Wed, 9 Mar 2022 17:01:24 +0900 From: Masami Hiramatsu To: Padmanabha Srinivasaiah Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org Subject: Re: tracing : bootconfig : Early boot config for non intrd systems Message-Id: <20220309170124.82dcfadbcda6f8ab6ed51797@kernel.org> In-Reply-To: <20220308174829.GA2471@pswork> References: <20220307184011.GA2570@pswork> <20220308163600.3109f19854c7b051924f262b@kernel.org> <20220308174829.GA2471@pswork> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 Tue, 8 Mar 2022 18:48:29 +0100 Padmanabha Srinivasaiah wrote: > Hello Masami Hiramatsu, > > On Tue, Mar 08, 2022 at 04:36:00PM +0900, Masami Hiramatsu wrote: > > Hello Padmanabha, > > > > On Mon, 7 Mar 2022 19:40:11 +0100 > > Padmanabha Srinivasaiah wrote: > > > > > Hello Masami Hiramatsu, > > > > > > Thanks for detailed explanation on boot time tracing using early boot configuration file. > > > https://linuxfoundation.org/wp-content/uploads/boottrace-LF-live-2021-update.pdf > > > > > > Also for https://lwn.net/Articles/806002/. > > > > > > Latter link also states we can embed boot config into the kernel image for non intrd based system. > > > > Ah, that was an original plan, but since no one interested in, I didn't implement it. > > So we still need the initrd for bootconfig. > > > Ok. > > > > > > I tried searching mailing lists not able to find pointer for same. > > > > > > A hint/pointer on how-to will be very helpful. > > > > BTW, what is your problem, could you share your use-case? > > > > I have hetrogenous system which donot use intrd. > > The use-case is to capture __system wide__ event based tracing for > boot-up sequence, which also covers early stage of default init programs > used. > > As buffer size is limited, will have hand-picked events set configured. Hm, so I guess you will boot linux from your custom bootloader (or binary loader on sub processor?). Can you even try to add a dummy initrd? or are you OK to rebuild kernel for embedding the bootconfig data? If both don't work, the solution will be architecture or bootloader specific. Thank you, -- Masami Hiramatsu