perf vendor events arm64: Update N2 and V2 metrics and events using Arm telemetry...
authorJames Clark <james.clark@arm.com>
Wed, 16 Aug 2023 11:47:48 +0000 (12:47 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Aug 2023 17:12:50 +0000 (14:12 -0300)
commit4473949074c35072f598bd525ae51d5455f05745
tree4b2630e5772e52d37de57cf6866f34f1d64f1ed8
parentd43f5491210197196458c1454f2be0eb66d3e4d1
perf vendor events arm64: Update N2 and V2 metrics and events using Arm telemetry repo

Apart from some slight naming and grouping differences, the new metrics
are functionally the same as the existing ones. Any missing metrics were
manually appended to the end of the auto generated file.

For the events, the new data includes descriptions that may have product
specific details and new groupings that will be consistent with other
products.

After generating the metrics from the telemetry repo [1], the following
manual steps were performed:

 * Change the topdown expressions to compare on CPUID and use
   #slots so that the same data can be shared between N2 and V2. Apart
   from these modifications, the expressions now match more closely with
   the Arm telemetry data which will hopefully make future updates
   easier.

 * Append some metrics from the old N2/V2 data that aren't present in
   the telemetry data. These will possibly be added to the
   telemetry-solution repo at a later time:

    l3d_cache_mpki, l3d_cache_miss_rate, branch_pki, ipc_rate, spec_ipc,
    retired_rate, wasted_rate, branch_immed_spec_rate,
    branch_return_spec_rate, branch_indirect_spec_rate

[1]: https://gitlab.arm.com/telemetry-solution/telemetry-solution/-/blob/main/data/pmu/cpu/neoverse/neoverse-n2.json

Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Haixin Yu <yuhaixin.yhx@linux.alibaba.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nick Forrington <nick.forrington@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Sohom Datta <sohomdatta1@gmail.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230816114841.1679234-7-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
22 files changed:
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/branch.json [deleted file]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/bus.json
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/cache.json [deleted file]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/exception.json
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/fp_operation.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/general.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/instruction.json [deleted file]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/l1d_cache.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/l1i_cache.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/l2_cache.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/l3_cache.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/ll_cache.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/memory.json
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/pipeline.json [deleted file]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/retired.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/spe.json
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/spec_operation.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/stall.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/sve.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/tlb.json [new file with mode: 0644]
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/trace.json