Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528544

[for-next][PATCH 15/17] stm dummy: Mark dummy_stm_packet() with notrace

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject [for-next][PATCH 15/17] stm dummy: Mark dummy_stm_packet() with notrace
Date 2016-11-23 17:10 +0100
Message-ID <sGIhr-71P-19@gated-at.bofh.it> (permalink)
References <sGHOp-6Ev-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Chunyan Zhang <zhang.chunyan@linaro.org>

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-6-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/dummy_stm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/stm/dummy_stm.c b/drivers/hwtracing/stm/dummy_stm.c
index a86612d989f9..c5f94ca31c4d 100644
--- a/drivers/hwtracing/stm/dummy_stm.c
+++ b/drivers/hwtracing/stm/dummy_stm.c
@@ -21,7 +21,7 @@
 #include <linux/slab.h>
 #include <linux/stm.h>
 
-static ssize_t
+static ssize_t notrace
 dummy_stm_packet(struct stm_data *stm_data, unsigned int master,
 		 unsigned int channel, unsigned int packet, unsigned int flags,
 		 unsigned int size, const unsigned char *payload)
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[for-next][PATCH 00/17] tracing: Updates for 4.10 Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 10/17] selftests: ftrace: Add a testcase for types of kprobe event Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 07/17] selftests: ftrace: Hide ftracetest logs from git Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 09/17] selftests: ftrace: Add a testcase for function filter glob match Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 04/17] selftests: ftrace: Add --quiet option not to show error logs on  screen Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 01/17] recordmcount: arm: Implement make_nop Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 14/17] intel_th: Mark sth_stm_packet() with notrace Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 17/17] tracing: Add error checks to creation of event files Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 02/17] tracing: Add new trace_marker_raw Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 12/17] stm class: ftrace: Add ftrace-export-over-stm driver Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 03/17] selftests: ftrace: Initialize ftrace before each test Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 16:40 +0100
  [for-next][PATCH 15/17] stm dummy: Mark dummy_stm_packet() with notrace Steven Rostedt <rostedt@goodmis.org> - 2016-11-23 17:10 +0100

csiph-web