perf arm_spe: Report GCS in record

Report GCS related info in records.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
Leo Yan 2025-11-12 18:24:41 +00:00 committed by Namhyung Kim
parent d4b61de44f
commit d67835cd5d
2 changed files with 6 additions and 0 deletions

View File

@ -228,6 +228,10 @@ static int arm_spe_read_record(struct arm_spe_decoder *decoder)
decoder->record.op |= ARM_SPE_OP_MEMCPY;
} else if (SPE_OP_PKT_LDST_SUBCLASS_MEMSET(payload)) {
decoder->record.op |= ARM_SPE_OP_MEMSET;
} else if (SPE_OP_PKT_LDST_SUBCLASS_GCS(payload)) {
decoder->record.op |= ARM_SPE_OP_GCS;
if (payload & SPE_OP_PKT_GCS_COMM)
decoder->record.op |= ARM_SPE_OP_COMM;
}
break;

View File

@ -47,6 +47,7 @@ enum arm_spe_2nd_op_ldst {
ARM_SPE_OP_MTE_TAG = 1 << 13,
ARM_SPE_OP_MEMCPY = 1 << 14,
ARM_SPE_OP_MEMSET = 1 << 15,
ARM_SPE_OP_GCS = 1 << 16,
/* Assisted information for memory / SIMD */
ARM_SPE_OP_LD = 1 << 20,
@ -57,6 +58,7 @@ enum arm_spe_2nd_op_ldst {
ARM_SPE_OP_DP = 1 << 25, /* Data processing */
ARM_SPE_OP_PRED = 1 << 26, /* Predicated */
ARM_SPE_OP_SG = 1 << 27, /* Gather/Scatter */
ARM_SPE_OP_COMM = 1 << 28, /* Common */
};
enum arm_spe_2nd_op_branch {