dma-mapping: fix direction in dma_alloc direction traces
Subsystems (3)
PATCH 1/1 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.
--- include/trace/events/dma.h | 1 + 1 file changed, 1 insertion(+)
include/trace/events/dma.h +1 -0
@@ -134,6 +134,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class, __entry->dma_addr = dma_addr; __entry->size = size; __entry->flags = flags; + __entry->dir = dir; __entry->attrs = attrs; ),
Signature · 1 line
2.51.0
(One day, I'll finally remember, I promise.)
Petr T
Quoted 22 lines · On Wed, 1 Oct 2025 08:10:28 +0200 Petr Tesarik <[email protected]> wrote:
Set
__entry->dirto the actual "dir" parameter of all trace events indma_alloc_class. This struct member was left uninitialized by mistake.Signed-off-by Petr Tesarik <[email protected]>Fixes 3afff779a725 ("dma-mapping: trace dma_alloc/free direction")--- include/trace/events/dma.h | 1 + 1 file changed, 1 insertion(+)include/trace/events/dma.h +1
-0@@ -134,6 +134,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class, __entry->dma_addr = dma_addr; __entry->size = size; __entry->flags = flags; + __entry->dir = dir; __entry->attrs = attrs; ),
Quoted 15 lines · Petr Tesarik
Set
__entry->dirto the actual "dir" parameter of all trace events indma_alloc_class. This struct member was left uninitialized by mistake.Signed-off-by Petr Tesarik <[email protected]>Fixes 3afff779a725 ("dma-mapping: trace dma_alloc/free direction")--- include/trace/events/dma.h | 1 + 1 file changed, 1 insertion(+)include/trace/events/dma.h +0
-0
include/trace/events/dma.h DECLARE_EVENT_CLASS(dma_alloc_class, · line 140
Quoted 7 lines
include/trace/events/dma.h +1
-0@@ -134,6 +134,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class, __entry->dma_addr = dma_addr; __entry->size = size; __entry->flags = flags; + __entry->dir = dir; __entry->attrs = attrs; ),
Quoted 6 lines · Petr Tesarik
Set
__entry->dirto the actual "dir" parameter of all trace events indma_alloc_class. This struct member was left uninitialized by mistake.Signed-off-by Petr Tesarik <[email protected]>Fixes 3afff779a725 ("dma-mapping: trace dma_alloc/free direction")
Applied to dma-mapping-for-next (for v6.18-rc1) branch. Thanks!
Quoted 9 lines
--- include/trace/events/dma.h | 1 + 1 file changed, 1 insertion(+)include/trace/events/dma.h +0
-0
include/trace/events/dma.h DECLARE_EVENT_CLASS(dma_alloc_class, · line 140
Quoted 7 lines
include/trace/events/dma.h +1
-0@@ -134,6 +134,7 @@ DECLARE_EVENT_CLASS(dma_alloc_class, __entry->dma_addr = dma_addr; __entry->size = size; __entry->flags = flags; + __entry->dir = dir; __entry->attrs = attrs; ),
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Quoted 9 lines · On Fri, 3 Oct 2025 09:00:13 +0200 Marek Szyprowski <[email protected]>…
Quoted 6 lines · Petr Tesarik
Set
__entry->dirto the actual "dir" parameter of all trace events indma_alloc_class. This struct member was left uninitialized by mistake.Signed-off-by Petr Tesarik <[email protected]>Fixes 3afff779a725 ("dma-mapping: trace dma_alloc/free direction")Applied to dma-mapping-for-next (for v6.18-rc1) branch. Thanks!
Thank you for maintaining the code!
Petr T