From: zhang.chunyan@linaro.org (Chunyan Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V9 3/6] coresight: Mark stm_generic_packet() with notrace
Date: Mon, 21 Nov 2016 15:57:20 +0800 [thread overview]
Message-ID: <1479715043-6534-4-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/coresight/coresight-stm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight-stm.c
index 49e0f1b..b7543bd 100644
--- a/drivers/hwtracing/coresight/coresight-stm.c
+++ b/drivers/hwtracing/coresight/coresight-stm.c
@@ -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,
--
2.7.4
next prev 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 ` Chunyan Zhang [this message]
2016-11-21 7:57 ` [PATCH V9 4/6] intel_th: Mark sth_stm_packet() with notrace Chunyan Zhang
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-4-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).