1 #include <linux/mm_types.h>
2 #include <linux/tracepoint.h>
4 #define CREATE_TRACE_POINTS
5 #include <trace/events/page_ref.h>
7 void __page_ref_set(struct page *page, int v)
9 trace_page_ref_set(page, v);
11 EXPORT_SYMBOL(__page_ref_set);
12 EXPORT_TRACEPOINT_SYMBOL(page_ref_set);
14 void __page_ref_mod(struct page *page, int v)
16 trace_page_ref_mod(page, v);
18 EXPORT_SYMBOL(__page_ref_mod);
19 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod);
21 void __page_ref_mod_and_test(struct page *page, int v, int ret)
23 trace_page_ref_mod_and_test(page, v, ret);
25 EXPORT_SYMBOL(__page_ref_mod_and_test);
26 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_test);
28 void __page_ref_mod_and_return(struct page *page, int v, int ret)
30 trace_page_ref_mod_and_return(page, v, ret);
32 EXPORT_SYMBOL(__page_ref_mod_and_return);
33 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_return);
35 void __page_ref_mod_unless(struct page *page, int v, int u)
37 trace_page_ref_mod_unless(page, v, u);
39 EXPORT_SYMBOL(__page_ref_mod_unless);
40 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_unless);
42 void __page_ref_freeze(struct page *page, int v, int ret)
44 trace_page_ref_freeze(page, v, ret);
46 EXPORT_SYMBOL(__page_ref_freeze);
47 EXPORT_TRACEPOINT_SYMBOL(page_ref_freeze);
49 void __page_ref_unfreeze(struct page *page, int v)
51 trace_page_ref_unfreeze(page, v);
53 EXPORT_SYMBOL(__page_ref_unfreeze);
54 EXPORT_TRACEPOINT_SYMBOL(page_ref_unfreeze);