drm_trace.h 1.6 KB

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