Re: [PATCH v4 24/24] dmaengine: dw-edma: Add trace support
[email protected] Wed, 29 Jul 2026 14:55:44 +0000
| Newsgroups | org.kernel.vger.dmaengine |
|---|---|
| Message-ID | <[email protected]> |
Thank you for your contribution! Sashiko AI review found 1 potential issue(= s) to consider: - [Medium] The `edma_irq` tracepoint uses the unexported enum `DW_EDMA_LL_E= VENT_STOP` in its `TP_printk()` format string, which breaks offline userspa= ce trace parsing. -- --- Patch [24]: [PATCH v4 24/24] dmaengine: dw-edma: Add trace support --- commit 6d716b0a3b3953754ece69188d4e3a952b274f83 Author: Frank Li <[email protected]> dmaengine: dw-edma: Add trace support This commit adds tracepoints for the circular LL ring's separate producer and consumer positions, including LL publication, descriptor operations, and engine recovery events. The recovery event records configured LL channels before direction resets. > diff --git a/drivers/dma/dw-edma/dw-edma-trace.h b/drivers/dma/dw-edma/dw= -edma-trace.h > new file mode 100644 > index 0000000000000..e5b3eb57df065 > --- /dev/null > +++ b/drivers/dma/dw-edma/dw-edma-trace.h [ ... ] > +TRACE_EVENT(edma_irq, > + TP_PROTO(struct dw_edma_chan *chan, > + const struct dw_edma_ll_snapshot *snapshot), > + TP_ARGS(chan, snapshot), [ ... ] > + TP_printk("chan %u%c event %s head %u done %u total %u idx %d completed= %d cookie %d", > + __entry->id, > + __entry->dir ? 'R' : 'W', > + __entry->event =3D=3D DW_EDMA_LL_EVENT_STOP ? "stop" : "progress", [Severity: Medium] Does using the unexported enum DW_EDMA_LL_EVENT_STOP directly in the TP_printk format string break offline trace parsing? When this tracepoint is exported to userspace via the events format file, t= he literal string DW_EDMA_LL_EVENT_STOP is included in the output.=20 Since userspace parsers like libtraceevent cannot resolve unexported kernel C enums without TRACE_DEFINE_ENUM or __print_symbolic(), they typically fail to evaluate the expression and may throw an error when parsing the trace da= ta. > + __entry->head, > + __entry->done, > + __entry->total, > + __entry->index, > + __entry->completed_cookie, > + __entry->cookie) > +); [ ... ] --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260729143036.3087= [email protected]?part=3D24