stm: Mark the functions of writing STM with notrace
authorChunyan Zhang <zhang.chunyan@linaro.org>
Mon, 21 Nov 2016 07:57:23 +0000 (15:57 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 22:48:04 +0000 (17:48 -0500)
commit9dfed80d87ca2c365cd1004a91ef4ed716c8e44e
tree108f7ab74509b2245f4bcd02bdf21cc6b1444c90
parent9b5e3ff6b9baa77548c6cb832780162055733c67
stm: Mark the functions of writing STM 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-7-git-send-email-zhang.chunyan@linaro.org
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
drivers/hwtracing/stm/core.c
include/linux/stm.h