Re: [PATCH v4 0/6] bootconfig: Add mixed subkeys and value under the same key

From: Masami Hiramatsu
Date: Wed Jun 16 2021 - 21:27:12 EST


On Wed, 16 Jun 2021 15:17:01 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Fri, 11 Jun 2021 08:56:35 +0900
> Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
>
> > kernel {
> > trace_options = sym-addr
> > trace_events = "initcall:*"
> > # tp_printk
> > trace_buf_size = 1M
> > ftrace = function
> > ftrace_filter = "vfs*"
> > }
>
> I'm creating a ktest test for boot up on bootconfigs and writing a verifier
> for each of the configs you sent me. On the first config I looked at
> "boottrace.bconf", I found a bug.
>
> The above should be:
>
> trace_event = "initcall:*"
>
> and not "trace_events" as "trace_events" is not a boot option ;-)

Oops, thanks!

BTW, I'm thinking to introduce more basic tests for kernel cmdlie.
For example, checking the kernel.* and init.* are merged correctly
in the /proc/cmdline.

But yes, this needs to use ktest because it sets the bootconfig
to initrd and reboots with it for testing.

Thank you,

--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>