pdc.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Copyright (c) 2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #undef TRACE_SYSTEM
  13. #define TRACE_SYSTEM pdc
  14. #if !defined(_TRACE_PDC_) || defined(TRACE_HEADER_MULTI_READ)
  15. #define _TRACE_PDC_H_
  16. #include <linux/tracepoint.h>
  17. TRACE_EVENT(irq_pin_config,
  18. TP_PROTO(char *func, u32 pin, u32 hwirq, u32 type, u32 enable),
  19. TP_ARGS(func, pin, hwirq, type, enable),
  20. TP_STRUCT__entry(
  21. __field(char *, func)
  22. __field(u32, pin)
  23. __field(u32, hwirq)
  24. __field(u32, type)
  25. __field(u32, enable)
  26. ),
  27. TP_fast_assign(
  28. __entry->pin = pin;
  29. __entry->func = func;
  30. __entry->hwirq = hwirq;
  31. __entry->type = type;
  32. __entry->enable = enable;
  33. ),
  34. TP_printk("%s hwirq:%u pin:%u type:%u enable:%u",
  35. __entry->func, __entry->pin, __entry->hwirq, __entry->type,
  36. __entry->enable)
  37. );
  38. #endif
  39. #define TRACE_INCLUDE_FILE pdc
  40. #include <trace/define_trace.h>