ipa_trace.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #undef TRACE_SYSTEM
  6. #define TRACE_SYSTEM ipa
  7. #define TRACE_INCLUDE_FILE ipa_trace
  8. #if !defined(_IPA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
  9. #define _IPA_TRACE_H
  10. #include <linux/tracepoint.h>
  11. TRACE_EVENT(
  12. intr_to_poll3,
  13. TP_PROTO(unsigned long client),
  14. TP_ARGS(client),
  15. TP_STRUCT__entry(
  16. __field(unsigned long, client)
  17. ),
  18. TP_fast_assign(
  19. __entry->client = client;
  20. ),
  21. TP_printk("client=%lu", __entry->client)
  22. );
  23. TRACE_EVENT(
  24. poll_to_intr3,
  25. TP_PROTO(unsigned long client),
  26. TP_ARGS(client),
  27. TP_STRUCT__entry(
  28. __field(unsigned long, client)
  29. ),
  30. TP_fast_assign(
  31. __entry->client = client;
  32. ),
  33. TP_printk("client=%lu", __entry->client)
  34. );
  35. TRACE_EVENT(
  36. idle_sleep_enter3,
  37. TP_PROTO(unsigned long client),
  38. TP_ARGS(client),
  39. TP_STRUCT__entry(
  40. __field(unsigned long, client)
  41. ),
  42. TP_fast_assign(
  43. __entry->client = client;
  44. ),
  45. TP_printk("client=%lu", __entry->client)
  46. );
  47. TRACE_EVENT(
  48. idle_sleep_exit3,
  49. TP_PROTO(unsigned long client),
  50. TP_ARGS(client),
  51. TP_STRUCT__entry(
  52. __field(unsigned long, client)
  53. ),
  54. TP_fast_assign(
  55. __entry->client = client;
  56. ),
  57. TP_printk("client=%lu", __entry->client)
  58. );
  59. TRACE_EVENT(
  60. rmnet_ipa_netifni3,
  61. TP_PROTO(unsigned long rx_pkt_cnt),
  62. TP_ARGS(rx_pkt_cnt),
  63. TP_STRUCT__entry(
  64. __field(unsigned long, rx_pkt_cnt)
  65. ),
  66. TP_fast_assign(
  67. __entry->rx_pkt_cnt = rx_pkt_cnt;
  68. ),
  69. TP_printk("rx_pkt_cnt=%lu", __entry->rx_pkt_cnt)
  70. );
  71. TRACE_EVENT(
  72. rmnet_ipa_netifrx3,
  73. TP_PROTO(unsigned long rx_pkt_cnt),
  74. TP_ARGS(rx_pkt_cnt),
  75. TP_STRUCT__entry(
  76. __field(unsigned long, rx_pkt_cnt)
  77. ),
  78. TP_fast_assign(
  79. __entry->rx_pkt_cnt = rx_pkt_cnt;
  80. ),
  81. TP_printk("rx_pkt_cnt=%lu", __entry->rx_pkt_cnt)
  82. );
  83. TRACE_EVENT(
  84. rmnet_ipa_netif_rcv_skb3,
  85. TP_PROTO(unsigned long rx_pkt_cnt),
  86. TP_ARGS(rx_pkt_cnt),
  87. TP_STRUCT__entry(
  88. __field(unsigned long, rx_pkt_cnt)
  89. ),
  90. TP_fast_assign(
  91. __entry->rx_pkt_cnt = rx_pkt_cnt;
  92. ),
  93. TP_printk("rx_pkt_cnt=%lu", __entry->rx_pkt_cnt)
  94. );
  95. TRACE_EVENT(
  96. ipa3_rx_poll_num,
  97. TP_PROTO(int poll_num),
  98. TP_ARGS(poll_num),
  99. TP_STRUCT__entry(
  100. __field(int, poll_num)
  101. ),
  102. TP_fast_assign(
  103. __entry->poll_num = poll_num;
  104. ),
  105. TP_printk("each_poll_aggr_pkt_num=%d", __entry->poll_num)
  106. );
  107. TRACE_EVENT(
  108. ipa3_rx_poll_cnt,
  109. TP_PROTO(int poll_num),
  110. TP_ARGS(poll_num),
  111. TP_STRUCT__entry(
  112. __field(int, poll_num)
  113. ),
  114. TP_fast_assign(
  115. __entry->poll_num = poll_num;
  116. ),
  117. TP_printk("napi_overall_poll_pkt_cnt=%d", __entry->poll_num)
  118. );
  119. #endif /* _IPA_TRACE_H */
  120. /* This part must be outside protection */
  121. #undef TRACE_INCLUDE_PATH
  122. #define TRACE_INCLUDE_PATH ../../techpack/dataipa/ipa/ipa_v3
  123. #include <trace/define_trace.h>