|
@@ -42,9 +42,11 @@ static struct stm_ftrace {
|
|
* @len: length of the data packet
|
|
* @len: length of the data packet
|
|
*/
|
|
*/
|
|
static void notrace
|
|
static void notrace
|
|
-stm_ftrace_write(const void *buf, unsigned int len)
|
|
|
|
|
|
+stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int len)
|
|
{
|
|
{
|
|
- stm_source_write(&stm_ftrace.data, STM_FTRACE_CHAN, buf, len);
|
|
|
|
|
|
+ struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace);
|
|
|
|
+
|
|
|
|
+ stm_source_write(&stm->data, STM_FTRACE_CHAN, buf, len);
|
|
}
|
|
}
|
|
|
|
|
|
static int stm_ftrace_link(struct stm_source_data *data)
|
|
static int stm_ftrace_link(struct stm_source_data *data)
|