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