Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3750528pxb; Sun, 27 Mar 2022 04:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj77UV72h9zpCY3PiWrvQX708/zPFRKRjNRoDo/KGcz361mAwYD70gkvgC0YJhaniV/xFr X-Received: by 2002:a17:902:f54c:b0:154:8227:a387 with SMTP id h12-20020a170902f54c00b001548227a387mr20858218plf.42.1648381207439; Sun, 27 Mar 2022 04:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648381207; cv=none; d=google.com; s=arc-20160816; b=QKo95hPRuSuC3N0iKxpxbKer48csKWM5h6sx7AqwhXDMZqcEtl/cT3UY7nGQK9fEiR HgFymQd9gp7wCyYH9deJI/3Vkk7IVn77d6+fgF5z/apxqwrQKCf7p6xKcp8UgEmOXXHP BXd8wiKJ5qsK9xtbg0uC2DTNomY9PqViWjKvxlhmloX8rwRPCSvCZHgRDBnhBogn2dmv 4TPEc6i+6AncGiuHfaRY5GWYlRXblFcpqjGLOq8Nau2FU3AnsObwxq4cBIDs7aaabFfX ZNTPadjPIANkahXy2A2jTx5UaL4XaGlfxa+UZH1Ro5SbRZokLBw8xJRHKXy+x0Qe+vez 0HjA== 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; bh=/UPFWf2lDlesypXTlIiNaGD+XkdG3Ov4QYbO6f9sVcI=; b=MSin+ZLU5lZ3/5L9dOcgaoY8JzqyLgqU5XHu/TdD785PYPlDJ+aRJwyFmkMvP7YGrQ VzGQsReMUtZxCqrmTxKTEOCD4vygKXIlsDEc8FJ0g8ca5wRLngwpDGmHKZFIn406hd6B oa9NV8eSl8cj2e4Ic2TGLip8+rESaO8rwaJziyaROSNHdi1bHL13cRBVo3+moX4NXSjD sSJ5WKHrsDy/3xTR/184maTG0rbvPqY3pFIjsP7Ca2cQ2trVmZtHuqsCWZ+Zq4NWrSYl 2ThqpRX2MM8bR2u/3QPbTrk5t76pvM37nPBDsVQLwzjg5b6ESp32RrkOEkLkwmhHz5AA 9tbw== 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 b7-20020a170902bd4700b00153b2d16540si8089204plx.328.2022.03.27.04.39.49; Sun, 27 Mar 2022 04:40:07 -0700 (PDT) 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 S233097AbiCZN43 (ORCPT + 99 others); Sat, 26 Mar 2022 09:56:29 -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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 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