From: sashiko-bot@kernel.org
To: "Leo Yan" <leo.yan@arm.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 2/3] perf: arm_spe: Suppress redundant ITRACE start records
Date: Tue, 01 Sep 2026 16:47:04 +0000 [thread overview]
Message-ID: <20260901164705.042781F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260901-perf_suppress_itrace_start_records-v1-2-c4fbc6860859@arm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] ITRACE_START records are not suppressed for inherited events due to a child/parent event state mismatch.
--
commit 0683c3b2471a719bb066f5dd9a93d7a7f192399a
Author: Leo Yan <leo.yan@arm.com>
perf: arm_spe: Suppress redundant ITRACE start records
This commit calls perf_event_itrace_started() at the start of an event to
prevent the perf core from emitting redundant PERF_RECORD_ITRACE_START
records on subsequent schedule-ins.
> diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c
> index b70f3fedf0282..40314ef8b731e 100644
> --- a/drivers/perf/arm_spe_pmu.c
> +++ b/drivers/perf/arm_spe_pmu.c
> @@ -890,6 +890,8 @@ static void arm_spe_pmu_start(struct perf_event *event, int flags)
> return;
> }
>
> + perf_event_itrace_started(event);
> +
[Severity: Medium]
Does this correctly suppress redundant records for inherited events?
The core event scheduling path in perf_log_itrace_start() internally resolves
to event->parent before checking for the PERF_ATTACH_ITRACE flag.
Since perf_event_itrace_started() only mutates the local child event's
attach_state, the parent event's flag remains permanently unset.
Won't this cause the perf core to continue emitting redundant ITRACE_START
records on every subsequent schedule-in for inherited events, negating the
intended fix?
> reg = arm_spe_event_to_pmsfcr(event);
> write_sysreg_s(reg, SYS_PMSFCR_EL1);
>
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260901-perf_suppress_itrace_start_records-v1-0-c4fbc6860859@arm.com?part=2
next prev parent reply other threads:[~2026-09-01 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 16:36 [PATCH 0/3] perf: Suppress redundant ITRACE start records for Arm SPE and CoreSight Leo Yan
2026-09-01 16:36 ` [PATCH 1/3] perf/core: Export perf_event_itrace_started() Leo Yan
2026-09-01 16:48 ` sashiko-bot
2026-09-01 16:36 ` [PATCH 2/3] perf: arm_spe: Suppress redundant ITRACE start records Leo Yan
2026-09-01 16:47 ` sashiko-bot [this message]
2026-09-02 16:39 ` Leo Yan
2026-09-01 16:36 ` [PATCH 3/3] coresight: perf: Suppress " Leo Yan
2026-09-01 16:45 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260901164705.042781F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=leo.yan@arm.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.