blob: dc0cba70fd1a3195bec5fe342974ca3524f6284f [file] [log] [blame]
Russell Kingc8a220c2016-05-17 13:51:08 +01001#if !defined(ARMADA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
2#define ARMADA_TRACE_H
3
4#include <linux/tracepoint.h>
5#include <drm/drmP.h>
6
7#undef TRACE_SYSTEM
8#define TRACE_SYSTEM armada
9#define TRACE_INCLUDE_FILE armada_trace
10
11TRACE_EVENT(armada_drm_irq,
12 TP_PROTO(struct drm_crtc *crtc, u32 stat),
13 TP_ARGS(crtc, stat),
14 TP_STRUCT__entry(
15 __field(struct drm_crtc *, crtc)
16 __field(u32, stat)
17 ),
18 TP_fast_assign(
19 __entry->crtc = crtc;
20 __entry->stat = stat;
21 ),
22 TP_printk("crtc %p stat 0x%08x",
23 __entry->crtc, __entry->stat)
24);
25
26TRACE_EVENT(armada_ovl_plane_update,
27 TP_PROTO(struct drm_plane *plane, struct drm_crtc *crtc,
28 struct drm_framebuffer *fb,
29 int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h,
30 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h),
31 TP_ARGS(plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h),
32 TP_STRUCT__entry(
33 __field(struct drm_plane *, plane)
34 __field(struct drm_crtc *, crtc)
35 __field(struct drm_framebuffer *, fb)
36 ),
37 TP_fast_assign(
38 __entry->plane = plane;
39 __entry->crtc = crtc;
40 __entry->fb = fb;
41 ),
42 TP_printk("plane %p crtc %p fb %p",
43 __entry->plane, __entry->crtc, __entry->fb)
44);
45
46TRACE_EVENT(armada_ovl_plane_work,
47 TP_PROTO(struct drm_crtc *crtc, struct drm_plane *plane),
48 TP_ARGS(crtc, plane),
49 TP_STRUCT__entry(
50 __field(struct drm_plane *, plane)
51 __field(struct drm_crtc *, crtc)
52 ),
53 TP_fast_assign(
54 __entry->plane = plane;
55 __entry->crtc = crtc;
56 ),
57 TP_printk("plane %p crtc %p",
58 __entry->plane, __entry->crtc)
59);
60
61#endif
62
63/* This part must be outside protection */
64#undef TRACE_INCLUDE_PATH
65#define TRACE_INCLUDE_PATH .
66#include <trace/define_trace.h>