Skip to content

Commit 16abbab

Browse files
ptesarikmszyprow
authored andcommitted
dma-mapping: fix direction in dma_alloc direction traces
Set __entry->dir to the actual "dir" parameter of all trace events in dma_alloc_class. This struct member was left uninitialized by mistake. Signed-off-by: Petr Tesarik <ptesarik@suse.com> Fixes: 3afff77 ("dma-mapping: trace dma_alloc/free direction") Cc: stable@vger.kernel.org Reviewed-by: Sean Anderson <sean.anderson@linux.dev> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20251001061028.412258-1-ptesarik@suse.com
1 parent ab22054 commit 16abbab

File tree

1 file changed

+1
-0
lines changed
  • include/trace/events

1 file changed

+1
-0
lines changed

include/trace/events/dma.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class,
133133
__entry->dma_addr = dma_addr;
134134
__entry->size = size;
135135
__entry->flags = flags;
136+
__entry->dir = dir;
136137
__entry->attrs = attrs;
137138
),
138139

0 commit comments

Comments
 (0)