Skip to content

Commit

Permalink
coresight: Mark stm_generic_packet() with notrace
Browse files Browse the repository at this point in the history
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/[email protected]

Signed-off-by: Chunyan Zhang <[email protected]>
Acked-by: Alexander Shishkin <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Chunyan Zhang authored and rostedt committed Nov 22, 2016
1 parent 262e1f6 commit dea5d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwtracing/coresight/coresight-stm.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static long stm_generic_set_options(struct stm_data *stm_data,
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 channel,
unsigned int packet,
Expand Down

0 comments on commit dea5d0e

Please sign in to comment.