tracing: Pass export pointer as argument to ->write()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 2 Jun 2017 10:20:25 +0000 (13:20 +0300)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 4 Dec 2017 12:14:30 +0000 (07:14 -0500)
commita773d419275bf54854ca6cfda8f2594ed2790faa
tree49d4dbdcc1a3ccc4263dd61a297a66dbad0b69e4
parentc4bfd39d7fa5203d4b387c283d360e9a108e85b3
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>
drivers/hwtracing/stm/ftrace.c
include/linux/trace.h
kernel/trace/trace.c