1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if !defined(ARMADA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
5 #include <linux/tracepoint.h>
9 #define TRACE_SYSTEM armada
10 #define TRACE_INCLUDE_FILE armada_trace
12 TRACE_EVENT(armada_drm_irq
,
13 TP_PROTO(struct drm_crtc
*crtc
, u32 stat
),
16 __field(struct drm_crtc
*, crtc
)
23 TP_printk("crtc %p stat 0x%08x",
24 __entry
->crtc
, __entry
->stat
)
27 TRACE_EVENT(armada_ovl_plane_update
,
28 TP_PROTO(struct drm_plane
*plane
, struct drm_crtc
*crtc
,
29 struct drm_framebuffer
*fb
,
30 int crtc_x
, int crtc_y
, unsigned crtc_w
, unsigned crtc_h
,
31 uint32_t src_x
, uint32_t src_y
, uint32_t src_w
, uint32_t src_h
),
32 TP_ARGS(plane
, crtc
, fb
, crtc_x
, crtc_y
, crtc_w
, crtc_h
, src_x
, src_y
, src_w
, src_h
),
34 __field(struct drm_plane
*, plane
)
35 __field(struct drm_crtc
*, crtc
)
36 __field(struct drm_framebuffer
*, fb
)
39 __field(unsigned int, crtc_w
)
40 __field(unsigned int, crtc_h
)
47 __entry
->plane
= plane
;
50 __entry
->crtc_x
= crtc_x
;
51 __entry
->crtc_y
= crtc_y
;
52 __entry
->crtc_w
= crtc_w
;
53 __entry
->crtc_h
= crtc_h
;
54 __entry
->src_x
= src_x
;
55 __entry
->src_y
= src_y
;
56 __entry
->src_w
= src_w
;
57 __entry
->src_h
= src_h
;
59 TP_printk("plane %p crtc %p fb %p crtc @ (%d,%d, %ux%u) src @ (%u,%u, %ux%u)",
60 __entry
->plane
, __entry
->crtc
, __entry
->fb
,
61 __entry
->crtc_x
, __entry
->crtc_y
,
62 __entry
->crtc_w
, __entry
->crtc_h
,
63 __entry
->src_x
>> 16, __entry
->src_y
>> 16,
64 __entry
->src_w
>> 16, __entry
->src_h
>> 16)
67 TRACE_EVENT(armada_ovl_plane_work
,
68 TP_PROTO(struct drm_crtc
*crtc
, struct drm_plane
*plane
),
71 __field(struct drm_plane
*, plane
)
72 __field(struct drm_crtc
*, crtc
)
75 __entry
->plane
= plane
;
78 TP_printk("plane %p crtc %p",
79 __entry
->plane
, __entry
->crtc
)
84 /* This part must be outside protection */
85 #undef TRACE_INCLUDE_PATH
86 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/armada
87 #include <trace/define_trace.h>