summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/stm/Kconfig
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.chunyan@linaro.org>2016-11-21 08:57:19 +0100
committerSteven Rostedt <rostedt@goodmis.org>2016-11-22 23:47:48 +0100
commit262e1f6e39143c2a0f559e2fb4a835069a7693a9 (patch)
tree933c82966d0aa045689eb1f9e0005b0fc6a9ac7c /drivers/hwtracing/stm/Kconfig
parenttracing: Add hook to function tracing for other subsystems to use (diff)
downloadlinux-262e1f6e39143c2a0f559e2fb4a835069a7693a9.tar.xz
linux-262e1f6e39143c2a0f559e2fb4a835069a7693a9.zip
stm class: ftrace: Add ftrace-export-over-stm driver
This patch adds a driver that models itself as an stm_source called stm_ftrace. Once the stm device and stm_ftrace have been linked via sysfs, the driver registers itself as a trace_export and everything passed to the interface from Ftrace subsystem will end up in the STM trace engine. Link: http://lkml.kernel.org/r/1479715043-6534-3-git-send-email-zhang.chunyan@linaro.org Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org> Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/hwtracing/stm/Kconfig')
-rw-r--r--drivers/hwtracing/stm/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/hwtracing/stm/Kconfig b/drivers/hwtracing/stm/Kconfig
index 847a39b35307..723e2d90083d 100644
--- a/drivers/hwtracing/stm/Kconfig
+++ b/drivers/hwtracing/stm/Kconfig
@@ -39,4 +39,15 @@ config STM_SOURCE_HEARTBEAT
If you want to send heartbeat messages over STM devices,
say Y.
+config STM_SOURCE_FTRACE
+ tristate "Copy the output from kernel Ftrace to STM engine"
+ depends on FUNCTION_TRACER
+ help
+ This option can be used to copy the output from kernel Ftrace
+ to STM engine. Enabling this option will introduce a slight
+ timing effect.
+
+ If you want to send kernel Ftrace messages over STM devices,
+ say Y.
+
endif