Commit dea5d0e1 authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Steven Rostedt

coresight: Mark stm_generic_packet() with notrace

If CONFIG_STM_SOURCE_FTRACE is selected, Function trace data can be
writen to sink via STM, all functions that related to writing data
packets to STM should be marked 'notrace' to avoid being traced by
Ftrace, otherwise the program would stall into an endless loop.

Link: http://lkml.kernel.org/r/1479715043-6534-4-git-send-email-zhang.chunyan@linaro.orgSigned-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 262e1f6e
...@@ -406,7 +406,7 @@ static long stm_generic_set_options(struct stm_data *stm_data, ...@@ -406,7 +406,7 @@ static long stm_generic_set_options(struct stm_data *stm_data,
return 0; return 0;
} }
static ssize_t stm_generic_packet(struct stm_data *stm_data, static ssize_t notrace stm_generic_packet(struct stm_data *stm_data,
unsigned int master, unsigned int master,
unsigned int channel, unsigned int channel,
unsigned int packet, unsigned int packet,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment