sync_trace.h 735 B

123456789101112131415161718192021222324252627282930313233
  1. #undef TRACE_SYSTEM
  2. #define TRACE_INCLUDE_PATH ../../drivers/dma-buf
  3. #define TRACE_SYSTEM sync_trace
  4. #if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ)
  5. #define _TRACE_SYNC_H
  6. #include "sync_debug.h"
  7. #include <linux/tracepoint.h>
  8. TRACE_EVENT(sync_timeline,
  9. TP_PROTO(struct sync_timeline *timeline),
  10. TP_ARGS(timeline),
  11. TP_STRUCT__entry(
  12. __string(name, timeline->name)
  13. __field(u32, value)
  14. ),
  15. TP_fast_assign(
  16. __assign_str(name, timeline->name);
  17. __entry->value = timeline->value;
  18. ),
  19. TP_printk("name=%s value=%d", __get_str(name), __entry->value)
  20. );
  21. #endif /* if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) */
  22. /* This part must be outside protection */
  23. #include <trace/define_trace.h>