shadow metric clean up and improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest51 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/51 | perf tools: Ensure evsel name is initializedtools/ | +1 | 1 reply | |
| 2/51 | perf metrics: Improve variable namestools/ | +22 | 0 replies | |
| 3/51 | perf pmu-events: Remove aggr_mode from pmu_eventtools/ tools/ tools/ | +1 | 0 replies | |
| 4/51 | perf pmu-events: Change aggr_mode to be an enumtools/ tools/ tools/ | +13 | 0 replies | |
| 5/51 | perf pmu-events: Change deprecated to be a booltools/ tools/ tools/ +1 more | +10 | 0 replies | |
| 6/51 | perf pmu-events: Change perpkg to be a booltools/ tools/ tools/ +1 more | +8 | 0 replies | |
| 7/51 | perf expr: Make the online topology accessible globallytools/ tools/ tools/ +3 more | +38 | 0 replies | |
| 8/51 | perf pmu-events: Make the metric_constraint an enumtools/ tools/ tools/ | +52 | 0 replies | |
| 9/51 | perf pmu-events: Don't '\0' terminate enum valuestools/ | +18 | 0 replies | |
| 10/51 | perf vendor events intel: Refresh alderlake eventstools/ tools/ tools/ +5 more | +1902 | 0 replies | |
| 11/51 | perf vendor events intel: Refresh alderlake-n metricstools/ tools/ | +454 | 0 replies | |
| 12/51 | perf vendor events intel: Refresh broadwell metricstools/ | +805 | 0 replies | |
| 13/51 | perf vendor events intel: Refresh broadwellde metricstools/ | +785 | 0 replies | |
| 14/51 | perf vendor events intel: Refresh broadwellx metricstools/ tools/ tools/ +1 more | +873 | 0 replies | |
| 15/51 | perf vendor events intel: Refresh cascadelakex eventstools/ tools/ tools/ +5 more | +1236 | 0 replies | |
| 16/51 | perf vendor events intel: Add graniterapids eventstools/ tools/ tools/ +4 more | +396 | 0 replies | |
| 17/51 | perf vendor events intel: Refresh haswell metricstools/ | +687 | 0 replies | |
| 18/51 | perf vendor events intel: Refresh haswellx metricstools/ | +679 | 0 replies | |
| 19/51 | perf vendor events intel: Refresh icelake eventstools/ tools/ tools/ +3 more | +1235 | 0 replies | |
| 20/51 | perf vendor events intel: Refresh icelakex metricstools/ tools/ tools/ +1 more | +1100 | 0 replies | |
| 21/51 | perf vendor events intel: Refresh ivybridge metricstools/ | +712 | 0 replies | |
| 22/51 | perf vendor events intel: Refresh ivytown metricstools/ | +736 | 0 replies | |
| 23/51 | perf vendor events intel: Refresh jaketown eventstools/ tools/ tools/ +8 more | +409 | 0 replies | |
| 24/51 | perf vendor events intel: Refresh knightslanding eventstools/ tools/ tools/ +1 more | +56 | 0 replies | |
| 25/51 | perf vendor events intel: Refresh sandybridge eventstools/ tools/ tools/ +3 more | +344 | 0 replies | |
| 26/51 | perf vendor events intel: Refresh sapphirerapids eventstools/ tools/ tools/ +4 more | +1304 | 0 replies | |
| 27/51 | perf vendor events intel: Refresh silvermont eventstools/ tools/ tools/ | +3 | 0 replies | |
| 28/51 | perf vendor events intel: Refresh skylake eventstools/ tools/ tools/ +4 more | +1115 | 0 replies | |
| 29/51 | perf vendor events intel: Refresh skylakex metricstools/ tools/ tools/ +5 more | +1167 | 0 replies | |
| 30/51 | perf vendor events intel: Refresh tigerlake eventstools/ tools/ tools/ +2 more | +1198 | 0 replies | |
| 31/51 | perf vendor events intel: Refresh westmereep-dp eventstools/ tools/ tools/ | +3 | 0 replies | |
| 32/51 | perf jevents: Add rand support to metricstools/ | +7 | 0 replies | |
| 33/51 | perf jevent: Parse metric thresholdstools/ tools/ | +7 | 0 replies | |
| 34/51 | perf pmu-events: Test parsing metric thresholds with the fake PMUtools/ | +22 | 0 replies | |
| 35/51 | perf list: Support for printing metric thresholdstools/ tools/ tools/ | +16 | 0 replies | |
| 36/51 | perf metric: Compute and print threshold valuestools/ tools/ tools/ | +38 | 0 replies | |
| 37/51 | perf expr: More explicit NAN handlingtools/ | +10 | 0 replies | |
| 38/51 | perf metric: Add --metric-no-threshold optiontools/ tools/ tools/ +5 more | +49 | 0 replies | |
| 39/51 | perf stat: Add TopdownL1 metric as a default if presenttools/ tools/ tools/ +2 more | +19 | 5 replies | |
| 40/51 | perf stat: Implement --topdown using json metricstools/ tools/ tools/ +3 more | +58 | 0 replies | |
| 41/51 | perf stat: Remove topdown event special handlingtools/ tools/ tools/ | +0 | 0 replies | |
| 42/51 | perf doc: Refresh topdown documentationtools/ tools/ | +44 | 0 replies | |
| 43/51 | perf stat: Remove hard coded transaction eventstools/ tools/ tools/ +1 more | +11 | 0 replies | |
| 44/51 | perf stat: Use metrics for --smi-costtools/ tools/ tools/ +1 more | +11 | 0 replies | |
| 45/51 | perf stat: Remove perf_stat_evsel_idtools/ tools/ | +0 | 0 replies | |
| 46/51 | perf stat: Move enums from headertools/ tools/ | +25 | 0 replies | |
| 47/51 | perf stat: Hide runtime_stattools/ tools/ tools/ +5 more | +90 | 0 replies | |
| 48/51 | perf stat: Add cpu_aggr_map for looptools/ tools/ tools/ +2 more | +132 | 0 replies | |
| 49/51 | perf metric: Directly use counts rather than saved_valuetools/ tools/ tools/ | +23 | 0 replies | |
| 50/51 | perf stat: Use counts rather than saved_valuetools/ tools/ | +270 | 2 replies | |
| 51/51 | perf stat: Remove saved_value/runtime_stattools/ tools/ tools/ +4 more | +0 | 0 replies |
Reviews trailers per patch
1 of 51 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Kan Liang | Kajol Jain |
|---|---|---|
| Series | R-b | |
| 1/51 | R-b | |
| 2/51 | ||
| 3/51 | ||
| 4/51 | ||
| 5/51 | ||
| 6/51 | ||
| 7/51 | ||
| 8/51 | ||
| 9/51 | ||
| 10/51 | ||
| 11/51 | ||
| 12/51 | ||
| 13/51 | ||
| 14/51 | ||
| 15/51 | ||
| 16/51 | ||
| 17/51 | ||
| 18/51 | ||
| 19/51 | ||
| 20/51 | ||
| 21/51 | ||
| 22/51 | ||
| 23/51 | ||
| 24/51 | ||
| 25/51 | ||
| 26/51 | ||
| 27/51 | ||
| 28/51 | ||
| 29/51 | ||
| 30/51 | ||
| 31/51 | ||
| 32/51 | ||
| 33/51 | ||
| 34/51 | ||
| 35/51 | ||
| 36/51 | ||
| 37/51 | ||
| 38/51 | ||
| 39/51 | ||
| 40/51 | ||
| 41/51 | ||
| 42/51 | ||
| 43/51 | ||
| 44/51 | ||
| 45/51 | ||
| 46/51 | ||
| 47/51 | ||
| 48/51 | ||
| 49/51 | ||
| 50/51 | ||
| 51/51 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 00/51] shadow metric clean up and improvements
Recently the shadow stat metrics broke due to repeated aggregation and a quick fix was applied:
https://lore.kernel.org/lkml/[email protected]/
This is the longer fix but one that comes with some extras. To avoid fixing issues for hard coded metrics, the topdown, SMI cost and transaction flags are moved into json metrics. A side effect of this is that TopdownL1 metrics will now be displayed when supported, if no "perf stat" events are specified.
Another fix included here is for event grouping as raised in:
https://lore.kernel.org/lkml/CA+icZUU_ew7pzWJJZLbj1xsU6MQTPrj8tkFfDhNdTDRQfGUBMQ@mail.gmail.com/
Metrics are now tagged with NMI and SMT flags, meaning that the events shouldn't be grouped if the NMI watchdog is enabled or SMT is enabled.
Given the two issues, the metrics are re-generated and the patches also include the latest Intel vendor events. The changes to the metric generation code can be seen in:
https://github.com/intel/perfmon/pull/56
Hard coded metrics support thresholds, the patches add this ability to json metrics so that the hard coded metrics can be removed. Migrate remaining hard coded metrics to looking up counters from the evlist/aggregation count. Finally, get rid of the saved_value logic and thereby look to fix the aggregation issues.
Some related fix ups and code clean ups are included in the changes, in particular to aid with the code's readability and to keep topdown documentation in sync.
Ian Rogers (51):
perf tools: Ensure evsel name is initialized
perf metrics: Improve variable names
perf pmu-events: Remove aggr_mode from pmu_event
perf pmu-events: Change aggr_mode to be an enum
perf pmu-events: Change deprecated to be a bool
perf pmu-events: Change perpkg to be a bool
perf expr: Make the online topology accessible globally perf pmu-events: Make the metric_constraint an enum perf pmu-events: Don't '\0' terminate enum values
perf vendor events intel: Refresh alderlake events perf vendor events intel: Refresh alderlake-n metrics perf vendor events intel: Refresh broadwell metrics perf vendor events intel: Refresh broadwellde metrics perf vendor events intel: Refresh broadwellx metrics perf vendor events intel: Refresh cascadelakex events perf vendor events intel: Add graniterapids events perf vendor events intel: Refresh haswell metrics
perf vendor events intel: Refresh haswellx metrics perf vendor events intel: Refresh icelake events
perf vendor events intel: Refresh icelakex metrics perf vendor events intel: Refresh ivybridge metrics perf vendor events intel: Refresh ivytown metrics
perf vendor events intel: Refresh jaketown events
perf vendor events intel: Refresh knightslanding events perf vendor events intel: Refresh sandybridge events perf vendor events intel: Refresh sapphirerapids events perf vendor events intel: Refresh silvermont events perf vendor events intel: Refresh skylake events
perf vendor events intel: Refresh skylakex metrics perf vendor events intel: Refresh tigerlake events perf vendor events intel: Refresh westmereep-dp events perf jevents: Add rand support to metrics
perf jevent: Parse metric thresholds
perf pmu-events: Test parsing metric thresholds with the fake PMU perf list: Support for printing metric thresholds
perf metric: Compute and print threshold values
perf expr: More explicit NAN handling
perf metric: Add --metric-no-threshold option
perf stat: Add TopdownL1 metric as a default if present perf stat: Implement --topdown using json metrics
perf stat: Remove topdown event special handling
perf doc: Refresh topdown documentation
perf stat: Remove hard coded transaction events
perf stat: Use metrics for --smi-cost
perf stat: Remove perf_stat_evsel_id
perf stat: Move enums from header
perf stat: Hide runtime_stat
perf stat: Add cpu_aggr_map for loop
perf metric: Directly use counts rather than saved_value perf stat: Use counts rather than saved_value
perf stat: Remove saved_value/runtime_stat
tools/perf/Documentation/perf-stat.txt | 27 +- tools/perf/Documentation/topdown.txt | 70 +- tools/perf/arch/powerpc/util/header.c | 2 +- tools/perf/arch/x86/util/evlist.c | 6 +- tools/perf/arch/x86/util/topdown.c | 78 +- tools/perf/arch/x86/util/topdown.h | 1 - tools/perf/builtin-list.c | 13 +- tools/perf/builtin-script.c | 9 +- tools/perf/builtin-stat.c | 233 +- .../arch/x86/alderlake/adl-metrics.json | 3190 ++++++++++------- .../pmu-events/arch/x86/alderlake/cache.json | 36 +- .../arch/x86/alderlake/floating-point.json | 27 + .../arch/x86/alderlake/frontend.json | 9 + .../pmu-events/arch/x86/alderlake/memory.json | 3 +- .../arch/x86/alderlake/pipeline.json | 14 +- .../arch/x86/alderlake/uncore-other.json | 28 +- .../arch/x86/alderlaken/adln-metrics.json | 811 +++-- .../arch/x86/broadwell/bdw-metrics.json | 1439 ++++---- .../arch/x86/broadwellde/bdwde-metrics.json | 1405 ++++---- .../arch/x86/broadwellx/bdx-metrics.json | 1626 +++++---- .../arch/x86/broadwellx/uncore-cache.json | 74 +- .../x86/broadwellx/uncore-interconnect.json | 64 +- .../arch/x86/broadwellx/uncore-other.json | 4 +- .../arch/x86/cascadelakex/cache.json | 24 +- .../arch/x86/cascadelakex/clx-metrics.json | 2198 ++++++------ .../arch/x86/cascadelakex/frontend.json | 8 +- .../arch/x86/cascadelakex/pipeline.json | 16 + .../arch/x86/cascadelakex/uncore-memory.json | 18 +- .../arch/x86/cascadelakex/uncore-other.json | 120 +- .../arch/x86/cascadelakex/uncore-power.json | 8 +- .../arch/x86/graniterapids/cache.json | 54 + .../arch/x86/graniterapids/frontend.json | 10 + .../arch/x86/graniterapids/memory.json | 174 + .../arch/x86/graniterapids/other.json | 29 + .../arch/x86/graniterapids/pipeline.json | 102 + .../x86/graniterapids/virtual-memory.json | 26 + .../arch/x86/haswell/hsw-metrics.json | 1220 ++++--- .../arch/x86/haswellx/hsx-metrics.json | 1397 ++++---- .../pmu-events/arch/x86/icelake/cache.json | 16 + .../arch/x86/icelake/floating-point.json | 31 + .../arch/x86/icelake/icl-metrics.json | 1932 +++++----- .../pmu-events/arch/x86/icelake/pipeline.json | 23 +- .../arch/x86/icelake/uncore-other.json | 56 + .../arch/x86/icelakex/icx-metrics.json | 2153 +++++------ .../arch/x86/icelakex/uncore-memory.json | 2 +- .../arch/x86/icelakex/uncore-other.json | 4 +- .../arch/x86/ivybridge/ivb-metrics.json | 1270 ++++--- .../arch/x86/ivytown/ivt-metrics.json | 1311 ++++--- .../pmu-events/arch/x86/jaketown/cache.json | 6 +- .../arch/x86/jaketown/floating-point.json | 2 +- .../arch/x86/jaketown/frontend.json | 12 +- .../arch/x86/jaketown/jkt-metrics.json | 602 ++-- .../arch/x86/jaketown/pipeline.json | 2 +- .../arch/x86/jaketown/uncore-cache.json | 22 +- .../x86/jaketown/uncore-interconnect.json | 74 +- .../arch/x86/jaketown/uncore-memory.json | 4 +- .../arch/x86/jaketown/uncore-other.json | 22 +- .../arch/x86/jaketown/uncore-power.json | 8 +- .../arch/x86/knightslanding/cache.json | 94 +- .../arch/x86/knightslanding/pipeline.json | 8 +- .../arch/x86/knightslanding/uncore-other.json | 8 +- tools/perf/pmu-events/arch/x86/mapfile.csv | 29 +- .../arch/x86/sandybridge/cache.json | 8 +- .../arch/x86/sandybridge/floating-point.json | 2 +- .../arch/x86/sandybridge/frontend.json | 12 +- .../arch/x86/sandybridge/pipeline.json | 2 +- .../arch/x86/sandybridge/snb-metrics.json | 601 ++-- .../arch/x86/sapphirerapids/cache.json | 24 +- .../x86/sapphirerapids/floating-point.json | 32 + .../arch/x86/sapphirerapids/frontend.json | 8 + .../arch/x86/sapphirerapids/pipeline.json | 19 +- .../arch/x86/sapphirerapids/spr-metrics.json | 2283 ++++++------ .../arch/x86/sapphirerapids/uncore-other.json | 60 + .../arch/x86/silvermont/frontend.json | 2 +- .../arch/x86/silvermont/pipeline.json | 2 +- .../pmu-events/arch/x86/skylake/cache.json | 25 +- .../pmu-events/arch/x86/skylake/frontend.json | 8 +- .../pmu-events/arch/x86/skylake/other.json | 1 + .../pmu-events/arch/x86/skylake/pipeline.json | 16 + .../arch/x86/skylake/skl-metrics.json | 1877 ++++++---- .../arch/x86/skylake/uncore-other.json | 1 + .../pmu-events/arch/x86/skylakex/cache.json | 8 +- .../arch/x86/skylakex/frontend.json | 8 +- .../arch/x86/skylakex/pipeline.json | 16 + .../arch/x86/skylakex/skx-metrics.json | 2097 +++++------ .../arch/x86/skylakex/uncore-memory.json | 2 +- .../arch/x86/skylakex/uncore-other.json | 96 +- .../arch/x86/skylakex/uncore-power.json | 6 +- .../arch/x86/tigerlake/floating-point.json | 31 + .../arch/x86/tigerlake/pipeline.json | 18 + .../arch/x86/tigerlake/tgl-metrics.json | 1942 +++++----- .../arch/x86/tigerlake/uncore-other.json | 28 +- .../arch/x86/westmereep-dp/cache.json | 2 +- .../x86/westmereep-dp/virtual-memory.json | 2 +- tools/perf/pmu-events/jevents.py | 58 +- tools/perf/pmu-events/metric.py | 8 +- tools/perf/pmu-events/pmu-events.h | 35 +- tools/perf/tests/expand-cgroup.c | 3 +- tools/perf/tests/expr.c | 7 +- tools/perf/tests/parse-metric.c | 21 +- tools/perf/tests/pmu-events.c | 49 +- tools/perf/util/cpumap.h | 3 + tools/perf/util/cputopo.c | 14 + tools/perf/util/cputopo.h | 5 + tools/perf/util/evsel.h | 2 +- tools/perf/util/expr.c | 16 +- tools/perf/util/expr.y | 12 +- tools/perf/util/metricgroup.c | 178 +- tools/perf/util/metricgroup.h | 5 +- tools/perf/util/pmu.c | 17 +- tools/perf/util/print-events.h | 1 + tools/perf/util/smt.c | 11 +- tools/perf/util/smt.h | 12 +- tools/perf/util/stat-display.c | 117 +- tools/perf/util/stat-shadow.c | 1287 ++----- tools/perf/util/stat.c | 74 - tools/perf/util/stat.h | 96 +- tools/perf/util/synthetic-events.c | 2 +- tools/perf/util/topdown.c | 68 +- tools/perf/util/topdown.h | 11 +- 120 files changed, 18025 insertions(+), 15590 deletions(-) create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/cache.json create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/frontend.json create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/memory.json create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/other.json create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/pipeline.json create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/virtual-memory.json
Signature · 1 line
2.39.2.637.g21b0678d19-goog