drm_trace.h 1.7 KB

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