intel_ifs.h 860 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #undef TRACE_SYSTEM
  3. #define TRACE_SYSTEM intel_ifs
  4. #if !defined(_TRACE_IFS_H) || defined(TRACE_HEADER_MULTI_READ)
  5. #define _TRACE_IFS_H
  6. #include <linux/ktime.h>
  7. #include <linux/tracepoint.h>
  8. TRACE_EVENT(ifs_status,
  9. TP_PROTO(int cpu, union ifs_scan activate, union ifs_status status),
  10. TP_ARGS(cpu, activate, status),
  11. TP_STRUCT__entry(
  12. __field( u64, status )
  13. __field( int, cpu )
  14. __field( u8, start )
  15. __field( u8, stop )
  16. ),
  17. TP_fast_assign(
  18. __entry->cpu = cpu;
  19. __entry->start = activate.start;
  20. __entry->stop = activate.stop;
  21. __entry->status = status.data;
  22. ),
  23. TP_printk("cpu: %d, start: %.2x, stop: %.2x, status: %llx",
  24. __entry->cpu,
  25. __entry->start,
  26. __entry->stop,
  27. __entry->status)
  28. );
  29. #endif /* _TRACE_IFS_H */
  30. /* This part must be outside protection */
  31. #include <trace/define_trace.h>