mbox series

[0/6] coresight: syscfg: Extend configfs for config load.

Message ID 20211101224731.27870-1-mike.leach@linaro.org (mailing list archive)
Headers show
Series coresight: syscfg: Extend configfs for config load. | expand

Message

Mike Leach Nov. 1, 2021, 10:47 p.m. UTC
This set extends the configfs support to allow loading and unloading of
configurations as binary files via configfs.

Additional attributes - load, unload and last_load_status are provided to
implement the load functionality.

Routines to generate binary configuration files are supplied in
./samples/coresight.

Documentation is updated to describe feature usage.

Set applies on top of dynamic load set here:
https://lists.linaro.org/pipermail/coresight/2021-October/007254.html

Mike Leach (6):
  coresight: configfs: Add in functionality for load via configfs
  coresight: configfs: Add in binary attributes to load files
  coresight: configfs: Modify config files to allow userspace use
  coresight: samples: Add an example config writer for configfs load
  coresight: samples: Add coresight file reader sample program
  Documentation: coresight: Update coresight configuration docs

 .../trace/coresight/coresight-config.rst      |  65 ++-
 drivers/hwtracing/coresight/Makefile          |   2 +-
 .../coresight/coresight-config-file.c         | 472 ++++++++++++++++++
 .../coresight/coresight-config-file.h         | 158 ++++++
 .../hwtracing/coresight/coresight-config.h    |  38 ++
 .../coresight/coresight-syscfg-configfs.c     | 148 +++++-
 .../coresight/coresight-syscfg-configfs.h     |   8 +
 .../hwtracing/coresight/coresight-syscfg.c    |  36 ++
 .../hwtracing/coresight/coresight-syscfg.h    |   2 +
 samples/coresight/Makefile                    |  23 +
 samples/coresight/Makefile.host               |  39 ++
 samples/coresight/coresight-cfg-bufw.c        | 302 +++++++++++
 samples/coresight/coresight-cfg-bufw.h        |  24 +
 samples/coresight/coresight-cfg-file-read.c   | 191 +++++++
 samples/coresight/coresight-cfg-filegen.c     |  89 ++++
 15 files changed, 1583 insertions(+), 14 deletions(-)
 create mode 100644 drivers/hwtracing/coresight/coresight-config-file.c
 create mode 100644 drivers/hwtracing/coresight/coresight-config-file.h
 create mode 100644 samples/coresight/Makefile.host
 create mode 100644 samples/coresight/coresight-cfg-bufw.c
 create mode 100644 samples/coresight/coresight-cfg-bufw.h
 create mode 100644 samples/coresight/coresight-cfg-file-read.c
 create mode 100644 samples/coresight/coresight-cfg-filegen.c