mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org,
	pebolle@tiscali.nl, peter.lachner@intel.com,
	norbert.schulz@intel.com, keven.boell@intel.com,
	yann.fouassier@intel.com, laurent.fert@intel.com,
	linux-api@vger.kernel.org, Pratik Patel <pratikp@codeaurora.org>
Subject: Re: [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices
Date: Thu, 26 Mar 2015 23:23:38 +0100	[thread overview]
Message-ID: <20150326222338.GA13694@kroah.com> (raw)
In-Reply-To: <1427056381-27614-2-git-send-email-alexander.shishkin@linux.intel.com>

On Sun, Mar 22, 2015 at 10:32:51PM +0200, Alexander Shishkin wrote:
> A System Trace Module (STM) is a device exporting data in System Trace
> Protocol (STP) format as defined by MIPI STP standards. Examples of such
> devices are Intel Trace Hub and Coresight STM.
> 
> This abstraction provides a unified interface for software trace sources
> to send their data over an STM device to a debug host. In order to do
> that, such a trace source needs to be assigned a pair of master/channel
> identifiers that all the data from this source will be tagged with. The
> STP decoder on the debug host side will use these master/channel tags to
> distinguish different trace streams from one another inside one STP
> stream.
> 
> This abstraction provides a configfs-based policy management mechanism
> for dynamic allocation of these master/channel pairs based on trace
> source-supplied string identifier. It has the flexibility of being
> defined at runtime and at the same time (provided that the policy
> definition is aligned with the decoding end) consistency.
> 
> For userspace trace sources, this abstraction provides write()-based and
> mmap()-based (if the underlying stm device allows this) output mechanism.
> 
> For kernel-side trace sources, we provide "stm_source" device class that
> can be connected to an stm device at run time.
> 
> Cc: linux-api@vger.kernel.org
> Cc: Pratik Patel <pratikp@codeaurora.org>
> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> ---
>  Documentation/ABI/testing/configfs-stp-policy    |  44 ++
>  Documentation/ABI/testing/sysfs-class-stm        |  14 +
>  Documentation/ABI/testing/sysfs-class-stm_source |  11 +
>  Documentation/trace/stm.txt                      |  77 ++
>  drivers/Kconfig                                  |   2 +
>  drivers/Makefile                                 |   1 +
>  drivers/hwtracing/stm/Kconfig                    |   8 +
>  drivers/hwtracing/stm/Makefile                   |   3 +
>  drivers/hwtracing/stm/core.c                     | 897 +++++++++++++++++++++++
>  drivers/hwtracing/stm/policy.c                   | 467 ++++++++++++
>  drivers/hwtracing/stm/stm.h                      |  79 ++
>  include/linux/stm.h                              | 102 +++
>  include/uapi/linux/stm.h                         |  47 ++
>  13 files changed, 1752 insertions(+)
>  create mode 100644 Documentation/ABI/testing/configfs-stp-policy
>  create mode 100644 Documentation/ABI/testing/sysfs-class-stm
>  create mode 100644 Documentation/ABI/testing/sysfs-class-stm_source
>  create mode 100644 Documentation/trace/stm.txt
>  create mode 100644 drivers/hwtracing/stm/Kconfig
>  create mode 100644 drivers/hwtracing/stm/Makefile
>  create mode 100644 drivers/hwtracing/stm/core.c
>  create mode 100644 drivers/hwtracing/stm/policy.c
>  create mode 100644 drivers/hwtracing/stm/stm.h
>  create mode 100644 include/linux/stm.h
>  create mode 100644 include/uapi/linux/stm.h
> 
> diff --git a/Documentation/ABI/testing/configfs-stp-policy b/Documentation/ABI/testing/configfs-stp-policy
> new file mode 100644
> index 0000000000..1c7ab3dbcd
> --- /dev/null
> +++ b/Documentation/ABI/testing/configfs-stp-policy
> @@ -0,0 +1,44 @@
> +What:		/config/stp-policy
> +Date:		Jan 2015
> +KernelVersion:	3.20

There is no 3.20 kernel version, and January 2015 is in the past :(


  parent reply	other threads:[~2015-03-26 22:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22 20:32 [PATCH v2 00/11] Introduce Intel Trace Hub support Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices Alexander Shishkin
2015-03-23  1:50   ` Mathieu Poirier
2015-03-23 19:41     ` Alexander Shishkin
2015-03-26 22:23   ` Greg Kroah-Hartman [this message]
2015-03-26 22:35   ` Greg Kroah-Hartman
2015-04-24 22:07   ` Mathieu Poirier
2015-03-22 20:32 ` [PATCH v2 02/11] MAINTAINERS: add an entry for System Trace Module device class Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 03/11] stm class: dummy_stm: Add dummy driver for testing stm class Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 04/11] stm class: stm_console: Add kernel-console-over-stm driver Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 05/11] intel_th: Add driver infrastructure for Intel Trace Hub devices Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 06/11] intel_th: Add pci glue layer for Intel Trace Hub Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 07/11] intel_th: Add Global Trace Hub driver Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 08/11] intel_th: Add Software " Alexander Shishkin
2015-03-22 20:32 ` [PATCH v2 09/11] intel_th: Add Memory Storage Unit driver Alexander Shishkin
2015-03-22 20:33 ` [PATCH v2 10/11] intel_th: Add PTI output driver Alexander Shishkin
2015-03-22 20:33 ` [PATCH v2 11/11] MAINTAINERS: add an entry for Intel(R) Trace Hub Alexander Shishkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150326222338.GA13694@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=keven.boell@intel.com \
    --cc=laurent.fert@intel.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=norbert.schulz@intel.com \
    --cc=pebolle@tiscali.nl \
    --cc=peter.lachner@intel.com \
    --cc=pratikp@codeaurora.org \
    --cc=yann.fouassier@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®