From patchwork Wed Nov 23 15:35:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 83708 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp2791764obn; Wed, 23 Nov 2016 08:03:21 -0800 (PST) X-Received: by 10.84.178.7 with SMTP id y7mr8072707plb.147.1479917001661; Wed, 23 Nov 2016 08:03:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si5884619pli.30.2016.11.23.08.03.19; Wed, 23 Nov 2016 08:03:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965537AbcKWQDQ (ORCPT + 25 others); Wed, 23 Nov 2016 11:03:16 -0500 Received: from mail.kernel.org ([198.145.29.136]:37164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965195AbcKWQDP (ORCPT ); Wed, 23 Nov 2016 11:03:15 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3EAA203DC; Wed, 23 Nov 2016 16:02:58 +0000 (UTC) Received: from gandalf.local.home (cpe-67-246-153-56.stny.res.rr.com [67.246.153.56]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECE3E203C3; Wed, 23 Nov 2016 16:02:52 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.87) (envelope-from ) id 1c9Za5-0001Hm-N2; Wed, 23 Nov 2016 10:35:29 -0500 Message-Id: <20161123153529.650476782@goodmis.org> User-Agent: quilt/0.63-1 Date: Wed, 23 Nov 2016 10:35:27 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Chunyan Zhang , Alexander Shishkin Subject: [for-next][PATCH 15/17] stm dummy: Mark dummy_stm_packet() with notrace References: <20161123153512.923515549@goodmis.org> MIME-Version: 1.0 Content-Disposition: inline; filename=0015-stm-dummy-Mark-dummy_stm_packet-with-notrace.patch X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chunyan Zhang 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. Link: http://lkml.kernel.org/r/1479715043-6534-6-git-send-email-zhang.chunyan@linaro.org Signed-off-by: Chunyan Zhang Acked-by: Alexander Shishkin Signed-off-by: Steven Rostedt --- drivers/hwtracing/stm/dummy_stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.2 diff --git a/drivers/hwtracing/stm/dummy_stm.c b/drivers/hwtracing/stm/dummy_stm.c index a86612d989f9..c5f94ca31c4d 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)