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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42E0FC433F5 for ; Sat, 26 Mar 2022 13:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbiCZN42 (ORCPT ); Sat, 26 Mar 2022 09:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233098AbiCZN4M (ORCPT ); Sat, 26 Mar 2022 09:56:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4800E70; Sat, 26 Mar 2022 06:54:34 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 8593CB80978; Sat, 26 Mar 2022 13:54:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5756CC340EE; Sat, 26 Mar 2022 13:54:31 +0000 (UTC) Date: Sat, 26 Mar 2022 09:54:20 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Masahiro Yamada , Padmanabha Srinivasaiah , LKML , Jonathan Corbet , "open list:DOCUMENTATION" , Randy Dunlap Subject: Re: [PATCH v2 2/3] bootconfig: Support embedding a bootconfig file in kernel Message-ID: <20220326095420.2060aae3@rorschach.local.home> In-Reply-To: <20220326214040.07d4c8b99d7b83229509340d@kernel.org> References: <164724890153.731226.1478494969800777757.stgit@devnote2> <164724892075.731226.14103557516176115189.stgit@devnote2> <20220316191649.GA11547@pswork> <20220318101445.fdb151efe58c6c3a1c572500@kernel.org> <20220326214040.07d4c8b99d7b83229509340d@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Sat, 26 Mar 2022 21:40:40 +0900 Masami Hiramatsu wrote: > > BTW, it is already possible to embed kernel parameters > > into the kernel. > > Is this another implementation of CONFIG_CMDLINE? If one changes CONFIG_CMDLINE, does it require a rebuild of vmlinux? > > Yes, it is the bootconfig version of the CONFIG_CMDLINE. > Since some boot-time tracing feature depends on the bootconfig (those can > not be set via kernel cmdline), we need this feature for those features > on non-initrd boot system. Yes, the kernel command line has a fixed size, and with tracing options, we can easily go over it. bootconfig is a way to have an unlimited size and also be able to have a better and more reasonable formatting to express options for things like tracing. -- Steve