summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-06-02 13:20:25 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-12-04 07:14:30 -0500
commita773d419275bf54854ca6cfda8f2594ed2790faa (patch)
tree49d4dbdcc1a3ccc4263dd61a297a66dbad0b69e4 /kernel
parentc4bfd39d7fa5203d4b387c283d360e9a108e85b3 (diff)
downloadlinux-a773d419275bf54854ca6cfda8f2594ed2790faa.tar.bz2
tracing: Pass export pointer as argument to ->write()
By passing an export descriptor to the write function, users don't need to keep a global static pointer and can rely on container_of() to fetch their own structure. Link: http://lkml.kernel.org/r/20170602102025.5140-1-felipe.balbi@linux.intel.com Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Reviewed-by: Chunyan Zhang <zhang.chunyan@linaro.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 9f3f043ba3b7..59518b8126d0 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2415,7 +2415,7 @@ trace_process_export(struct trace_export *export,
entry = ring_buffer_event_data(event);
size = ring_buffer_event_length(event);
- export->write(entry, size);
+ export->write(export, entry, size);
}
static DEFINE_MUTEX(ftrace_export_lock);