sync_trace.h 774 B

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