linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Mike Leach <mike.leach@linaro.org>
To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org
Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com,
	leo.yan@linaro.org, Mike Leach <mike.leach@linaro.org>
Subject: [PATCH v3 0/6] coresight: syscfg: dynamic load
Date: Wed, 24 Nov 2021 20:00:32 +0000	[thread overview]
Message-ID: <20211124200038.28662-1-mike.leach@linaro.org> (raw)

1) API updated to allow dynamic load and unload of configurations and
features. Dependency management between loaded sets is added.

2) New configuration and feature sets can be added using a loadable module.
An example in /samples/coresight is provided to demonstrate this.

3) configfs can be used to activate a configuration which will then be used
when controlling tracing using sysfs.

Applies and tested on coresight/next - which is 5.16-rc1

Changes since v2: (requested by Mathieu)

a) Split first patch into two patches to introduce the concept of owner,
then use it to implement dynamic load / unload.

b) Renamed configfs configuration attributes used to enable and set
preset on configurations when using CoreSight with sysfs 

c) Updated docs to reflect use of enable and preset attributes for sysfs
CoreSight control.

Changes since v1:

a) Original set split to divide related changes into smaller sets.
Removed RFC flag.

b) Revised config activation for sysfs to simplify common function.
(patch 4). 

c) Minor changes requested by Mathieu added.

Mike Leach (6):
  coresight: configuration: Update API to introduce load owner concept
  coresight: configuration: Update API to permit dynamic load/unload
  coresight: syscfg: Update load API for config loadable modules
  coresight: syscfg: Example CoreSight configuration loadable module
  coresight: configfs: Allow configfs to activate configuration
  Documentation: coresight: Update coresight configuration docs

 .../trace/coresight/coresight-config.rst      |  62 +++-
 MAINTAINERS                                   |   1 +
 .../coresight/coresight-cfg-preload.c         |   9 +-
 .../hwtracing/coresight/coresight-config.h    |   9 +-
 .../coresight/coresight-etm4x-core.c          |  11 +-
 .../coresight/coresight-syscfg-configfs.c     |  87 +++++
 .../coresight/coresight-syscfg-configfs.h     |   4 +
 .../hwtracing/coresight/coresight-syscfg.c    | 315 ++++++++++++++++--
 .../hwtracing/coresight/coresight-syscfg.h    |  39 ++-
 samples/Kconfig                               |   9 +
 samples/Makefile                              |   1 +
 samples/coresight/Makefile                    |   4 +
 samples/coresight/coresight-cfg-sample.c      |  73 ++++
 13 files changed, 586 insertions(+), 38 deletions(-)
 create mode 100644 samples/coresight/Makefile
 create mode 100644 samples/coresight/coresight-cfg-sample.c

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2021-11-24 20:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 20:00 Mike Leach [this message]
2021-11-24 20:00 ` [PATCH v3 1/6] coresight: configuration: Update API to introduce load owner concept Mike Leach
2021-11-24 20:00 ` [PATCH v3 2/6] coresight: configuration: Update API to permit dynamic load/unload Mike Leach
2021-11-24 20:00 ` [PATCH v3 3/6] coresight: syscfg: Update load API for config loadable modules Mike Leach
2021-11-24 20:00 ` [PATCH v3 4/6] coresight: syscfg: Example CoreSight configuration loadable module Mike Leach
2021-11-26 18:23   ` Mathieu Poirier
2021-11-29 12:24     ` Mike Leach
2021-11-29 16:44       ` Mathieu Poirier
2021-11-24 20:00 ` [PATCH v3 5/6] coresight: configfs: Allow configfs to activate configuration Mike Leach
2021-11-24 20:00 ` [PATCH v3 6/6] Documentation: coresight: Update coresight configuration docs Mike Leach
2021-11-26 18:26   ` Mathieu Poirier
2021-11-29 11:54     ` Mike Leach

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=20211124200038.28662-1-mike.leach@linaro.org \
    --to=mike.leach@linaro.org \
    --cc=coresight@lists.linaro.org \
    --cc=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=suzuki.poulose@arm.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;
as well as URLs for NNTP newsgroup(s).