1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM dma_fence
5 #if !defined(_TRACE_DMA_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_DMA_FENCE_H
8 #include <linux/tracepoint.h>
12 DECLARE_EVENT_CLASS(dma_fence
,
14 TP_PROTO(struct dma_fence
*fence
),
19 __string(driver
, fence
->ops
->get_driver_name(fence
))
20 __string(timeline
, fence
->ops
->get_timeline_name(fence
))
21 __field(unsigned int, context
)
22 __field(unsigned int, seqno
)
26 __assign_str(driver
, fence
->ops
->get_driver_name(fence
))
27 __assign_str(timeline
, fence
->ops
->get_timeline_name(fence
))
28 __entry
->context
= fence
->context
;
29 __entry
->seqno
= fence
->seqno
;
32 TP_printk("driver=%s timeline=%s context=%u seqno=%u",
33 __get_str(driver
), __get_str(timeline
), __entry
->context
,
37 DEFINE_EVENT(dma_fence
, dma_fence_emit
,
39 TP_PROTO(struct dma_fence
*fence
),
44 DEFINE_EVENT(dma_fence
, dma_fence_init
,
46 TP_PROTO(struct dma_fence
*fence
),
51 DEFINE_EVENT(dma_fence
, dma_fence_destroy
,
53 TP_PROTO(struct dma_fence
*fence
),
58 DEFINE_EVENT(dma_fence
, dma_fence_enable_signal
,
60 TP_PROTO(struct dma_fence
*fence
),
65 DEFINE_EVENT(dma_fence
, dma_fence_signaled
,
67 TP_PROTO(struct dma_fence
*fence
),
72 DEFINE_EVENT(dma_fence
, dma_fence_wait_start
,
74 TP_PROTO(struct dma_fence
*fence
),
79 DEFINE_EVENT(dma_fence
, dma_fence_wait_end
,
81 TP_PROTO(struct dma_fence
*fence
),
86 #endif /* _TRACE_DMA_FENCE_H */
88 /* This part must be outside protection */
89 #include <trace/define_trace.h>