mtk_layer_layout_trace.h 872 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2019 MediaTek Inc.
  4. */
  5. #undef TRACE_SYSTEM
  6. #define TRACE_SYSTEM layer_layout
  7. #if !defined(_MTK_LAYER_LAYOUT_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
  8. #define _MTK_LAYER_LAYOUT_TRACE_H_
  9. #include <linux/tracepoint.h>
  10. TRACE_EVENT(layer_layout,
  11. TP_PROTO(char *msg),
  12. TP_ARGS(msg),
  13. TP_STRUCT__entry(
  14. __string(msg, msg)
  15. ),
  16. TP_fast_assign(
  17. __assign_str(msg, msg);
  18. ),
  19. TP_printk("%s", __get_str(msg))
  20. );
  21. TRACE_EVENT(layer_bw,
  22. TP_PROTO(char *msg),
  23. TP_ARGS(msg),
  24. TP_STRUCT__entry(
  25. __string(msg, msg);
  26. ),
  27. TP_fast_assign(
  28. __assign_str(msg, msg);
  29. ),
  30. TP_printk("%s", __get_str(msg))
  31. );
  32. #endif /* _MTK_LAYER_LAYOUT_TRACE_H_ */
  33. #undef TRACE_INCLUDE_PATH
  34. #define TRACE_INCLUDE_PATH .
  35. #undef TRACE_INCLUDE_FILE
  36. #define TRACE_INCLUDE_FILE mtk_layer_layout_trace
  37. #include <trace/define_trace.h>