armada_trace.h 1.7 KB

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