Foundations for metric generation with Python
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest12 patches 0 repliesNew
- v512 patches 0 repliesSuperseded
- v412 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 12 patches | 1 reply | Superseded | |
| v2 | 12 patches | 2 replies | Superseded | |
| v1 | 12 patches | 0 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | perf jevents: Allow multiple metricgroups.json filestools/ | +2 | 0 replies | |
| 2/12 | perf jevents: Update metric constraint supporttools/ | +10 | 0 replies | |
| 3/12 | perf jevents: Add descriptions to metricgroup abstractiontools/ | +12 | 0 replies | |
| 4/12 | perf jevents: Allow metric groups not to be namedtools/ | +2 | 0 replies | |
| 5/12 | perf jevents: Support parsing negative exponentstools/ tools/ | +5 | 0 replies | |
| 6/12 | perf jevents: Term list fix in event parsingtools/ | +6 | 0 replies | |
| 7/12 | perf jevents: Add threshold expressions to Metrictools/ | +6 | 0 replies | |
| 8/12 | perf jevents: Move json encoding to its own functionstools/ | +22 | 0 replies | |
| 9/12 | perf jevents: Drop duplicate pending metricstools/ | +2 | 0 replies | |
| 10/12 | perf jevents: Skip optional metrics in metric group listtools/ | +5 | 0 replies | |
| 11/12 | perf jevents: Build support for generating metrics from pythontools/ tools/ tools/ +3 more | +172 | 0 replies | |
| 12/12 | perf jevents: Add load event json to verify and allow fallbackstools/ tools/ tools/ +2 more | +101 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 00/12] Foundations for metric generation with Python
Metrics in the perf tool come in via json. Json doesn't allow comments, line breaks, etc. making it an inconvenient way to write metrics. Further, it is useful to detect when writing a metric that the event specified is supported within the event json for a model.
These patches introduce infrastructure and fixes for the addition of metrics written in python for Arm64, AMD Zen and Intel CPUs. Later patches will introduce the metrics split apart by the vendor.
v6. Fix issue with '\-' escape not being '\\-' (reported-by Sandipan
Das <[email protected]>) which didn't alter the generated json.
v5. Rebase on top of legacy hardware/cache changes that now generate
events using python:
https://lore.kernel.org/lkml/[email protected]/
the v5 series is:
https://lore.kernel.org/lkml/[email protected]/
v4. Rebase and small Build/Makefile tweak
https://lore.kernel.org/lkml/[email protected]/
v3. Some code tidying, make the input directory a command line
argument, but no other functional or output changes.
https://lore.kernel.org/lkml/[email protected]/
v2. Fixes two type issues in the python code but no functional or
output changes.
https://lore.kernel.org/lkml/[email protected]/v1. https://lore.kernel.org/lkml/[email protected]/
Ian Rogers (12):
perf jevents: Allow multiple metricgroups.json files perf jevents: Update metric constraint support
perf jevents: Add descriptions to metricgroup abstraction perf jevents: Allow metric groups not to be named perf jevents: Support parsing negative exponents
perf jevents: Term list fix in event parsing
perf jevents: Add threshold expressions to Metric perf jevents: Move json encoding to its own functions perf jevents: Drop duplicate pending metrics
perf jevents: Skip optional metrics in metric group list perf jevents: Build support for generating metrics from python perf jevents: Add load event json to verify and allow fallbacks
tools/perf/.gitignore | 5 + tools/perf/Makefile.perf | 2 + tools/perf/pmu-events/Build | 51 +++++++- tools/perf/pmu-events/amd_metrics.py | 42 +++++++ tools/perf/pmu-events/arm64_metrics.py | 43 +++++++ tools/perf/pmu-events/intel_metrics.py | 42 +++++++ tools/perf/pmu-events/jevents.py | 7 +- tools/perf/pmu-events/metric.py | 168 +++++++++++++++++++++---- tools/perf/pmu-events/metric_test.py | 4 + 9 files changed, 334 insertions(+), 30 deletions(-) create mode 100755 tools/perf/pmu-events/amd_metrics.py create mode 100755 tools/perf/pmu-events/arm64_metrics.py create mode 100755 tools/perf/pmu-events/intel_metrics.py
Signature · 1 line
2.51.0.338.gd7d06c2dae-goog