tracing: Separate hist state updates from hist registration
authorTom Zanussi <zanussi@kernel.org>
Fri, 4 Feb 2022 22:12:07 +0000 (16:12 -0600)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 26 Apr 2022 21:58:50 +0000 (17:58 -0400)
commita7e6b7dcfb19988ad2968a1fafd29b600abbf133
treeda663d0a35751a5f177431422a01dccb02ce7e6b
parente1f187d09e11f50a50cbb02ae277d4e8bdfc7db8
tracing: Separate hist state updates from hist registration

hist_register_trigger() handles both new hist registration as well as
existing hist registration through event_command.reg().

Adding a new function, existing_hist_update_only(), that checks and
updates existing histograms and exits after doing so allows the
confusing logic in event_hist_trigger_parse() to be simplified.

Link: https://lkml.kernel.org/r/211b2cd3e3d7e00f4f8ad45ef8b33063da6a7e05.1644010576.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c