From patchwork Mon Nov 21 07:57:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 9438997 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 199CC600BA for ; Mon, 21 Nov 2016 08:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09394288B2 for ; Mon, 21 Nov 2016 08:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1BA5288EB; Mon, 21 Nov 2016 08:12:49 +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 96F42288B2 for ; Mon, 21 Nov 2016 08:12:49 +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 1c8jh4-0005g1-Ro; Mon, 21 Nov 2016 08:11:14 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c8jgI-00046v-Lv for linux-arm-kernel@lists.infradead.org; Mon, 21 Nov 2016 08:10:28 +0000 Received: by mail-pg0-x22a.google.com with SMTP id p66so128092109pga.2 for ; Mon, 21 Nov 2016 00:10:06 -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=soOjTmettxVnMbX4LkmbK63yDNRtjDyQy264TMJsO5Q=; b=Fb16Pz9LGhDO+KuPp3yYU72Yk6N21a3skZEuuiFO3fdXQI7PeQ9GaQJLXdWq+3Z9ID Bg7xB3cUstyCK/XNHQp8MmD1rLZrgTDpgkRMLJGPUUua8kdDjorVIeIfoU4QgkgtQ+Cb NEox37DpFJbRxtAbGyB7MTM3qWrAtr8Lp9Vig= 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=soOjTmettxVnMbX4LkmbK63yDNRtjDyQy264TMJsO5Q=; b=MK6QOX5SEEwK55Os1Vv3gWthB6KoPqaL2qlhoIBEB/+THe/V5k1J6AkaZeJYzCtz78 Be3W/5uXDRoQ+n/8uJf+NugzNb1cvMSW754q5MtcQtSKeCnwIYIiTgVudMLQoqLKGWrL Qh6FsTUelqUmnuVWjEq+eAuT467d3yrXZbJav27p1hiYoV2y25nOntB8R6E3GRQtVTGU Yx9UUx/aNVM0wb1+Tqhw7HHiNjNEvgCm43TlN2pLps8JKMEyIGZBWKXXxqzO8GqY/7av THxMVSJUPqa/WYI1GCAG6uM/+hBBzf6iLKx4OTX3WFU2WjkK50I3SiMbCOmYp0anNEKX NigQ== X-Gm-Message-State: AKaTC01jOvEmA5pcNDvxmsyxfYEAsmJ3lhZpMPcTWRimCGkAgiJwxEg3i3mi/eZd7+VD8tHL X-Received: by 10.98.7.83 with SMTP id b80mr16364420pfd.79.1479715805558; Mon, 21 Nov 2016 00:10:05 -0800 (PST) Received: from localhost.localdomain ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id s2sm35183093pfi.10.2016.11.21.00.09.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 00:10:05 -0800 (PST) From: Chunyan Zhang To: rostedt@goodmis.org, mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com, mingo@redhat.com Subject: [PATCH V9 5/6] stm dummy: Mark dummy_stm_packet() with notrace Date: Mon, 21 Nov 2016 15:57:22 +0800 Message-Id: <1479715043-6534-6-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_001026_943894_262C33C5 X-CRM114-Status: UNSURE ( 9.53 ) 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/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 a86612d..c5f94ca 100644 --- a/drivers/hwtracing/stm/dummy_stm.c +++ b/drivers/hwtracing/stm/dummy_stm.c @@ -21,7 +21,7 @@ #include #include -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)