Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp143559pxk; Wed, 2 Sep 2020 17:22:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0M4xmCzoBp4E7461/BHntXhYUAifoy8bcsOHYVJt3A11AxLFjcDsMinrSqF18w1o9GZ71 X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr617559ejb.99.1599092523945; Wed, 02 Sep 2020 17:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599092523; cv=none; d=google.com; s=arc-20160816; b=OcyIjy3oAhyaMXYGV/VRBo5LrRkqMnRyjsRhehD8QJKeyonQw2/pSI8Nf3RXXFYC5y AWnH5xX7w3k2ARu1IlnDa4rADUawZLIqv850nMJAVDmlsulVYU9fEIqPPBJFzgRMQQ0E G7T7NrJCuFg8280lqFdlWej188sO90M4k2ElT8aGteDymRBw5D5BbEPrrQNSMEJT11aV va9AEm9K5aFos4I+47VYcrsg8W2+DBpGKDpus6htW6JXLI1yRwRqTXLN95BvMczVJl+M 6dGJUc5A7ePsj1+TI8waJ4DBEK3bw0zyUfm0Zvg1j0HFK01Obj6otaZg9XuaBGA/Ca7v WM9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=/cPhb+gGOs1DePmkbBXbDUkj/+DPAUVO3PMNwpoHWUU=; b=Sm3YNbm/pEJ+oxImC1cP4j56mKcJc6CJLcMau/svjmHWDOHlVDZ7O54ClF4xaqtc6+ BM/NWRtpvG6PpoJuP5MrWEsLJPFiqu4y5X5wK8/Bm2ENpGZ+qSNKYd1h/41kplskBeZ6 jVREtxrP/SJc8fHM6igGX3nIyZYQ9ClcjcMT7N7S5lk9ikOhC+HzI2mN2etlCXTyoCE8 v73jzyxhkPL0ghZ2frDXiz8NZmo9jc1KexN6DGhSkXr2MryMxn6nEoJf0zpNuvOroX8D bHxQcpq3K9khxsKqckBYGFrYAFNEtQ1hvH6tZdaHE/1dsljioF7Sr2ocnb0hGdBBgNtE tFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=EJ1pjQzp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp17si733722ejb.458.2020.09.02.17.21.40; Wed, 02 Sep 2020 17:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=EJ1pjQzp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727850AbgICASD (ORCPT + 99 others); Wed, 2 Sep 2020 20:18:03 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:58089 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgICASA (ORCPT ); Wed, 2 Sep 2020 20:18:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1599092279; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=/cPhb+gGOs1DePmkbBXbDUkj/+DPAUVO3PMNwpoHWUU=; b=EJ1pjQzpJYxV6uaB4KD7WqPfGkIos/wvWnYlgmwXqTNQQhue8p2WNz3LvzAdt9X8ZkwDFbhZ 0BYy+nnOAYXF56QNu9vcYGLCJV6qD7jXsiWj+ztIsvvf8Ves36fE+vmCQo4sPfSSRMoPMyRR HjZ6ZfTgikkDEtoMu+8sQheNZ5I= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5f50363232925f96e1c49fce (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 03 Sep 2020 00:17:54 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1F821C433AF; Thu, 3 Sep 2020 00:17:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from tingweiz-gv.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tingwei) by smtp.codeaurora.org (Postfix) with ESMTPSA id 80541C433C9; Thu, 3 Sep 2020 00:17:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 80541C433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=tingwei@codeaurora.org From: Tingwei Zhang To: Steven Rostedt , Ingo Molnar , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue Cc: Tingwei Zhang , Mathieu Poirier , Suzuki K Poulose , tsoni@codeaurora.org, Sai Prakash Ranjan , Mao Jinlong , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/6] stm class: ftrace: enable supported trace export flag Date: Thu, 3 Sep 2020 08:17:05 +0800 Message-Id: <20200903001706.28147-6-tingwei@codeaurora.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20200903001706.28147-1-tingwei@codeaurora.org> References: <20200903001706.28147-1-tingwei@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set flags for trace_export. Export function trace, event trace and trace marker to stm. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- drivers/hwtracing/stm/ftrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/stm/ftrace.c b/drivers/hwtracing/stm/ftrace.c index ce868e095410..c694a6e692d1 100644 --- a/drivers/hwtracing/stm/ftrace.c +++ b/drivers/hwtracing/stm/ftrace.c @@ -46,6 +46,8 @@ static int stm_ftrace_link(struct stm_source_data *data) struct stm_ftrace *sf = container_of(data, struct stm_ftrace, data); sf->ftrace.write = stm_ftrace_write; + sf->ftrace.flags = TRACE_EXPORT_FUNCTION | TRACE_EXPORT_EVENT + | TRACE_EXPORT_MARKER; return register_ftrace_export(&sf->ftrace); } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project