Skip to content

Commit 801f799

Browse files
ptesarikgregkh
authored andcommitted
dma-mapping: fix direction in dma_alloc direction traces
commit 16abbab upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 15b8a5b commit 801f799

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
@@ -136,6 +136,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class,
136136
__entry->dma_addr = dma_addr;
137137
__entry->size = size;
138138
__entry->flags = flags;
139+
__entry->dir = dir;
139140
__entry->attrs = attrs;
140141
),
141142

0 commit comments

Comments
 (0)