Skip to contentSkip to conversation

dma-mapping: fix direction in dma_alloc direction traces

PATCH Applied Petr Tesarik 3 participants 5 messages Oct 1, 2025 – Oct 3, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

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
index d8ddc27b6a7c8..945fcbaae77e9 100644
@@ -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
#1 lore raw

(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->dir to the actual "dir" parameter of all trace events in dma_alloc_class. This struct member was left uninitialized by mistake.

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
index d8ddc27b6a7c8..945fcbaae77e9 100644
@@ -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;
 	),
 
Reviewed-by on v1 1/1
#2 lore raw
In reply to Petr Tesarik
Quoted 15 lines · Petr Tesarik

Set __entry->dir to the actual "dir" parameter of all trace events in dma_alloc_class. This struct member was left uninitialized by mistake.

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
index d8ddc27b6a7c8..945fcbaae77e9 100644

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;
 	),
 
maintainer Applied
#3 lore raw
In reply to Petr Tesarik
Quoted 6 lines · Petr Tesarik

Set __entry->dir to the actual "dir" parameter of all trace events in dma_alloc_class. This struct member was left uninitialized by mistake.

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
index d8ddc27b6a7c8..945fcbaae77e9 100644

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
#4 lore raw
Quoted 9 lines · On Fri, 3 Oct 2025 09:00:13 +0200 Marek Szyprowski <[email protected]>…
Quoted 6 lines · Petr Tesarik

Set __entry->dir to the actual "dir" parameter of all trace events in dma_alloc_class. This struct member was left uninitialized by mistake.

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