Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1604265

Re: [PATCH] stm class: Document the stm_ftrace

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Alexander Shishkin <alexander.shishkin@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] stm class: Document the stm_ftrace
Date Mon, 20 Mar 2017 10:20:01 +0100
Message-ID <tn1DP-2AT-5@gated-at.bofh.it> (permalink)
References <tmZiH-RH-19@gated-at.bofh.it>
X-Original-To Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UdopcBzpSKED9NWzW+lM8pi6+wsXq2JezgVpWtOd0bM=; b=qYchEe7S6u+InUKaQUQ3I13naERasV5QdWmKAQvVeEdMJ/yoNJ2hNtHsGKbAabhdEH vx0evh9OdzOLxXKPeB7Tq0GQf1lAgTOhajoc9V2g2L5fmo97dk+X4MPP95sQmvg6bMwz 8SNlOpYY+ILabqXeLI5A0NgaqYQCmqEEz9SytWIAIJVrrZjmJ3I+jKNdPm/ZQCaBN95h vlCk72CnzhZtwyXQTbINFX4pe1pQ9L7mHId3PJJp8fW17IRfBOPA0Jhn97KtY90t0+V/ YtBvwOQFIx2u7cIEN09bxIbwBlGn4tH2RdLYJmUVLH6PJ/KjCVobHF003bdWtnz0GzkQ WWBg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UdopcBzpSKED9NWzW+lM8pi6+wsXq2JezgVpWtOd0bM=; b=HN2+FowmFrTE68MsJ7kdsZIFQxtwoxEQFF8G7StSGOJecaf9ZD4salWTe5WNNazLh1 Ow698oc9mIY4r6BhNRvhfbAWiVVanlcidq+6hnbCZd2xCvWATmVU8NhaLVhy44cofNBr ZyKsx0zGYCeqYluo1kKlk2GhxYPctZzmhpPAl5sS3QuNFtcu6TJc3XKRx+wLxgMWbe9g QT329JJuzGYT4RtkHIy7HqtOC56L4QyycPMpO4+7TFOFmusYIasI0YsC2zxqVLzoETQp 1NXZawlVosl48MGXbEAAeOXkHGKcyTiGWQ/zuBua+y7hPD72lqYK8oFgTb8qAAy9XxQ6 NInA==
X-Gm-Message-State AFeK/H0DL5jQzo1kccemerFoB0//qfBtMcmdePEnrKxt6O6aDfskt4ecYcKQUpka2DsP4HbKsi+btJEwx926tA==
X-Received by 10.36.169.72 with SMTP id x8mr7678329iti.99.1489999777487; Mon, 20 Mar 2017 01:49:37 -0700 (PDT)
MIME-Version 1.0
X-Google-Sender-Auth aCnuGx7PR1GNxIN2YhbZagW9_DI
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 49
Organization linux.* mail to news gateway
X-Original-Cc Alexander Shishkin <alexander.shishkin@linux.intel.com>, linux-doc@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, zhang.lyra@gmail.com
X-Original-Date Mon, 20 Mar 2017 10:49:37 +0200
X-Original-Message-ID <CAB7JpEGOWtuyFNnsgy2W1gK022AP4O2imV7P20=nuGrBxF4voA@mail.gmail.com>
X-Original-References <1489992438-14228-1-git-send-email-chunyan.zhang@spreadtrum.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1604265

Show key headers only | View raw


Hi Chunyan,

A couple of clarifications: iirc this applies to the function tracer
of ftrace, right? Does it make sense to mention that? Also, are you
planning to support other ftrace payloads like trace_printk()s?

Thanks,
--
Alex

On 20 March 2017 at 08:47, Chunyan Zhang <chunyan.zhang@spreadtrum.com> wrote:
> This patch adds a description of the stm_ftrace device source, an
> interface for collecting Function trace information via STM devices.
>
> Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
> ---
>  Documentation/trace/stm.txt | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/trace/stm.txt b/Documentation/trace/stm.txt
> index 11cff47..7ec1c0e 100644
> --- a/Documentation/trace/stm.txt
> +++ b/Documentation/trace/stm.txt
> @@ -83,7 +83,7 @@ by writing the name of the desired stm device there, for example:
>  $ echo dummy_stm.0 > /sys/class/stm_source/console/stm_source_link
>
>  For examples on how to use stm_source interface in the kernel, refer
> -to stm_console or stm_heartbeat drivers.
> +to stm_console, stm_heartbeat or stm_ftrace drivers.
>
>  Each stm_source device will need to assume a master and a range of
>  channels, depending on how many channels it requires. These are
> @@ -107,5 +107,13 @@ console in the STP stream, create a "console" policy entry (see the
>  beginning of this text on how to do that). When initialized, it will
>  consume one channel.
>
> +stm_ftrace
> +==========
> +
> +This is another "stm_source" device, once the stm_ftrace is linked with
> +an stm device, function address and parent function address which
> +Ftrace subsystem would store into ring buffer will be exported via the
> +stm device at the same time.
> +
>  [1] https://software.intel.com/sites/default/files/managed/d3/3c/intel-th-developer-manual.pdf
>  [2] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0444b/index.html
> --
> 2.7.4
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] stm class: Document the stm_ftrace Chunyan Zhang <chunyan.zhang@spreadtrum.com> - 2017-03-20 07:50 +0100
  Re: [PATCH] stm class: Document the stm_ftrace Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2017-03-20 10:20 +0100
    Re: [PATCH] stm class: Document the stm_ftrace Chunyan Zhang <zhang.lyra@gmail.com> - 2017-03-20 12:00 +0100
      Re: [PATCH] stm class: Document the stm_ftrace Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2017-03-20 12:20 +0100
        Re: [PATCH] stm class: Document the stm_ftrace Chunyan Zhang <zhang.lyra@gmail.com> - 2017-03-21 07:10 +0100
          Re: [PATCH] stm class: Document the stm_ftrace Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2017-03-21 08:40 +0100
            Re: [PATCH] stm class: Document the stm_ftrace Chunyan Zhang <zhang.lyra@gmail.com> - 2017-03-21 13:30 +0100

csiph-web