debug_page_ref.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #include <linux/mm_types.h>
  2. #include <linux/tracepoint.h>
  3. #define CREATE_TRACE_POINTS
  4. #include <trace/events/page_ref.h>
  5. void __page_ref_set(struct page *page, int v)
  6. {
  7. trace_page_ref_set(page, v);
  8. }
  9. EXPORT_SYMBOL(__page_ref_set);
  10. EXPORT_TRACEPOINT_SYMBOL(page_ref_set);
  11. void __page_ref_mod(struct page *page, int v)
  12. {
  13. trace_page_ref_mod(page, v);
  14. }
  15. EXPORT_SYMBOL(__page_ref_mod);
  16. EXPORT_TRACEPOINT_SYMBOL(page_ref_mod);
  17. void __page_ref_mod_and_test(struct page *page, int v, int ret)
  18. {
  19. trace_page_ref_mod_and_test(page, v, ret);
  20. }
  21. EXPORT_SYMBOL(__page_ref_mod_and_test);
  22. EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_test);
  23. void __page_ref_mod_and_return(struct page *page, int v, int ret)
  24. {
  25. trace_page_ref_mod_and_return(page, v, ret);
  26. }
  27. EXPORT_SYMBOL(__page_ref_mod_and_return);
  28. EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_return);
  29. void __page_ref_mod_unless(struct page *page, int v, int u)
  30. {
  31. trace_page_ref_mod_unless(page, v, u);
  32. }
  33. EXPORT_SYMBOL(__page_ref_mod_unless);
  34. EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_unless);
  35. void __page_ref_freeze(struct page *page, int v, int ret)
  36. {
  37. trace_page_ref_freeze(page, v, ret);
  38. }
  39. EXPORT_SYMBOL(__page_ref_freeze);
  40. EXPORT_TRACEPOINT_SYMBOL(page_ref_freeze);
  41. void __page_ref_unfreeze(struct page *page, int v)
  42. {
  43. trace_page_ref_unfreeze(page, v);
  44. }
  45. EXPORT_SYMBOL(__page_ref_unfreeze);
  46. EXPORT_TRACEPOINT_SYMBOL(page_ref_unfreeze);