[PATCH v4 0/3] perf tool: 'config3' attribute support
From: Rob Herring
Date: Tue Oct 04 2022 - 15:12:48 EST
This series is a fix to allow unknown 'configN' attrs and then extends
perf tool to support a new config3 attr.
The config3 support is RFC for context as the kernel side support[1] is
not yet accepted. Patch 1 is intended for 6.1.
[1] https://lore.kernel.org/all/20220825-arm-spe-v8-7-v1-0-c75b8d92e692@xxxxxxxxxx/
Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
Changes in v4:
- Fix event parsing test segfault
- Add 'config3' in event parsing tests
- Link to v3: https://lore.kernel.org/r/20220914-arm-perf-tool-spe1-2-v2-v3-0-8189fc04dcc6@xxxxxxxxxx
---
Rob Herring (3):
perf: Skip and warn on unknown format 'configN' attrs
perf tools: Sync perf_event_attr::config3 addition
perf: Add support for perf_event_attr::config3
include/uapi/linux/perf_event.h | 3 +++
tools/include/uapi/linux/perf_event.h | 3 +++
tools/perf/tests/parse-events.c | 13 ++++++++++++-
tools/perf/util/parse-events.c | 9 +++++++++
tools/perf/util/parse-events.h | 1 +
tools/perf/util/parse-events.l | 1 +
tools/perf/util/pmu.c | 20 ++++++++++++++++++++
tools/perf/util/pmu.h | 3 +++
tools/perf/util/pmu.l | 2 --
tools/perf/util/pmu.y | 15 ++++-----------
10 files changed, 56 insertions(+), 14 deletions(-)
---
base-commit: 1c23f9e627a7b412978b4e852793c5e3c3efc555
change-id: 20220914-arm-perf-tool-spe1-2-v2-cab789c5d598
Best regards,
--
Rob Herring <robh@xxxxxxxxxx>