tracing/boot: Fix a hist trigger dependency for boot time tracing
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 10 Aug 2021 02:07:14 +0000 (11:07 +0900)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:32:58 +0000 (12:32 +0100)
commitf0dfe08ce8fcb9335c7c2dab7e794422c9eedf16
tree5e5feefb496cecad3eccc83b9f549889b45014d6
parentfbc832c30a675fb7f58e88dd905fa65ee8c08780
tracing/boot: Fix a hist trigger dependency for boot time tracing

[ Upstream commit 6fe7c745f2acb73e4cc961d7f91125eef5a8861f ]

Fixes a build error when CONFIG_HIST_TRIGGERS=n with boot-time
tracing. Since the trigger_process_regex() is defined only
when CONFIG_HIST_TRIGGERS=y, if it is disabled, the 'actions'
event option also must be disabled.

Link: https://lkml.kernel.org/r/162856123376.203126.582144262622247352.stgit@devnote2
Fixes: 81a59555ff15 ("tracing/boot: Add per-event settings")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace_boot.c