This patchset introduces initial concepts in CoreSight system
configuration management support. to allow more detailed and complex
programming to be applied to CoreSight systems during trace capture.
Configurations consist of 2 elements:-
1) Features - programming combinations for devices, applied to a class of
device on the system (all ETMv4), or individual devices.
2) Configurations - a set of programmed features used when the named
configuration is selected.
Features and configurations are declared as a data table, a set of register,
resource and parameter requirements. Features and configurations are loaded
into the system by the virtual cs_syscfg device. This then matches features
to any registered devices and loads the feature into them.
Individual device classes that support feature and configuration register
with cs_syscfg.
Once loaded a configuration can be enabled for a specific trace run.
Configurations are registered with the perf cs_etm event as entries in
cs_etm/events. These can be selected on the perf command line as follows:-
perf record -e cs_etm/<config_name>/ ...
This patch set has one pre-loaded configuration and feature.
A named "strobing" feature is provided for ETMv4.
A named "autofdo" configuration is provided. This configuration enables
strobing on any ETM in used.
Thus the command:
perf record -e cs_etm/autofdo/ ...
will trace the supplied application while enabling the "autofdo" configuation
on each ETM as it is enabled by perf. This in turn will enable strobing for
the ETM - with default parameters. Parameters can be adjusted using configfs.
The sink used in the trace run will be automatically selected.
A configuration can supply up to 15 of preset parameter values, which will
subsitute in parameter values for any feature used in the configuration.
Selection of preset values as follows
perf record -e cs_etm/autofdo,preset=1/ ...
(valid presets 1-N, where N is the number supplied in the configuration, not
exceeding 15. preset=0 is the same as not selecting a preset.)
Applies to & tested against coresight/next-ETE-TRBE (5.12-rc3 base)
Changes since v6:
Fixed kernel test robot issues-
Reported-by: kernel test robot <lkp(a)intel.com>
Changes since v5:
1) Fix code style issues from auto-build reports, as
Reported-by: kernel test robot <lkp(a)intel.com>
2) Update comments to get consistent docs for API functions.
3) remove unused #define from autofdo example.
4) fix perf code style issues from patch 4 (Mathieu)
5) fix configfs code style issues from patch 9. (Mathieu)
Changes since v4: (based on comments from Matthieu and Suzuki).
No large functional changes - primarily code improvements and naming schema.
1) Updated entire set to ensure a consistent naming scheme was used for
variables and struct members that refer to the key objects in the system.
Suffixes _desc used for all references to feature and configuraion descriptors,
suffix _csdev used for all references to load feature and configs in the csdev
instances. (Mathieu & Suzuki).
2) Dropped the 'configurations' sub dir in cs_etm perf directories as superfluous
with the configfs containing the same information. (Mathieu).
3) Simplified perf handling code (suzuki)
4) Multiple simplifications and improvements for code readability (Matthieu
and Suzuki)
Changes since v3: (Primarily based on comments from Matthieu)
1) Locking mechanisms simplified.
2) Removed the possibility to enable features independently from
configurations.Only configurations can be enabled now. Simplifies programming
logic.
3) Configuration now uses an activate->enable mechanism. This means that perf
will activate a selected configuration at the start of a session (during
setup_aux), and disable at the end of a session (around free_aux)
The active configuration and associated features will be programmed into the
CoreSight device instances when they are enabled. This locks the configuration
into the system while in use. Parameters cannot be altered while this is
in place. This mechanism will be extended in future for dynamic load / unload
of configurations to prevent removal while in use.
4) Removed the custom bus / driver as un-necessary. A single device is
registered to own perf fs elements and configfs.
5) Various other minor issues addressed.
Changes since v2:
1) Added documentation file.
2) Altered cs_syscfg driver to no longer be coresight_device based, and moved
to its own custom bus to remove it from the main coresight bus. (Mathieu)
3) Added configfs support to inspect and control loaded configurations and
features. Allows listing of preset values (Yabin Cui)
4) Dropped sysfs support for adjusting feature parameters on the per device
basis, in favour of a single point adjustment in configfs that is pushed to all
device instances.
5) Altered how the config and preset command line options are handled in perf
and the drivers. (Mathieu and Suzuki).
6) Fixes for various issues and technical points (Mathieu, Yabin)
Changes since v1:
1) Moved preloaded configurations and features out of individual drivers.
2) Added cs_syscfg driver to manage configurations and features. Individual
drivers register with cs_syscfg indicating support for config, and provide
matching information that the system uses to load features into the drivers.
This allows individual drivers to be updated on an as needed basis - and
removes the need to consider devices that cannot benefit from configuration -
static replicators, funnels, tpiu.
3) Added perf selection of configuarations.
4) Rebased onto the coresight module loading set.
To follow in future revisions / sets:-
a) load of additional config and features by loadable module.
b) load of additional config and features by configfs
c) enhanced resource management for ETMv4 and checking features have sufficient
resources to be enabled.
d) ECT and CTI support for configuration and features.
Mike Leach (10):
coresight: syscfg: Initial coresight system configuration
coresight: syscfg: Add registration and feature loading for cs devices
coresight: config: Add configuration and feature generic functions
coresight: etm-perf: update to handle configuration selection
coresight: syscfg: Add API to activate and enable configurations
coresight: etm-perf: Update to activate selected configuration
coresight: etm4x: Add complex configuration handlers to etmv4
coresight: config: Add preloaded configurations
coresight: syscfg: Add initial configfs support
Documentation: coresight: Add documentation for CoreSight config
.../trace/coresight/coresight-config.rst | 244 ++++++
Documentation/trace/coresight/coresight.rst | 16 +
drivers/hwtracing/coresight/Makefile | 7 +-
.../hwtracing/coresight/coresight-cfg-afdo.c | 153 ++++
.../coresight/coresight-cfg-preload.c | 31 +
.../coresight/coresight-cfg-preload.h | 13 +
.../hwtracing/coresight/coresight-config.c | 275 ++++++
.../hwtracing/coresight/coresight-config.h | 253 ++++++
drivers/hwtracing/coresight/coresight-core.c | 12 +-
.../hwtracing/coresight/coresight-etm-perf.c | 150 +++-
.../hwtracing/coresight/coresight-etm-perf.h | 12 +-
.../hwtracing/coresight/coresight-etm4x-cfg.c | 182 ++++
.../hwtracing/coresight/coresight-etm4x-cfg.h | 30 +
.../coresight/coresight-etm4x-core.c | 38 +-
.../coresight/coresight-etm4x-sysfs.c | 3 +
.../coresight/coresight-syscfg-configfs.c | 396 +++++++++
.../coresight/coresight-syscfg-configfs.h | 45 +
.../hwtracing/coresight/coresight-syscfg.c | 804 ++++++++++++++++++
.../hwtracing/coresight/coresight-syscfg.h | 81 ++
include/linux/coresight.h | 7 +
20 files changed, 2716 insertions(+), 36 deletions(-)
create mode 100644 Documentation/trace/coresight/coresight-config.rst
create mode 100644 drivers/hwtracing/coresight/coresight-cfg-afdo.c
create mode 100644 drivers/hwtracing/coresight/coresight-cfg-preload.c
create mode 100644 drivers/hwtracing/coresight/coresight-cfg-preload.h
create mode 100644 drivers/hwtracing/coresight/coresight-config.c
create mode 100644 drivers/hwtracing/coresight/coresight-config.h
create mode 100644 drivers/hwtracing/coresight/coresight-etm4x-cfg.c
create mode 100644 drivers/hwtracing/coresight/coresight-etm4x-cfg.h
create mode 100644 drivers/hwtracing/coresight/coresight-syscfg-configfs.c
create mode 100644 drivers/hwtracing/coresight/coresight-syscfg-configfs.h
create mode 100644 drivers/hwtracing/coresight/coresight-syscfg.c
create mode 100644 drivers/hwtracing/coresight/coresight-syscfg.h
--
2.17.1
This patch series is to correct the pointer usages for the snapshot
mode.
Patch 01 allows the AUX trace in the free run mode and only syncs the
AUX ring buffer when taking snapshot.
Patch 02 is to polish code, it removes the redundant header maintained
in tmc-etr driver and directly uses pointer perf_output_handle::head.
Patch 03 removes the callback cs_etm_find_snapshot() which wrongly
calculates the buffer headers; we can simply use the perf's common
function __auxtrace_mmap__read() for headers calculation.
This patch can be cleanly applied on the mainline kernel with:
commit 97e5bf604b7a ("Merge branch 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu")
And it has been tested on Arm64 Juno board.
Leo Yan (3):
coresight: etm-perf: Correct buffer syncing for snapshot
coresight: tmc-etr: Use perf_output_handle::head for AUX ring buffer
perf cs-etm: Remove callback cs_etm_find_snapshot()
.../hwtracing/coresight/coresight-etm-perf.c | 30 +++-
.../hwtracing/coresight/coresight-etm-perf.h | 2 +
.../hwtracing/coresight/coresight-tmc-etr.c | 10 +-
tools/perf/arch/arm/util/cs-etm.c | 133 ------------------
4 files changed, 32 insertions(+), 143 deletions(-)
--
2.25.1
20% Discount on course fee when you Register as a group of 5 or more participants Foscore Development Center
Advanced Management Program Workshop from 30 August,2021 for 5 Days
Register for Online attendance Workshop
Register for On-site attendance workshop
Download PDF Calendar 2021 Workshops
Get Registration Form
VENUE: Nairobi Kenya Best Western Plus Meridian Murang'a Road
OFFICIAL EMAIL ADDRESS: training(a)fdc-k.org
Office Telephone: +254712260031
Register as a group of 5 or more participants and get 20% discount on course fee. Send us email to training(a)fdc-k.org or call +254712260031
Introduction
This Advanced Management Program will give you powerful insights and skills that can be applied instantly in
the workplace to lead in a complex, ever-evolving business environment.
Designed for senior executives and delivered by our world-class academic faculty, the course focuses on
building a high-performance organization and enhancing your personal leadership abilities.
Duration
5 Days
Who should attend?
This course is designed for:
• C-Suite Executives
• CEOs or managing directors
• General managers preparing for a C-suite role
• Senior executives in the second or third echelon of large organizations
• Regional directors and country managers
Course Objective
Build better teams
• Develop global teams and partnerships
• Strengthen cross-cultural mindsets
• Foster collaboration across functional and enterprise areas
Drive change for the future
• Lead change and innovation in complexity and disruption
• Engage in futures thinking and enterprise modelling
Harness your leadership power
• Build your leadership story and vision
• Activate your personal leadership style and self-awareness
• Analyze your relationship habits
• Communicate to persuade and influence
Influence optimal performance
• Improve decision-making across the enterprise
• Ensure levers, such as HR, marketing and strategy, deliver results
• Establish a culture of performance and accountability
• Motivate and develop your team to high performance
TOPICS TO BE COVERED
Topics covered include:
Course Outline
• Strategic Leadership module
• Organizational Leadership module[Type text]
• Personal Leadership module
• Leadership & Governance module
• Management Teams & Leadership module
General Notes All our courses can be Tailor-made to participants needs The participant must be conversant with English Presentations are well guided, practical exercise, web based tutorials and group work. Our facilitators are expert with more than 10years of experience. Upon completion of training the participant will be issued with Foscore development center certificate (FDC-K) Training will be done at Foscore development center (FDC-K) center in Nairobi Kenya. We also offer more than five participants training at requested location within Kenya, more than ten participant within east Africa and more than twenty participant all over the world. Course duration is flexible and the contents can be modified to fit any number of days. The course fee includes facilitation training materials, 2 coffee breaks, buffet lunch and a Certificate of successful completion of Training. Participants will be responsible for their own travel expenses and arrangements, airport transfers, visa application dinners, health/accident insurance and other personal expenses. Accommodation, pickup, freight booking and Visa processing arrangement, are done on request, at discounted prices. One year free Consultation and Coaching provided after the course. Register as a group of more than two and enjoy discount of (10% to 50%) plus free five hour adventure drive to the National game park. Payment should be done two week before commence of the training, to FOSCORE DEVELOPMENT CENTER account, so as to enable us prepare better for you. For any enquiry to:training@fdc-k.org or +254712260031
OTHER UPCOMING WORKSHOPS FOR JULY 2021 ( CLICK LINK TO REGISTER FOR THE WORKSHOP AS INDIVIDUAL OR GROUP)
GIS Data Collection, Analysis, Visualization and Mapping Workshop from 02 August,2021 for 10 Days
Strategic Communication Training For Managers And Executives Program Workshop from 02 August,2021 for 5 Days
Monitoring and Evaluation for Governance Workshop from 09 August,2021 for 5 Days
Training Course on Microsoft Access Workshop from 09 August,2021 for 5 Days
Grant management using Sun accounting system Workshop from 09 August,2021 for 10 Days
Financial Management, ERP systems, Accounting, Capital budgeting, Presentation design, Management, and Negotiation Workshop from 23 August,2021 for 5 Days
Mobile Data Collection using ODK & KoboToolBox for Monitoring and Evaluation Workshop from 23 August,2021 for 5 Days
Leadership and Diplomacy Training Workshop from 23 August,2021 for 5 Days
Monitoring and Evaluation for Food Security and Nutrition Workshop from 30 August,2021 for 10 Days
GIS and Data Analysis for WASH (Water Sanitation and Hygiene) Programmes Workshop from 30 August,2021 for 10 Days
Advanced Management Program Workshop from 30 August,2021 for 5 Days
Grant Management and Fundraising Workshop from 30 August,2021 for 5 Days
Gender Equity Achievement in Development Projects Workshop from 30 August,2021 for 5 Days
Looking forward to your participation,
FDC Result Based skills Development,
Regards,
FDC Training Team,
EMAIL: training(a)fdc-k.org
Office Telephone: +254712260031
Foscore Development Center
You received this email as a client of Foscore Development Center. Unsubscribe
FOESCO informa
Abierto el plazo de inscripción de CURSOS BONIFICABLES E-LEARNING dirigidos a empleados en activo o en situación de ERTE (Convocatoria JULIO 2021)
Plazo de inscripción hasta el 30 de Junio
Adjuntamos PDF con el listado de cursos disponibles.
Para más información por favor respondan a este mismo correo electrónico o bien llamen al teléfono 910323794.
Saludos cordiales.
FOESCO Formación Estatal Continua.
Departamento de Formación Bonificable.
Tel: 910 323 794
(Horario de 9h a 15h y de 17h a 20h de Lunes a Viernes)