aboutsummaryrefslogtreecommitdiff
path: root/include/trace/filemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/filemap.h')
-rw-r--r--include/trace/filemap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/trace/filemap.h b/include/trace/filemap.h
new file mode 100644
index 00000000000..14e90ba9a09
--- /dev/null
+++ b/include/trace/filemap.h
@@ -0,0 +1,19 @@
+#ifndef _TRACE_FILEMAP_H
+#define _TRACE_FILEMAP_H
+
+#include <linux/tracepoint.h>
+
+DECLARE_TRACE(wait_on_page_start,
+ TP_PROTO(struct page *page, int bit_nr),
+ TP_ARGS(page, bit_nr));
+DECLARE_TRACE(wait_on_page_end,
+ TP_PROTO(struct page *page, int bit_nr),
+ TP_ARGS(page, bit_nr));
+DECLARE_TRACE(add_to_page_cache,
+ TP_PROTO(struct address_space *mapping, pgoff_t offset),
+ TP_ARGS(mapping, offset));
+DECLARE_TRACE(remove_from_page_cache,
+ TP_PROTO(struct address_space *mapping),
+ TP_ARGS(mapping));
+
+#endif