From: Leo Yan Date: Wed, 12 Nov 2025 18:24:40 +0000 (+0000) Subject: perf arm_spe: Report memset and memcpy in records X-Git-Tag: v6.19-rc1~61^2~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4b61de44f34589d5233f3e7dc445e06df6bb388;p=thirdparty%2Fkernel%2Flinux.git perf arm_spe: Report memset and memcpy in records Expose memset and memcpy related info in records. Signed-off-by: Leo Yan Reviewed-by: Ian Rogers Reviewed-by: James Clark Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c index 5b214fc4ca9f6..6f0390d408959 100644 --- a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c +++ b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c @@ -224,6 +224,10 @@ static int arm_spe_read_record(struct arm_spe_decoder *decoder) decoder->record.op |= ARM_SPE_OP_PRED; if (payload & SPE_OP_PKT_SVE_SG) decoder->record.op |= ARM_SPE_OP_SG; + } else if (SPE_OP_PKT_LDST_SUBCLASS_MEMCPY(payload)) { + decoder->record.op |= ARM_SPE_OP_MEMCPY; + } else if (SPE_OP_PKT_LDST_SUBCLASS_MEMSET(payload)) { + decoder->record.op |= ARM_SPE_OP_MEMSET; } break; diff --git a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.h b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.h index d14cf6b95507b..3f4dae589c062 100644 --- a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.h +++ b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.h @@ -45,6 +45,8 @@ enum arm_spe_2nd_op_ldst { ARM_SPE_OP_SIMD_FP = 1 << 11, ARM_SPE_OP_SVE = 1 << 12, ARM_SPE_OP_MTE_TAG = 1 << 13, + ARM_SPE_OP_MEMCPY = 1 << 14, + ARM_SPE_OP_MEMSET = 1 << 15, /* Assisted information for memory / SIMD */ ARM_SPE_OP_LD = 1 << 20,