Commit 485c5bc5 authored by Jing Zhang's avatar Jing Zhang Committed by Arnaldo Carvalho de Melo
Browse files

perf vendor events arm64: Add instruction mix metrics for neoverse-n2-v2



Add instruction mix related metrics.

Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Signed-off-by: default avatarJing Zhang <renyu.zj@linux.alibaba.com>
Acked-by: default avatarIan Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrew Kilroy <andrew.kilroy@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
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: Peter Zijlstra <peterz@infradead.org>
Cc: Shuai Xue <xueshuai@linux.alibaba.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: Zhuo Song <zhuo.song@linux.alibaba.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/1673940573-90503-10-git-send-email-renyu.zj@linux.alibaba.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4befa5cf
Loading
Loading
Loading
Loading
+63 −0
Original line number Diff line number Diff line
@@ -206,5 +206,68 @@
        "MetricGroup": "PEutilization",
        "MetricName": "cpu_utilization",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "LD_SPEC / INST_SPEC",
        "BriefDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "load_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "ST_SPEC / INST_SPEC",
        "BriefDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "store_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "DP_SPEC / INST_SPEC",
        "BriefDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "data_process_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "ASE_SPEC / INST_SPEC",
        "BriefDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "advanced_simd_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "VFP_SPEC / INST_SPEC",
        "BriefDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "float_point_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "CRYPTO_SPEC / INST_SPEC",
        "BriefDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "crypto_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "BR_IMMED_SPEC / INST_SPEC",
        "BriefDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "branch_immed_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "BR_RETURN_SPEC / INST_SPEC",
        "BriefDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "branch_return_spec_rate",
        "ScaleUnit": "100%"
    },
    {
        "MetricExpr": "BR_INDIRECT_SPEC / INST_SPEC",
        "BriefDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed",
        "MetricGroup": "InstructionMix",
        "MetricName": "branch_indirect_spec_rate",
        "ScaleUnit": "100%"
    }
]