Linux Perf Users
 help / color / mirror / Atom feed
* [PATCH 0/2] perf cs-etm: Fix bogus branch samples
@ 2026-07-13 18:00 Leo Yan
  2026-07-13 18:00 ` [PATCH 1/2] perf cs-etm: Avoid bogus branch samples before async exceptions Leo Yan
  2026-07-13 18:00 ` [PATCH 2/2] perf cs-etm: Centralize branch sample checks Leo Yan
  0 siblings, 2 replies; 4+ messages in thread
From: Leo Yan @ 2026-07-13 18:00 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Jiri Olsa, Ian Rogers,
	Adrian Hunter, James Clark, Mike Leach, Suzuki K Poulose
  Cc: Arnaldo Carvalho de Melo, coresight, linux-arm-kernel,
	linux-perf-users, linux-kernel, Leo Yan

This series fixes the bogus branch samples in the CoreSight ETM trace.

When an interrupt occurs immediately after an untaken branch, the
decoder incorrectly synthesizes a branch sample for that branch.
The first patch fixes this issue.

The second patch consolidate the branch check so make sure the flush
flow to apply the same check to avoid generate bogus samples.

The series has been verified on Orion6 board.

Signed-off-by: Leo Yan <leo.yan@arm.com>
---
Leo Yan (2):
      perf cs-etm: Avoid bogus branch samples before async exceptions
      perf cs-etm: Centralize branch sample checks

 tools/perf/util/cs-etm.c | 44 ++++++++++++++++++++------------------------
 1 file changed, 20 insertions(+), 24 deletions(-)
---
base-commit: ef3af1df4f3372bd8ad47619452a283048b3bc8d
change-id: 20260713-perf_cs_etm_fix_non_taken-5b4d7f73f41e

Best regards,
-- 
Leo Yan <leo.yan@arm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-13 18:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 18:00 [PATCH 0/2] perf cs-etm: Fix bogus branch samples Leo Yan
2026-07-13 18:00 ` [PATCH 1/2] perf cs-etm: Avoid bogus branch samples before async exceptions Leo Yan
2026-07-13 18:09   ` sashiko-bot
2026-07-13 18:00 ` [PATCH 2/2] perf cs-etm: Centralize branch sample checks Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox