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),
20 __field(unsigned int, seq)
26 TP_printk("crtc=%d, seq=%u", __entry->crtc, __entry->seq)
29 TRACE_EVENT(drm_vblank_event_queued,
30 TP_PROTO(struct drm_file *file, int crtc, unsigned int seq),
31 TP_ARGS(file, crtc, seq),
33 __field(struct drm_file *, file)
35 __field(unsigned int, seq)
42 TP_printk("file=%p, crtc=%d, seq=%u", __entry->file, __entry->crtc, \
46 TRACE_EVENT(drm_vblank_event_delivered,
47 TP_PROTO(struct drm_file *file, int crtc, unsigned int seq),
48 TP_ARGS(file, crtc, seq),
50 __field(struct drm_file *, file)
52 __field(unsigned int, seq)
59 TP_printk("file=%p, crtc=%d, seq=%u", __entry->file, __entry->crtc, \
63 #endif /* _DRM_TRACE_H_ */
65 /* This part must be outside protection */
66 #undef TRACE_INCLUDE_PATH
67 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm
68 #include <trace/define_trace.h>