tracing: Move synthetic events to a separate file
authorTom Zanussi <zanussi@kernel.org>
Thu, 28 May 2020 19:32:37 +0000 (14:32 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 1 Jun 2020 12:23:22 +0000 (08:23 -0400)
commit726721a51838e3983023f906580722fc83f804ee
tree72d3657c13864b8834ef894ced3a9f86e3824022
parent5bbf959de408640a99a378d05107d510b866b3ca
tracing: Move synthetic events to a separate file

With the addition of the in-kernel synthetic event API, synthetic
events are no longer specifically tied to the histogram triggers.

The synthetic event code is also making trace_event_hist.c very
bloated, so for those reasons, move it to a separate file,
trace_events_synth.c, along with a new trace_synth.h header file.

Because synthetic events are now independent from hist triggers, add a
new CONFIG_SYNTH_EVENTS config option, and have CONFIG_HIST_TRIGGERS
select it, and have CONFIG_SYNTH_EVENT_GEN_TEST depend on it.

Link: http://lkml.kernel.org/r/4d1fa1f85ed5982706ac44844ac92451dcb04715.1590693308.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/Kconfig
kernel/trace/Makefile
kernel/trace/trace_events_hist.c
kernel/trace/trace_events_synth.c [new file with mode: 0644]
kernel/trace/trace_synth.h [new file with mode: 0644]