From patchwork Mon Nov 21 07:57:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 9438993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2FC81600BA for ; Mon, 21 Nov 2016 08:11:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4F628899 for ; Mon, 21 Nov 2016 08:11:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13CB5288B2; Mon, 21 Nov 2016 08:11:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9372F28899 for ; Mon, 21 Nov 2016 08:11:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c8jgL-00050Z-Eq; Mon, 21 Nov 2016 08:10:29 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c8jg6-0003sp-Vb for linux-arm-kernel@lists.infradead.org; Mon, 21 Nov 2016 08:10:16 +0000 Received: by mail-pf0-x235.google.com with SMTP id d2so63357588pfd.0 for ; Mon, 21 Nov 2016 00:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t6XDg/+c23+KUjo+t32ulqZM8IFYU6IqOCykc/PeG5E=; b=h7w5yLpjDGiBhxTzW8iqZgTRSbvnWd/w0+ORr7LVG2aRsTrt7u/BBi1u7pKMTHurh8 Q4gMg2RsSezazCQSEfelxpec2Mn3C7AjtbLH2xwXK7NulvyoNOUcbb637bhHwq6BL4NA 4ZSkA2RTEsXf3X7FxQ3Tl6CureyxgQxrQrH10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=t6XDg/+c23+KUjo+t32ulqZM8IFYU6IqOCykc/PeG5E=; b=csEe9JMB4i1tJ3sUtf80tsH/SZWOqVlUtE4IfSdYUY2JH1m3frn6Pii0lUfVXGPgXt Unl0H0asD+JQ1re6IJR4ip4nwdKXNLQhNlTNEojvpI+u5UOCjRxQTOxCJoceq6CldehC m5HmIO1p1txpByvVxSep3n7+A0DEQBUbbzR676HsajCy7Rs4abnRUitRdl12KnPO0Vfy fkPZkWH9TdVo7NIjXWFZ2iRFb8lq/exC9xYQiA/VIer5HX/ZB5jGZgwrCKV359CPlWTo MWA+be/Rk7zxT5AcUyWyOEgyOGNXvhMGQpmfOvf7iUflEWWmWfzlDHTEEx54p8XFWpA3 Wf5A== X-Gm-Message-State: AKaTC01vyz8OD81BuoRkOZuVPFuvzJboPC1m0+xESuAKm9OED2qMvTR/L3gPNaWL4YEiEEqZ X-Received: by 10.99.117.71 with SMTP id f7mr29415581pgn.126.1479715793809; Mon, 21 Nov 2016 00:09:53 -0800 (PST) Received: from localhost.localdomain ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id s2sm35183093pfi.10.2016.11.21.00.09.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 00:09:53 -0800 (PST) From: Chunyan Zhang To: rostedt@goodmis.org, mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com, mingo@redhat.com Subject: [PATCH V9 3/6] coresight: Mark stm_generic_packet() with notrace Date: Mon, 21 Nov 2016 15:57:20 +0800 Message-Id: <1479715043-6534-4-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479715043-6534-1-git-send-email-zhang.chunyan@linaro.org> References: <1479715043-6534-1-git-send-email-zhang.chunyan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161121_001015_192439_0C15B206 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: felipe.balbi@linux.intel.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, tor@ti.com, philippe.langlais@st.com, mike.leach@arm.com, nicolas.guion@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Alexander Shishkin --- 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,