Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp967631pxa; Wed, 12 Aug 2020 18:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVgb8S1oX7LxtcFtLiL5PWDlG5xUfbJNX607uIGCAb5uGWsvYXN1wqYEf8P8YAJBEJvymj X-Received: by 2002:a05:6402:c86:: with SMTP id cm6mr2519273edb.205.1597283508703; Wed, 12 Aug 2020 18:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597283508; cv=none; d=google.com; s=arc-20160816; b=ODIU4hMPFrL6mExEImSI3lpYEIKwtwLLNlSNfp5NUnkmZ7orm1SpBJlY/72RFJRtR1 kWYe83KuoO+CPmquY913A9yj+OlO3p8KqoQbjmtH6vC7VrSJ3O9gjKNOpxQeHWienA2M UJBe8tpk/q5KZwDaQT8MeFd3/wweNvstBrJG4nMjIk0LtPH/pTLdNNzJacQlugclDJL4 v//avIZJOQb6yQPybPwY3uCqn8UYf6uR0DSRXU6BxokxZhxqEkpNJO0Lc+Jn7yw4suy6 TITIAvPDmQMKDFN+nliKXgLlNqPuD7xtN7I4Amutz/lizntFGPjgW/B2GIZjorbGi0As kR3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature; bh=L1B+40OvR03u8gB2tUvrjVIQ3Zl6mMi1bX7+rZKIBSk=; b=Xj1c/hFJFYLYrSN/vMI0a37fWeA9v2KOHZM799WCur/Kj3eBmMPQXHutHmk+BoP0LI DKONGNjLa+1827UDQgbWvVYLo5Iq78UjOCAMD5OFCeY+vmbzOw5HNojp2WENA8/Nc8Cq MRxP3K5GVADMGR0iWtu4yDeuiDsHQBXDKvRapD2TCK1Cwof6bPJ5Pnai4rqpJFby6Uv8 04MPr25zVfTXKlcJyg1TgN1B4JioXuOxD3tLsS8hiGOqyp6/9EhiD1wqR6+OMJuPh45F IV49Ff4n5LKODCb7uPZS8hMsX+/GWpgSGX9P4EaI4FTrOMniPxiX7LZzoL97dLr0b0iD 6cAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=PhYcnOgf; 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 qc16si2226152ejb.746.2020.08.12.18.51.25; Wed, 12 Aug 2020 18:51:48 -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=PhYcnOgf; 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 S1726947AbgHMBsJ (ORCPT + 99 others); Wed, 12 Aug 2020 21:48:09 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:11293 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbgHMBsI (ORCPT ); Wed, 12 Aug 2020 21:48:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597283288; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=L1B+40OvR03u8gB2tUvrjVIQ3Zl6mMi1bX7+rZKIBSk=; b=PhYcnOgf7dixxJ4VrHkc5hqeJ+WIs/zpAEEc2NY5jT9xKGSHU6ewWcEfkvu4YZ02Brs8M+mD JXfktpcUIWG3hXPIPWUY5nT8csyoCXv/IpCXx66j/IQZIA6mwdUwURNsLLC8x4ikBr2Nd+RL J6xpW41LT1987GT9fAifxu4VWWg= X-Mailgun-Sending-Ip: 104.130.122.29 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-n10.prod.us-east-1.postgun.com with SMTP id 5f349bd8d78a2e58330cafd1 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Aug 2020 01:48:08 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 44A35C433A0; Thu, 13 Aug 2020 01:48:07 +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 codeaurora.org (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tingwei) by smtp.codeaurora.org (Postfix) with ESMTPSA id 68DEDC433CA; Thu, 13 Aug 2020 01:48:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 68DEDC433CA 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=tingweiz@codeaurora.org Date: Thu, 13 Aug 2020 09:47:55 +0800 From: Tingwei Zhang To: Mathieu Poirier Cc: Tingwei Zhang , Steven Rostedt , Ingo Molnar , Suzuki K Poulose , tsoni@codeaurora.org, Sai Prakash Ranjan , Mao Jinlong , linux-kernel@vger.kernel.org, coresight@lists.linaro.org Subject: Re: [PATCH v3 0/6] tracing: export event trace and trace_marker Message-ID: <20200813014755.GA23590@codeaurora.org> References: <20200811035726.10379-1-tingwei@codeaurora.org> <20200812164925.GA3393195@xps15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200812164925.GA3393195@xps15> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 13, 2020 at 12:49:25AM +0800, Mathieu Poirier wrote: > On Tue, Aug 11, 2020 at 11:57:20AM +0800, Tingwei Zhang wrote: > > Ftrace has ability to export trace packets to other destination. > > Currently, only function trace can be exported. This series extends the > > support to event trace and trace_maker. STM is one possible destination > to > > export ftrace. Use separate channel for each CPU to avoid mixing up > packets > > from different CPUs together. > > As the get_maintainer script points out, you are missing the maintainer of > the > system trace subsystem. > Sorry for missing that. I resent the patch and add Alexander. > > > > Change from v2: > > Change flag definition to BIT(). (Steven) > > Add comment in stm_ftrace_write() to clarify it's safe to use > > smp_processor_id() here since preempt is disabled. (Steven) > > > > Change from v1: > > All changes are suggested by Steven Rostedt. > > User separate flag to control function trace, event trace and trace > mark. > > Allocate channels according to num_possible_cpu() dynamically. > > Move ftrace_exports routines up so all ftrace can use them. > > > > Tingwei Zhang (6): > > stm class: ftrace: change dependency to TRACING > > tracing: add flag to control different traces > > tracing: add trace_export support for event trace > > tracing: add trace_export support for trace_marker > > stm class: ftrace: enable supported trace export flag > > stm class: ftrace: use different channel accroding to CPU > > > > drivers/hwtracing/stm/Kconfig | 2 +- > > drivers/hwtracing/stm/ftrace.c | 7 +- > > include/linux/trace.h | 7 + > > kernel/trace/trace.c | 270 ++++++++++++++++++--------------- > > 4 files changed, 159 insertions(+), 127 deletions(-) > > > > -- > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora > Forum, > > a Linux Foundation Collaborative Project > >