Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp149135ybg; Mon, 27 Jul 2020 18:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu64BXpVgpciIJTVpg0cxXumwEGYd5DL9sqQKfGsVekELsYRG/p9PxwwTStTZiGyh4tKva X-Received: by 2002:a17:906:a88b:: with SMTP id ha11mr7770433ejb.545.1595900107893; Mon, 27 Jul 2020 18:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595900107; cv=none; d=google.com; s=arc-20160816; b=n4i77SCDCaXc1h8ZMm0uMvo8STYhiAoWMcQ5W7faG1KYh159RK7raa8JL1XDxxdvKK FbbGYMUBlO2Q3uKkELlq56W0sInnPyyK7IhXE2YAtAIw+bapz2HvuIzc0kQ/Les58aum pZ00TmBgusSFaX774uTOl5HQPzrFniyUPkRyK+E+iJmS//tfpUNsvRq7kQKv+TAOcL7Y zsQ4jy2wwvRBpLTWuNY6Vzbm5xd/8QtwnRsIET5maE6wlqmhteP2OL6RUvjuKNdudsZU t8HTS94axWoBpUZAAnIGhsnWyLF596UoEMJeZ7xgRcfpww3/8J8dkNOdsbwLVisHq6mh o80A== 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=cWx0xzV89HxcV5ATp8iPu4My4LsvZHTFoHpl2noTRuyWlYKCiFiQSI2aS8fc8L3q5G 2QG40/jeDU2V+YO46I92NdJK6AqoUg2vPmdTO7+oq/vGGZF6XWwa93ux9JGF0zLANTgN MuX32y9V3eik3aG0T47yfdy5o70Wx6dsPUK5DfWzl9QCJKnHrREse2DYszHbYHNpz47V XkP8ApwlVZ15DE/kWrEnxpEBt6CTyjYINFPPtAWtj04vyC7S3+nayS1bkDcPqYFGA8/g 0qIibsNdzXTajjBl2P2W1n3hYQBpY1vE0QmziyDYgTOJFPAcmSOj8CAQljGg5wB9D+Cx L0Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=QhACVihK; 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 le18si2463760ejb.705.2020.07.27.18.34.45; Mon, 27 Jul 2020 18:35:07 -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=QhACVihK; 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 S1726817AbgG1Beh (ORCPT + 99 others); Mon, 27 Jul 2020 21:34:37 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:49899 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726263AbgG1Beh (ORCPT ); Mon, 27 Jul 2020 21:34:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595900076; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=/cPhb+gGOs1DePmkbBXbDUkj/+DPAUVO3PMNwpoHWUU=; b=QhACVihKxInL7h/nx2hxHhW5F0RKHesLGpbDcw2OncnNW/sPlLQUFRHDlOTRy94fSRvBNbkc YX9VTWjiVCyLlGm0uR78nzTpLNPBDGEHyfTjmLKgBrIosCUratc2rNugJzmPUESjku5x1unh lYC1jOlsnqij+aZmWSLF8Ttvhlg= 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-n08.prod.us-east-1.postgun.com with SMTP id 5f1f80abca55a5604c738c4f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Jul 2020 01:34:35 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 38BDEC433C9; Tue, 28 Jul 2020 01:34:35 +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, URIBL_BLOCKED autolearn=ham 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 7622BC433C6; Tue, 28 Jul 2020 01:34:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7622BC433C6 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 Cc: Tingwei Zhang , tsoni@codeaurora.org, Sai Prakash Ranjan , Mao Jinlong , linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] stm class: ftrace: enable supported trace export flag Date: Tue, 28 Jul 2020 09:33:58 +0800 Message-Id: <20200728013359.2326-6-tingwei@codeaurora.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20200728013359.2326-1-tingwei@codeaurora.org> References: <20200728013359.2326-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