gsi_trace.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #undef TRACE_SYSTEM
  6. #define TRACE_SYSTEM gsi
  7. #define TRACE_INCLUDE_FILE gsi_trace
  8. #if !defined(_GSI_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
  9. #define _GSI_TRACE_H
  10. #include <linux/tracepoint.h>
  11. TRACE_EVENT(
  12. gsi_qtimer,
  13. TP_PROTO(u64 qtimer, bool is_ll, uint8_t evt, uint32_t ch, uint32_t msk),
  14. TP_ARGS(qtimer, is_ll, evt, ch, msk),
  15. TP_STRUCT__entry(
  16. __field(u64, qtimer)
  17. __field(bool, is_ll)
  18. __field(uint8_t, evt)
  19. __field(uint32_t, ch)
  20. __field(uint32_t, msk)
  21. ),
  22. TP_fast_assign(
  23. __entry->qtimer = qtimer;
  24. __entry->is_ll = is_ll;
  25. __entry->evt = evt;
  26. __entry->ch = ch;
  27. __entry->msk = msk;
  28. ),
  29. TP_printk("qtimer=%llu is_ll=%s, evt=%u, ch=0x%x, msk=0x%x",
  30. __entry->qtimer,
  31. __entry->is_ll ? "true" : "false",
  32. __entry->evt,
  33. __entry->ch,
  34. __entry->msk)
  35. );
  36. #endif /* _GSI_TRACE_H */
  37. /* This part must be outside protection */
  38. #ifndef GSI_TRACE_INCLUDE_PATH
  39. #ifdef CONFIG_IPA_VENDOR_DLKM
  40. #define GSI_TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/dataipa/drivers/platform/msm/gsi
  41. #else
  42. #define GSI_TRACE_INCLUDE_PATH ../../techpack/dataipa/drivers/platform/msm/gsi
  43. #endif
  44. #endif
  45. #define TRACE_INCLUDE_PATH GSI_TRACE_INCLUDE_PATH
  46. #include <trace/define_trace.h>