tracing: Add trace_export support for event trace
authorTingwei Zhang <tingwei@codeaurora.org>
Mon, 5 Oct 2020 07:13:14 +0000 (10:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2020 10:43:53 +0000 (12:43 +0200)
commit8ab7a2b7055c88c3da5e4684dfa015c6a8987c28
tree79d0342369a2440350a1f4caa470475f84eee12e
parent8438f5211479e4b8433f641634362264bc3bbd9e
tracing: Add trace_export support for event trace

Only function traces can be exported to other destinations currently.
This patch exports event trace as well. Move trace export related
function to the beginning of file so other trace can call
trace_process_export() to export.

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/r/20201005071319.78508-4-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/trace.h
kernel/trace/trace.c