1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if !defined(ARMADA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
5 #include <linux/tracepoint.h>
8 struct drm_framebuffer
;
12 #define TRACE_SYSTEM armada
13 #define TRACE_INCLUDE_FILE armada_trace
15 TRACE_EVENT(armada_drm_irq
,
16 TP_PROTO(struct drm_crtc
*crtc
, u32 stat
),
19 __field(struct drm_crtc
*, crtc
)
26 TP_printk("crtc %p stat 0x%08x",
27 __entry
->crtc
, __entry
->stat
)
30 TRACE_EVENT(armada_ovl_plane_update
,
31 TP_PROTO(struct drm_plane
*plane
, struct drm_crtc
*crtc
,
32 struct drm_framebuffer
*fb
,
33 int crtc_x
, int crtc_y
, unsigned crtc_w
, unsigned crtc_h
,
34 uint32_t src_x
, uint32_t src_y
, uint32_t src_w
, uint32_t src_h
),
35 TP_ARGS(plane
, crtc
, fb
, crtc_x
, crtc_y
, crtc_w
, crtc_h
, src_x
, src_y
, src_w
, src_h
),
37 __field(struct drm_plane
*, plane
)
38 __field(struct drm_crtc
*, crtc
)
39 __field(struct drm_framebuffer
*, fb
)
42 __field(unsigned int, crtc_w
)
43 __field(unsigned int, crtc_h
)
50 __entry
->plane
= plane
;
53 __entry
->crtc_x
= crtc_x
;
54 __entry
->crtc_y
= crtc_y
;
55 __entry
->crtc_w
= crtc_w
;
56 __entry
->crtc_h
= crtc_h
;
57 __entry
->src_x
= src_x
;
58 __entry
->src_y
= src_y
;
59 __entry
->src_w
= src_w
;
60 __entry
->src_h
= src_h
;
62 TP_printk("plane %p crtc %p fb %p crtc @ (%d,%d, %ux%u) src @ (%u,%u, %ux%u)",
63 __entry
->plane
, __entry
->crtc
, __entry
->fb
,
64 __entry
->crtc_x
, __entry
->crtc_y
,
65 __entry
->crtc_w
, __entry
->crtc_h
,
66 __entry
->src_x
>> 16, __entry
->src_y
>> 16,
67 __entry
->src_w
>> 16, __entry
->src_h
>> 16)
70 TRACE_EVENT(armada_ovl_plane_work
,
71 TP_PROTO(struct drm_crtc
*crtc
, struct drm_plane
*plane
),
74 __field(struct drm_plane
*, plane
)
75 __field(struct drm_crtc
*, crtc
)
78 __entry
->plane
= plane
;
81 TP_printk("plane %p crtc %p",
82 __entry
->plane
, __entry
->crtc
)
87 /* This part must be outside protection */
88 #undef TRACE_INCLUDE_PATH
89 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/armada
90 #include <trace/define_trace.h>