page_isolation.h 904 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM page_isolation
  3. #if !defined(_TRACE_PAGE_ISOLATION_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_PAGE_ISOLATION_H
  5. #include <linux/tracepoint.h>
  6. TRACE_EVENT(test_pages_isolated,
  7. TP_PROTO(
  8. unsigned long start_pfn,
  9. unsigned long end_pfn,
  10. unsigned long fin_pfn),
  11. TP_ARGS(start_pfn, end_pfn, fin_pfn),
  12. TP_STRUCT__entry(
  13. __field(unsigned long, start_pfn)
  14. __field(unsigned long, end_pfn)
  15. __field(unsigned long, fin_pfn)
  16. ),
  17. TP_fast_assign(
  18. __entry->start_pfn = start_pfn;
  19. __entry->end_pfn = end_pfn;
  20. __entry->fin_pfn = fin_pfn;
  21. ),
  22. TP_printk("start_pfn=0x%lx end_pfn=0x%lx fin_pfn=0x%lx ret=%s",
  23. __entry->start_pfn, __entry->end_pfn, __entry->fin_pfn,
  24. __entry->end_pfn <= __entry->fin_pfn ? "success" : "fail")
  25. );
  26. #endif /* _TRACE_PAGE_ISOLATION_H */
  27. /* This part must be outside protection */
  28. #include <trace/define_trace.h>