[PATCH v2 10/14] perf cs-etm: Don't print missing buffers in snapshot mode

From: James Clark

Date: Fri Aug 21 2026 - 05:59:18 EST


The driver produces lots of AUX records for trace data that was never
captured in snapshot mode. Downgrade this to a pr_debug3 message as it's
only an error in normal mode.

Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
---
tools/perf/util/cs-etm.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index d1eb4ec17bbd..6e04602ec204 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -3318,6 +3318,9 @@ static int cs_etm__queue_aux_records_cb(struct perf_session *session, union perf
struct perf_sample sample;
int ret;
struct auxtrace_index_entry *ent;
+ struct cs_etm_auxtrace *etm = container_of(session->auxtrace,
+ struct cs_etm_auxtrace,
+ auxtrace);
struct auxtrace_index *auxtrace_index;
struct evsel *evsel;
size_t i;
@@ -3371,8 +3374,10 @@ static int cs_etm__queue_aux_records_cb(struct perf_session *session, union perf
* don't exit with an error because it will still be possible to decode other aux records.
*/
if (!found) {
- pr_err("CS ETM: Couldn't find auxtrace buffer for aux_offset: %#"PRI_lx64
- " tid: %d cpu: %d\n", event->aux.aux_offset, sample.tid, sample.cpu);
+ int level = etm->snapshot_mode ? 3 : 0;
+
+ pr_debugN(level, "CS ETM: Couldn't find auxtrace buffer for aux_offset: %#"PRI_lx64
+ " tid: %d cpu: %d\n", event->aux.aux_offset, sample.tid, sample.cpu);
}
ret = 0;
out:

--
2.43.0