linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zhang.chunyan@linaro.org (Chunyan Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V9 4/6] intel_th: Mark sth_stm_packet() with notrace
Date: Mon, 21 Nov 2016 15:57:21 +0800	[thread overview]
Message-ID: <1479715043-6534-5-git-send-email-zhang.chunyan@linaro.org> (raw)
In-Reply-To: <1479715043-6534-1-git-send-email-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.

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

  parent reply	other threads:[~2016-11-21  7:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-21  7:57 [PATCH V9 0/6] Integration of function trace with System Trace IP blocks Chunyan Zhang
2016-11-21  7:57 ` [PATCH V9 1/6] tracing: add a possibility of exporting function trace to other places instead of ring buffer only Chunyan Zhang
2016-11-22 22:39   ` Steven Rostedt
2016-11-23  2:27     ` Chunyan Zhang
2016-11-23  5:05       ` Chunyan Zhang
2016-11-21  7:57 ` [PATCH V9 2/6] stm class: ftrace: Add ftrace-export-over-stm driver Chunyan Zhang
2016-11-21  7:57 ` [PATCH V9 3/6] coresight: Mark stm_generic_packet() with notrace Chunyan Zhang
2016-11-21  7:57 ` Chunyan Zhang [this message]
2016-11-21  7:57 ` [PATCH V9 5/6] stm dummy: Mark dummy_stm_packet() " Chunyan Zhang
2016-11-21  7:57 ` [PATCH V9 6/6] stm: Mark the functions of writing STM " Chunyan Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1479715043-6534-5-git-send-email-zhang.chunyan@linaro.org \
    --to=zhang.chunyan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).