iwl-devtrace-ucode.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. * The full GNU General Public License is included in this distribution in the
  19. * file called LICENSE.
  20. *
  21. * Contact Information:
  22. * Intel Linux Wireless <ilw@linux.intel.com>
  23. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  24. *
  25. *****************************************************************************/
  26. #if !defined(__IWLWIFI_DEVICE_TRACE_UCODE) || defined(TRACE_HEADER_MULTI_READ)
  27. #define __IWLWIFI_DEVICE_TRACE_UCODE
  28. #include <linux/tracepoint.h>
  29. #undef TRACE_SYSTEM
  30. #define TRACE_SYSTEM iwlwifi_ucode
  31. TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
  32. TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
  33. TP_ARGS(dev, time, data, ev),
  34. TP_STRUCT__entry(
  35. DEV_ENTRY
  36. __field(u32, time)
  37. __field(u32, data)
  38. __field(u32, ev)
  39. ),
  40. TP_fast_assign(
  41. DEV_ASSIGN;
  42. __entry->time = time;
  43. __entry->data = data;
  44. __entry->ev = ev;
  45. ),
  46. TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
  47. __get_str(dev), __entry->time, __entry->data, __entry->ev)
  48. );
  49. TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
  50. TP_PROTO(const struct device *dev, u32 wraps, u32 n_entry, u32 p_entry),
  51. TP_ARGS(dev, wraps, n_entry, p_entry),
  52. TP_STRUCT__entry(
  53. DEV_ENTRY
  54. __field(u32, wraps)
  55. __field(u32, n_entry)
  56. __field(u32, p_entry)
  57. ),
  58. TP_fast_assign(
  59. DEV_ASSIGN;
  60. __entry->wraps = wraps;
  61. __entry->n_entry = n_entry;
  62. __entry->p_entry = p_entry;
  63. ),
  64. TP_printk("[%s] wraps=#%02d n=0x%X p=0x%X",
  65. __get_str(dev), __entry->wraps, __entry->n_entry,
  66. __entry->p_entry)
  67. );
  68. #endif /* __IWLWIFI_DEVICE_TRACE_UCODE */
  69. #undef TRACE_INCLUDE_PATH
  70. #define TRACE_INCLUDE_PATH .
  71. #undef TRACE_INCLUDE_FILE
  72. #define TRACE_INCLUDE_FILE iwl-devtrace-ucode
  73. #include <trace/define_trace.h>