debug_page_ref.c 1.4 KB

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