Line data Source code
1 : #if !defined(_DRM_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
2 : #define _DRM_TRACE_H_
3 :
4 : #include <dev/pci/drm/drmP.h>
5 :
6 : #undef TRACE_SYSTEM
7 : #define TRACE_SYSTEM drm
8 : #define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM)
9 : #define TRACE_INCLUDE_FILE drm_trace
10 :
11 0 : TRACE_EVENT(drm_vblank_event,
12 : TP_PROTO(int crtc, unsigned int seq),
13 : TP_ARGS(crtc, seq),
14 : TP_STRUCT__entry(
15 : __field(int, crtc)
16 : __field(unsigned int, seq)
17 : ),
18 : TP_fast_assign(
19 : __entry->crtc = crtc;
20 : __entry->seq = seq;
21 : ),
22 : TP_printk("crtc=%d, seq=%u", __entry->crtc, __entry->seq)
23 : );
24 :
25 0 : TRACE_EVENT(drm_vblank_event_queued,
26 : TP_PROTO(pid_t pid, int crtc, unsigned int seq),
27 : TP_ARGS(pid, crtc, seq),
28 : TP_STRUCT__entry(
29 : __field(pid_t, pid)
30 : __field(int, crtc)
31 : __field(unsigned int, seq)
32 : ),
33 : TP_fast_assign(
34 : __entry->pid = pid;
35 : __entry->crtc = crtc;
36 : __entry->seq = seq;
37 : ),
38 : TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
39 : __entry->seq)
40 : );
41 :
42 0 : TRACE_EVENT(drm_vblank_event_delivered,
43 : TP_PROTO(pid_t pid, int crtc, unsigned int seq),
44 : TP_ARGS(pid, crtc, seq),
45 : TP_STRUCT__entry(
46 : __field(pid_t, pid)
47 : __field(int, crtc)
48 : __field(unsigned int, seq)
49 : ),
50 : TP_fast_assign(
51 : __entry->pid = pid;
52 : __entry->crtc = crtc;
53 : __entry->seq = seq;
54 : ),
55 : TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
56 : __entry->seq)
57 : );
58 :
59 : #endif /* _DRM_TRACE_H_ */
60 :
61 : /* This part must be outside protection */
62 : #undef TRACE_INCLUDE_PATH
63 : #define TRACE_INCLUDE_PATH .
|