stm class: ftrace: Add ftrace-export-over-stm driver
authorChunyan Zhang <zhang.chunyan@linaro.org>
Mon, 21 Nov 2016 07:57:19 +0000 (15:57 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 22:47:48 +0000 (17:47 -0500)
commit262e1f6e39143c2a0f559e2fb4a835069a7693a9
tree933c82966d0aa045689eb1f9e0005b0fc6a9ac7c
parent478409dd683db76cbcfe7bf8332a37f01deb0a2d
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>
drivers/hwtracing/stm/Kconfig
drivers/hwtracing/stm/Makefile
drivers/hwtracing/stm/ftrace.c [new file with mode: 0644]