summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTingwei Zhang <tingwei@codeaurora.org>2020-10-05 10:13:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-05 13:43:53 +0300
commit8ab7a2b7055c88c3da5e4684dfa015c6a8987c28 (patch)
tree79d0342369a2440350a1f4caa470475f84eee12e /include
parent8438f5211479e4b8433f641634362264bc3bbd9e (diff)
downloadlinux-8ab7a2b7055c88c3da5e4684dfa015c6a8987c28.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/trace.h b/include/linux/trace.h
index c115a5d2269f..86033d214972 100644
--- a/include/linux/trace.h
+++ b/include/linux/trace.h
@@ -5,6 +5,7 @@
#ifdef CONFIG_TRACING
#define TRACE_EXPORT_FUNCTION BIT(0)
+#define TRACE_EXPORT_EVENT BIT(1)
/*
* The trace export - an export of Ftrace output. The trace_export