1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if !defined(_DRM_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
5 #include <linux/stringify.h>
6 #include <linux/types.h>
7 #include <linux/tracepoint.h>
12 #define TRACE_SYSTEM drm
13 #define TRACE_INCLUDE_FILE drm_trace
15 TRACE_EVENT(drm_vblank_event,
16 TP_PROTO(int crtc, unsigned int seq, ktime_t time, bool high_prec),
17 TP_ARGS(crtc, seq, time, high_prec),
20 __field(unsigned int, seq)
21 __field(ktime_t, time)
22 __field(bool, high_prec)
28 __entry->high_prec = high_prec;
30 TP_printk("crtc=%d, seq=%u, time=%lld, high-prec=%s",
31 __entry->crtc, __entry->seq, __entry->time,
32 __entry->high_prec ? "true" : "false")
35 TRACE_EVENT(drm_vblank_event_queued,
36 TP_PROTO(struct drm_file *file, int crtc, unsigned int seq),
37 TP_ARGS(file, crtc, seq),
39 __field(struct drm_file *, file)
41 __field(unsigned int, seq)
48 TP_printk("file=%p, crtc=%d, seq=%u", __entry->file, __entry->crtc, \
52 TRACE_EVENT(drm_vblank_event_delivered,
53 TP_PROTO(struct drm_file *file, int crtc, unsigned int seq),
54 TP_ARGS(file, crtc, seq),
56 __field(struct drm_file *, file)
58 __field(unsigned int, seq)
65 TP_printk("file=%p, crtc=%d, seq=%u", __entry->file, __entry->crtc, \
69 #endif /* _DRM_TRACE_H_ */
71 /* This part must be outside protection */
72 #undef TRACE_INCLUDE_PATH
73 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm
74 #include <trace/define_trace.h>