From nobody Sun Dec 14 06:37:02 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8B142DCF57; Fri, 12 Dec 2025 12:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765543459; cv=none; b=LAXw3NF4uk2oEEGP1Wj2VMhuw1yYCufpUE/oL4yKYV5NMFQGga7idMNvU5046sInRm5xOECt3Q7Kkx9gr1eo0zKqGWEOt7OZhtpETyKXHm4kiel28rBI06wCreISqtZZDKF4cK61mAhbyT8dsWvrwfV1YCyohP9tIoDrsEVNO2g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765543459; c=relaxed/simple; bh=sp+2q6qeoU0+pjYU9fNG2ACBWigW5kP1p4wDjC597s0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lSubseOyyLR0nqubt0DuL3cx3Z6pb/cAG7j4TXu+WJ7WpALWuijfeBpg/+q4yphKDUH1wItkQeUyVLEXfPUQZdlA/boQ3Jw/slpvV0uBi6zm6kN4e8m66G6CZi8H6eZHqkCCdIBOh1E2NTLL5fqLik0JvWyMjM75ul1mnDCRh/0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A6C81063; Fri, 12 Dec 2025 04:44:10 -0800 (PST) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5983A3F762; Fri, 12 Dec 2025 04:44:15 -0800 (PST) From: Leo Yan Date: Fri, 12 Dec 2025 12:44:03 +0000 Subject: [PATCH 1/2] perf mem: Simplify Arm SPE event config Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251212-perf_c2c_update_event-v1-1-29a26c7a949b@arm.com> References: <20251212-perf_c2c_update_event-v1-0-29a26c7a949b@arm.com> In-Reply-To: <20251212-perf_c2c_update_event-v1-0-29a26c7a949b@arm.com> To: Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , James Clark , Mike Leach , Will Deacon , Mark Rutland , Jiri Olsa , Adrian Hunter , Al Grant Cc: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765543453; l=1229; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=sp+2q6qeoU0+pjYU9fNG2ACBWigW5kP1p4wDjC597s0=; b=WtTBLg90hz4iozrcKt/DR2JMlbDo5seVwB0gJbLVV0qhcSov+byYDDyNoEyXcWhI2r4ETJVrm RLh5i2/PnzyC6mySa4WrVn0Yv1krPhLQ894CyHDDjowSTMbFaN/xKH5 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Since configuration fields default to zero, the zero assignments are redundant, remove them. Signed-off-by: Leo Yan Reviewed-by: James Clark --- tools/perf/arch/arm64/util/mem-events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/arch/arm64/util/mem-events.c b/tools/perf/arch/arm6= 4/util/mem-events.c index 9f8da7937255cc9b14c3c58a1119b40bd0c76f6b..eaf00e0609c6c1b7d939a02fe37= 94471d1ed119b 100644 --- a/tools/perf/arch/arm64/util/mem-events.c +++ b/tools/perf/arch/arm64/util/mem-events.c @@ -6,7 +6,7 @@ #define E(t, n, s, l, a) { .tag =3D t, .name =3D n, .event_name =3D s, .ld= lat =3D l, .aux_event =3D a } =20 struct perf_mem_event perf_mem_events_arm[PERF_MEM_EVENTS__MAX] =3D { - E("spe-load", "%s/ts_enable=3D1,pa_enable=3D1,load_filter=3D1,store_filte= r=3D0,min_latency=3D%u/", NULL, true, 0), - E("spe-store", "%s/ts_enable=3D1,pa_enable=3D1,load_filter=3D0,store_filt= er=3D1/", NULL, false, 0), + E("spe-load", "%s/ts_enable=3D1,pa_enable=3D1,load_filter=3D1,min_latency= =3D%u/", NULL, true, 0), + E("spe-store", "%s/ts_enable=3D1,pa_enable=3D1,store_filter=3D1/", NULL= , false, 0), E("spe-ldst", "%s/ts_enable=3D1,pa_enable=3D1,load_filter=3D1,store_filte= r=3D1,min_latency=3D%u/", NULL, true, 0), }; --=20 2.34.1 From nobody Sun Dec 14 06:37:02 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F24883233ED; Fri, 12 Dec 2025 12:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765543461; cv=none; b=jnyW+rEj5BdhqAhkvxqwRkC7hL7Dc/T0SDty91MRqYQKNO2+F7Iq7aypEGFOAKdPX3NqtgD6m/7e9z/Qz3/911JfS74I8gGVzrkSwxXjH4CWA2G/4g6jgEa4p4OTVWV0edOqnKxzdJUgES4QnmrWU/GNuAEN4JrkeOmA+NUjpKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765543461; c=relaxed/simple; bh=xjFry3+Qwb2If5ls7tOuCo2U0koPfIRw3LR2ftk6/dI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mngRblxu7CWo9YGqoFRb9Sy6s27mpNI/ij1r04+BSxiSVdD6ouCrnD3qNZFGiVmaFJ5q94scLyB/yWPz9cA6ILYd613EV/Vrfzeh0qwddbludLhXDzgAL5IudWKCtFKxin0A65H9f0dcWQDyOkYI11ZI0aiAT3zwBz/R1esceeA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 328EFFEC; Fri, 12 Dec 2025 04:44:12 -0800 (PST) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 820E23F762; Fri, 12 Dec 2025 04:44:17 -0800 (PST) From: Leo Yan Date: Fri, 12 Dec 2025 12:44:04 +0000 Subject: [PATCH 2/2] perf c2c: Update documentation for Arm SPE events Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251212-perf_c2c_update_event-v1-2-29a26c7a949b@arm.com> References: <20251212-perf_c2c_update_event-v1-0-29a26c7a949b@arm.com> In-Reply-To: <20251212-perf_c2c_update_event-v1-0-29a26c7a949b@arm.com> To: Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , James Clark , Mike Leach , Will Deacon , Mark Rutland , Jiri Olsa , Adrian Hunter , Al Grant Cc: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765543453; l=1053; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=xjFry3+Qwb2If5ls7tOuCo2U0koPfIRw3LR2ftk6/dI=; b=gLk+Oz9sgXO0vTq5i0+d0vBbN95yxI6Har+R8p/Y7EKtJ/CGsMqtsUaBitmY4dZ5URIHp//k2 abZPeaUXxm4DEoXtzC7gE0NvzG3txTiO3NqUpTWjMrlp0m5IsnMswNM X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Document the default Arm SPE events used by the perf c2c tool. Make a minor adjustment to the PowerPC entry for formatting consistency. Suggested-by: Al Grant Signed-off-by: Leo Yan --- tools/perf/Documentation/perf-c2c.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-c2c.txt b/tools/perf/Documentati= on/perf-c2c.txt index 40b0f71a2c44eb642ff3bb234631a614b7c4fc9d..b765ae2511d2418a63092fb8a90= a61faa335ac91 100644 --- a/tools/perf/Documentation/perf-c2c.txt +++ b/tools/perf/Documentation/perf-c2c.txt @@ -170,11 +170,16 @@ following on AMD: =20 ibs_op// =20 -and following on PowerPC: +following on PowerPC: =20 cpu/mem-loads/ cpu/mem-stores/ =20 +following on Arm: + + arm_spe_0/ts_enable=3D1,pa_enable=3D1,load_filter=3D1,min_latency=3D30/ + arm_spe_0/ts_enable=3D1,pa_enable=3D1,store_filter=3D1/ + User can pass any 'perf record' option behind '--' mark, like (to enable callchains and system wide monitoring): =20 --=20 2.34.1