diff options
author | Chunyan Zhang <zhang.chunyan@linaro.org> | 2016-11-21 08:57:18 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-11-22 23:40:00 +0100 |
commit | 478409dd683db76cbcfe7bf8332a37f01deb0a2d (patch) | |
tree | aceb894271a28bea11df6930c6ca7227ea5c6c03 /drivers | |
parent | selftests: ftrace: Add a testcase for types of kprobe event (diff) | |
download | linux-478409dd683db76cbcfe7bf8332a37f01deb0a2d.tar.xz linux-478409dd683db76cbcfe7bf8332a37f01deb0a2d.zip |
tracing: Add hook to function tracing for other subsystems to use
Currently Function traces can be only exported to the ring buffer. This
adds a trace_export concept which can process traces and export
them to a registered destination as an addition to the current
one that outputs to Ftrace - i.e. ring buffer.
In this way, if we want function traces to be sent to other destinations
rather than only to the ring buffer, we just need to register a new
trace_export and implement its own .write() function for writing traces to
storage.
With this patch, only function tracing (trace type is TRACE_FN)
is supported.
Link: http://lkml.kernel.org/r/1479715043-6534-2-git-send-email-zhang.chunyan@linaro.org
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions