1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if !defined(_MSM_GPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
3 #define _MSM_GPU_TRACE_H_
5 #include <linux/tracepoint.h>
8 #define TRACE_SYSTEM drm_msm_atomic
9 #define TRACE_INCLUDE_FILE msm_atomic_trace
11 TRACE_EVENT(msm_atomic_commit_tail_start
,
12 TP_PROTO(bool async
, unsigned crtc_mask
),
13 TP_ARGS(async
, crtc_mask
),
16 __field(u32
, crtc_mask
)
19 __entry
->async
= async
;
20 __entry
->crtc_mask
= crtc_mask
;
22 TP_printk("async=%d crtc_mask=%x",
23 __entry
->async
, __entry
->crtc_mask
)
26 TRACE_EVENT(msm_atomic_commit_tail_finish
,
27 TP_PROTO(bool async
, unsigned crtc_mask
),
28 TP_ARGS(async
, crtc_mask
),
31 __field(u32
, crtc_mask
)
34 __entry
->async
= async
;
35 __entry
->crtc_mask
= crtc_mask
;
37 TP_printk("async=%d crtc_mask=%x",
38 __entry
->async
, __entry
->crtc_mask
)
41 TRACE_EVENT(msm_atomic_async_commit_start
,
42 TP_PROTO(unsigned crtc_mask
),
45 __field(u32
, crtc_mask
)
48 __entry
->crtc_mask
= crtc_mask
;
50 TP_printk("crtc_mask=%x",
54 TRACE_EVENT(msm_atomic_async_commit_finish
,
55 TP_PROTO(unsigned crtc_mask
),
58 __field(u32
, crtc_mask
)
61 __entry
->crtc_mask
= crtc_mask
;
63 TP_printk("crtc_mask=%x",
67 TRACE_EVENT(msm_atomic_wait_flush_start
,
68 TP_PROTO(unsigned crtc_mask
),
71 __field(u32
, crtc_mask
)
74 __entry
->crtc_mask
= crtc_mask
;
76 TP_printk("crtc_mask=%x",
80 TRACE_EVENT(msm_atomic_wait_flush_finish
,
81 TP_PROTO(unsigned crtc_mask
),
84 __field(u32
, crtc_mask
)
87 __entry
->crtc_mask
= crtc_mask
;
89 TP_printk("crtc_mask=%x",
93 TRACE_EVENT(msm_atomic_flush_commit
,
94 TP_PROTO(unsigned crtc_mask
),
97 __field(u32
, crtc_mask
)
100 __entry
->crtc_mask
= crtc_mask
;
102 TP_printk("crtc_mask=%x",
108 #undef TRACE_INCLUDE_PATH
109 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/msm
110 #include <trace/define_trace.h>