wda.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2018,2021, The Linux Foundation. All rights reserved.
  3. */
  4. #undef TRACE_SYSTEM
  5. #define TRACE_SYSTEM wda
  6. #undef TRACE_INCLUDE_PATH
  7. #define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
  8. #ifdef RMNET_LA_PLATFORM
  9. #define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
  10. #elif RMNET_TRACE_INCLUDE_LE
  11. #define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
  12. #else
  13. #define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
  14. #endif
  15. #define TRACE_INCLUDE_FILE wda
  16. #if !defined(_TRACE_WDA_H) || defined(TRACE_HEADER_MULTI_READ)
  17. #define _TRACE_WDA_H
  18. #include <linux/tracepoint.h>
  19. TRACE_EVENT(wda_set_powersave_mode,
  20. TP_PROTO(int enable),
  21. TP_ARGS(enable),
  22. TP_STRUCT__entry(
  23. __field(int, enable)
  24. ),
  25. TP_fast_assign(
  26. __entry->enable = enable;
  27. ),
  28. TP_printk("set powersave mode to %s",
  29. __entry->enable ? "enable" : "disable")
  30. );
  31. TRACE_EVENT(wda_client_state_up,
  32. TP_PROTO(u32 instance, u32 ep_type, u32 iface),
  33. TP_ARGS(instance, ep_type, iface),
  34. TP_STRUCT__entry(
  35. __field(u32, instance)
  36. __field(u32, ep_type)
  37. __field(u32, iface)
  38. ),
  39. TP_fast_assign(
  40. __entry->instance = instance;
  41. __entry->ep_type = ep_type;
  42. __entry->iface = iface;
  43. ),
  44. TP_printk("Client: Connected with WDA instance=%u ep_type=%u i_id=%u",
  45. __entry->instance, __entry->ep_type, __entry->iface)
  46. );
  47. TRACE_EVENT(wda_client_state_down,
  48. TP_PROTO(int from_cb),
  49. TP_ARGS(from_cb),
  50. TP_STRUCT__entry(
  51. __field(int, from_cb)
  52. ),
  53. TP_fast_assign(
  54. __entry->from_cb = from_cb;
  55. ),
  56. TP_printk("Client: Connection with WDA lost Exit by callback %d",
  57. __entry->from_cb)
  58. );
  59. #endif /* _TRACE_WDA_H */
  60. /* This part must be outside protection */
  61. #include <trace/define_trace.h>