History

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.

Petr Tesarik committed 1 year ago

Commit 16abbab1 parent ab220541 file · +1 −0Browse files

Unified · Split

include/trace/events/dma.h+1−0
@@ -133,6 +133,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class, · 132 unmodified lines
133 __entry->dma_addr = dma_addr;133 __entry->dma_addr = dma_addr;
134 __entry->size = size;134 __entry->size = size;
135 __entry->flags = flags;135 __entry->flags = flags;
136 __entry->dir = dir;
136 __entry->attrs = attrs;137 __entry->attrs = attrs;
137 ),138 ),
138 139