Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/armada: expand overlay trace entry

Add CRTC and source positions to the Armada overlay trace entry.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

+22 -2
+22 -2
drivers/gpu/drm/armada/armada_trace.h
··· 34 34 __field(struct drm_plane *, plane) 35 35 __field(struct drm_crtc *, crtc) 36 36 __field(struct drm_framebuffer *, fb) 37 + __field(int, crtc_x) 38 + __field(int, crtc_y) 39 + __field(unsigned int, crtc_w) 40 + __field(unsigned int, crtc_h) 41 + __field(u32, src_x) 42 + __field(u32, src_y) 43 + __field(u32, src_w) 44 + __field(u32, src_h) 37 45 ), 38 46 TP_fast_assign( 39 47 __entry->plane = plane; 40 48 __entry->crtc = crtc; 41 49 __entry->fb = fb; 50 + __entry->crtc_x = crtc_x; 51 + __entry->crtc_y = crtc_y; 52 + __entry->crtc_w = crtc_w; 53 + __entry->crtc_h = crtc_h; 54 + __entry->src_x = src_x; 55 + __entry->src_y = src_y; 56 + __entry->src_w = src_w; 57 + __entry->src_h = src_h; 42 58 ), 43 - TP_printk("plane %p crtc %p fb %p", 44 - __entry->plane, __entry->crtc, __entry->fb) 59 + TP_printk("plane %p crtc %p fb %p crtc @ (%d,%d, %ux%u) src @ (%u,%u, %ux%u)", 60 + __entry->plane, __entry->crtc, __entry->fb, 61 + __entry->crtc_x, __entry->crtc_y, 62 + __entry->crtc_w, __entry->crtc_h, 63 + __entry->src_x >> 16, __entry->src_y >> 16, 64 + __entry->src_w >> 16, __entry->src_h >> 16) 45 65 ); 46 66 47 67 TRACE_EVENT(armada_ovl_plane_work,