2 #define TRACE_SYSTEM swiotlb
4 #if !defined(_TRACE_SWIOTLB_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_SWIOTLB_H
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(swiotlb_bounced
,
11 TP_PROTO(struct device
*dev
,
16 TP_ARGS(dev
, dev_addr
, size
, swiotlb_force
),
19 __string( dev_name
, dev_name(dev
) )
20 __field( u64
, dma_mask
)
21 __field( dma_addr_t
, dev_addr
)
22 __field( size_t, size
)
23 __field( int, swiotlb_force
)
27 __assign_str(dev_name
, dev_name(dev
));
28 __entry
->dma_mask
= (dev
->dma_mask
? *dev
->dma_mask
: 0);
29 __entry
->dev_addr
= dev_addr
;
31 __entry
->swiotlb_force
= swiotlb_force
;
34 TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx "
38 (unsigned long long)__entry
->dev_addr
,
40 __entry
->swiotlb_force
? "swiotlb_force" : "" )
43 #endif /* _TRACE_SWIOTLB_H */
45 /* This part must be outside protection */
46 #include <trace/define_trace.h>