Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1892091pxk; Tue, 1 Sep 2020 10:09:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQD1WxP59HsTCQ8kmLnV9RS1Vu/0xbebx1OOu02EHyfo9LUbXWliYftpwI8g3PBXcsx/aQ X-Received: by 2002:a50:e087:: with SMTP id f7mr2781077edl.174.1598980163434; Tue, 01 Sep 2020 10:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598980163; cv=none; d=google.com; s=arc-20160816; b=uIXe7niK/Sc7jVfoJ17MGXQD9PvD+ZZMHDP8uzAwMsvBPrXeoPu1T64wW8LouC+TTb mnnnbsrw2Plat4HHsTHlTH2/umfWRE7cSxWBX5WM3olxH//4r3z9h/U9K22OPG1TckDB E8Mqr/b9+XAgOuJ8VIWkujwO1fk0rfcl0seHkJ1p8B0ZFj71iyH6rdPixtFVeLlYH5aR lvOZmKXZhWRdGudN8ueeOBDJLdU5BnTNDwNVAj9Yk1ndZD9hJEAvpXwLu94xRNyzi2sA PrwgjdCQACl/++K2oQe+zBkiGf7qTJuM2Cq3R0qr9AeXU6mQ9rb19vuAFfLWStGIRugi Iy7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=B7oiHWaXK5gHfmhnB8vkdM5EgHYpD4CD1tmZh3/WSwY=; b=dJSQMrY21FLsr2F78G/PMN8e0JDDbDi1/0ozsGyjjPURU5opKgJ86TgTOGHDbMJ/co v3W2SrcKgCFzsD4clnNHeCjGXl9Yu6Gym3gmjJZlwChYEhM9OB6ZA2j4dtG00E3Ocihv 6mrVgalnXYdAp7ZB+XMrQ/MM3gSEKP0uU+DMwKIpFfyGU9dKIgq6FGv7bY7K/L9SgygW /9vioMh5xvE7y5O6eyCv//Ew0fEU/L/993mjwQwAtJCkUfw5IrJFUk/LqxyALVopEZHO LwhAMf8K7j3Xx+yxek2/Nm0Gy9Mkle9rYUmyiOQJp25N9ZCxujmwCGAza5RL1V7POuzv 6X8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGMdhR+r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv10si958595ejb.522.2020.09.01.10.08.59; Tue, 01 Sep 2020 10:09:23 -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=pass header.i=@linaro.org header.s=google header.b=GGMdhR+r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729655AbgIARGJ (ORCPT + 99 others); Tue, 1 Sep 2020 13:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729383AbgIARFw (ORCPT ); Tue, 1 Sep 2020 13:05:52 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60878C061244 for ; Tue, 1 Sep 2020 10:05:52 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 17so1145113pfw.9 for ; Tue, 01 Sep 2020 10:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=B7oiHWaXK5gHfmhnB8vkdM5EgHYpD4CD1tmZh3/WSwY=; b=GGMdhR+rBEO/tSiqGxTejDVPW9ILsYjv0inAaOCyjrdSvZucIdsLpikJW1/3A4lGF2 P5vfHGsN8IzLPv9emV53iAdi6T6szf+cJKNqsXZHMd634yFckut1cE82ER9Rll4ZBfXN RcVabtYMDBqZ5RGrq9TC5K5maURSucr3mr5SL8np6e7DmErcjDI5eJP8nCOk7K2zkD3W nRCH4/76wVJuMmfin7Tr9TlqkNZJCZgAlIwfJrIZyQbq7LibFYjxAtrX8kW6FY3mVA56 yCM9uoIv//nbY2Gxc0wL0hu0Zw4/bT+Wjj3k2WD4CyY+N5EHduf2d56+E5FAea+yBaSq 1KIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=B7oiHWaXK5gHfmhnB8vkdM5EgHYpD4CD1tmZh3/WSwY=; b=Wmgg+tqUzNCH5Sa5qQIrTWVXyGZzTKSP0D6rW4p0FZLLl59yI2Vpb1IkRNksHIcnSG z6f+P6H06/zCl7Sjb+LT/2s7HyiXi9jCjGAPSEa2mLaD0Uk7WQeHhkQh6uwaOSOIgnKI li2k9IEcFo/a8OKSUAaJw7eRhL24p5b5OOebQLdXh1zeIDELYkjifXQB5HCqpSreEV+e toJ3vUs7/vAblYeM8he14dPXmLceSV3WjNq1uTOYNSMIi+WaBGSkC7URzWTNya9Wv0yB 7h+U1wjS2JiLHBWJ4i34sZhPoGYrwnOnSyBfo4VyuzXIL3FvD5gulo92SrzIR9Ra1SK4 pLLA== X-Gm-Message-State: AOAM531s9rVQZJaWTRJHJVJwYpRjAcX9/fOAzRiPlIcOJVZTRhiEQUt2 yfroV3o2/WgYftIyLN0gYU29Jg== X-Received: by 2002:aa7:9ecc:: with SMTP id r12mr2716361pfq.285.1598979951764; Tue, 01 Sep 2020 10:05:51 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id z126sm2691059pfc.94.2020.09.01.10.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 10:05:51 -0700 (PDT) Date: Tue, 1 Sep 2020 11:05:49 -0600 From: Mathieu Poirier To: Tingwei Zhang Cc: Tingwei Zhang , Steven Rostedt , Ingo Molnar , 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: <20200901170549.GA236120@xps15> References: <20200813014552.23539-1-tingwei@codeaurora.org> <20200901063740.GB13784@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901063740.GB13784@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2020 at 02:37:40PM +0800, Tingwei Zhang wrote: > Hi Mathieu, > > May I know your comments for this patch set? I do not maintain any of these files. > > 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 > >