Re: [PATCH v2 2/3] bootconfig: Support embedding a bootconfig file in kernel

From: Steven Rostedt
Date: Sat Mar 26 2022 - 09:54:55 EST


On Sat, 26 Mar 2022 21:40:40 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> 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