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


Groups > linux.kernel > #1526439

[PATCH V9 4/6] intel_th: Mark sth_stm_packet() with notrace

From Chunyan Zhang <zhang.chunyan@linaro.org>
Newsgroups linux.kernel
Subject [PATCH V9 4/6] intel_th: Mark sth_stm_packet() with notrace
Date 2016-11-21 09:20 +0100
Message-ID <sFRZv-7a5-5@gated-at.bofh.it> (permalink)
References <sFRPP-74b-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
---
 drivers/hwtracing/intel_th/sth.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/hwtracing/intel_th/sth.c b/drivers/hwtracing/intel_th/sth.c
index e1aee61..b034446 100644
--- a/drivers/hwtracing/intel_th/sth.c
+++ b/drivers/hwtracing/intel_th/sth.c
@@ -67,10 +67,13 @@ static void sth_iowrite(void __iomem *dest, const unsigned char *payload,
 	}
 }
 
-static ssize_t sth_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)
+static ssize_t notrace sth_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)
 {
 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
 	struct intel_th_channel __iomem *out =
-- 
2.7.4

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


Thread

[PATCH V9 0/6] Integration of function trace with System Trace IP blocks Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:10 +0100
  [PATCH V9 1/6] tracing: add a possibility of exporting function trace to other places instead of ring buffer only Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:10 +0100
    Re: [PATCH V9 1/6] tracing: add a possibility of exporting function  trace to other places instead of ring buffer only Steven Rostedt <rostedt@goodmis.org> - 2016-11-22 23:50 +0100
      Re: [PATCH V9 1/6] tracing: add a possibility of exporting function  trace to other places instead of ring buffer only Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-23 03:30 +0100
        Re: [PATCH V9 1/6] tracing: add a possibility of exporting function  trace to other places instead of ring buffer only Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-23 06:20 +0100
  [PATCH V9 4/6] intel_th: Mark sth_stm_packet() with notrace Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:20 +0100
  [PATCH V9 3/6] coresight: Mark stm_generic_packet() with notrace Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:20 +0100
  [PATCH V9 6/6] stm: Mark the functions of writing STM with notrace Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:20 +0100
  [PATCH V9 5/6] stm dummy: Mark dummy_stm_packet() with notrace Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-11-21 09:20 +0100

csiph-web