Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp69675pxk; Tue, 1 Sep 2020 16:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgZW+LZJVEf0C8/7Cb1nVPUGnTEm9B29ljI3kJkeEmtBHLNTSgjrim4jHKYgALfP+viUzX X-Received: by 2002:a17:906:c1d8:: with SMTP id bw24mr3676134ejb.91.1599003153684; Tue, 01 Sep 2020 16:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599003153; cv=none; d=google.com; s=arc-20160816; b=pt6P/oi7oHy+fINS+HzW4koWrR4NNtOwPo1a6HUdz3bh0kt1GE+NlvmpN7SuQ58UD8 nun82AJetXWZhIqa+PZD2dmg8OGGW9PFnETXn66mf3Pur5wDwzEbQWQorkTkrta2OsNk DIOQMC0Lv+CxhmgNopvMaN8hGU3cn8W1v/Is7f5nll1H/DSP4BSLKjxPnPfTWbFR33RU m6mDwx9j/sv5U6p7yaXMmSUlF3IuNXZXoNJp2bE1keKgkBSK5Xo2jf2AJ1B5aK6Wq7aL 8zwtV8hADWxfDKHn4McUYkMoMk1gv88mj+nkhvVu/FTbV2v0tAGauGVUIIsUKN1cohZ0 1Yxw== 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=U0eYN4G3qHMcxclmGdLCXslLUoXwxTIZhwxbTBkraVQ=; b=zxK/LRfc+nlSpjNaZMxMM1ugi19hGKQc/Bd2xAI4lbrzrUr3jgR306yQCzarzhoJkd P9pWK96+YCkVnQObu2f+JcrfWxMPayKFlGaxYhLmkooY0+dVNW/0EZQCO/i4R0DUJSlO NgMwMkPQOpIW+g5l1dr6eZ+1u8is2T0525tF3jUMKFnWoewXRSSivpIIL0ObkrsAM1wT /YXNOrKIP8PNZIvDlHi0XLsGml4C9k/DIdO+pQiKhpOrq+3RbKWNo3PeU30J7QKVt6/i PashLcAuZpbdyi8A3XPrrns9GeXKnHjHtw4rF6mnjsjyWm4k+6HsE+Sc/ZhM67QgRZ24 9SAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=KaF9kTEF; 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 qx23si1485868ejb.355.2020.09.01.16.32.10; Tue, 01 Sep 2020 16:32:33 -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=KaF9kTEF; 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 S1726167AbgIAX2t (ORCPT + 99 others); Tue, 1 Sep 2020 19:28:49 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:17357 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbgIAX2t (ORCPT ); Tue, 1 Sep 2020 19:28:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1599002928; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=U0eYN4G3qHMcxclmGdLCXslLUoXwxTIZhwxbTBkraVQ=; b=KaF9kTEFrBvMHmKBo3wiXKZpYZmcM5RUx4fU1zNawQGNWIQTsAt0Jq6ahFk0nUmj4Dxa89Ny l61+6G8AeVANIkUQTtabCVjdwfAZ8abyFFDWDbhs5roaIA2TqCBzPQ3lZY1u7RL6QViP7vcX gN1hnSSNWMH3sRimQf23dWjrNek= 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-west-2.postgun.com with SMTP id 5f4ed92fcc683673f93662f9 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 01 Sep 2020 23:28:47 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 33E01C43395; Tue, 1 Sep 2020 23:28:47 +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 52FC3C433C9; Tue, 1 Sep 2020 23:28:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 52FC3C433C9 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: Wed, 2 Sep 2020 07:28:39 +0800 From: Tingwei Zhang To: Tingwei Zhang Cc: Steven Rostedt , Ingo Molnar , Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , 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: <20200901232839.GB13346@codeaurora.org> References: <20200813014552.23539-1-tingwei@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200813014552.23539-1-tingwei@codeaurora.org> 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 Hi Alexander, May I know your comments for this patch set? Thanks, Tingwei On Thu, Aug 13, 2020 at 09:45:46AM +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. > > 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 >