]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/boot: Fix to loop on only subkeys
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 8 Sep 2021 19:38:03 +0000 (04:38 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 Sep 2021 19:44:32 +0000 (15:44 -0400)
commitb819c14fd8368b19c2a6b2518ed731b9a2e45a00
treeb4eff49de9cf9fb1e983155c418942154875fcbb
parent430570927b3e1ed49017cb81cfb76db0c7503fbd
tracing/boot: Fix to loop on only subkeys

Since the commit 022cc3465c1d ("bootconfig: Support mixing
a value and subkeys under a key") allows to co-exist a value
node and key nodes under a node, xbc_node_for_each_child()
is not only returning key node but also a value node.
In the boot-time tracing using xbc_node_for_each_child() to
iterate the events, groups and instances, but those must be
key nodes. Thus it must use xbc_node_for_each_subkey().

Link: https://lkml.kernel.org/r/163112988361.74896.2267026262061819145.stgit@devnote2
Fixes: 022cc3465c1d ("bootconfig: Support mixing a value and subkeys under a key")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_boot.c