Jesse Barnes | ac2874b | 2010-07-01 16:47:31 -0700 | [diff] [blame] | 1 | #if !defined(_DRM_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ) |
| 2 | #define _DRM_TRACE_H_ |
| 3 | |
| 4 | #include <linux/stringify.h> |
| 5 | #include <linux/types.h> |
| 6 | #include <linux/tracepoint.h> |
| 7 | |
| 8 | #undef TRACE_SYSTEM |
| 9 | #define TRACE_SYSTEM drm |
Jesse Barnes | ac2874b | 2010-07-01 16:47:31 -0700 | [diff] [blame] | 10 | #define TRACE_INCLUDE_FILE drm_trace |
| 11 | |
| 12 | TRACE_EVENT(drm_vblank_event, |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 13 | TP_PROTO(int crtc, unsigned int seq), |
| 14 | TP_ARGS(crtc, seq), |
| 15 | TP_STRUCT__entry( |
| 16 | __field(int, crtc) |
| 17 | __field(unsigned int, seq) |
| 18 | ), |
| 19 | TP_fast_assign( |
| 20 | __entry->crtc = crtc; |
| 21 | __entry->seq = seq; |
| 22 | ), |
Seung-Woo Kim | 04274cd | 2013-07-01 19:44:14 +0900 | [diff] [blame] | 23 | TP_printk("crtc=%d, seq=%u", __entry->crtc, __entry->seq) |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 24 | ); |
Jesse Barnes | ac2874b | 2010-07-01 16:47:31 -0700 | [diff] [blame] | 25 | |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 26 | TRACE_EVENT(drm_vblank_event_queued, |
| 27 | TP_PROTO(pid_t pid, int crtc, unsigned int seq), |
| 28 | TP_ARGS(pid, crtc, seq), |
| 29 | TP_STRUCT__entry( |
| 30 | __field(pid_t, pid) |
| 31 | __field(int, crtc) |
| 32 | __field(unsigned int, seq) |
| 33 | ), |
| 34 | TP_fast_assign( |
| 35 | __entry->pid = pid; |
| 36 | __entry->crtc = crtc; |
| 37 | __entry->seq = seq; |
| 38 | ), |
Seung-Woo Kim | 04274cd | 2013-07-01 19:44:14 +0900 | [diff] [blame] | 39 | TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \ |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 40 | __entry->seq) |
| 41 | ); |
Jesse Barnes | ac2874b | 2010-07-01 16:47:31 -0700 | [diff] [blame] | 42 | |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 43 | TRACE_EVENT(drm_vblank_event_delivered, |
| 44 | TP_PROTO(pid_t pid, int crtc, unsigned int seq), |
| 45 | TP_ARGS(pid, crtc, seq), |
| 46 | TP_STRUCT__entry( |
| 47 | __field(pid_t, pid) |
| 48 | __field(int, crtc) |
| 49 | __field(unsigned int, seq) |
| 50 | ), |
| 51 | TP_fast_assign( |
| 52 | __entry->pid = pid; |
| 53 | __entry->crtc = crtc; |
| 54 | __entry->seq = seq; |
| 55 | ), |
Seung-Woo Kim | 04274cd | 2013-07-01 19:44:14 +0900 | [diff] [blame] | 56 | TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \ |
Jesse Barnes | b9c2c9a | 2010-07-01 16:48:09 -0700 | [diff] [blame] | 57 | __entry->seq) |
Jesse Barnes | ac2874b | 2010-07-01 16:47:31 -0700 | [diff] [blame] | 58 | ); |
| 59 | |
| 60 | #endif /* _DRM_TRACE_H_ */ |
| 61 | |
| 62 | /* This part must be outside protection */ |
| 63 | #undef TRACE_INCLUDE_PATH |
| 64 | #define TRACE_INCLUDE_PATH . |
| 65 | #include <trace/define_trace.h> |