aboutsummaryrefslogtreecommitdiff
path: root/include/trace/page_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/page_alloc.h')
-rw-r--r--include/trace/page_alloc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/trace/page_alloc.h b/include/trace/page_alloc.h
new file mode 100644
index 00000000000..c30a389ea91
--- /dev/null
+++ b/include/trace/page_alloc.h
@@ -0,0 +1,16 @@
+#ifndef _TRACE_PAGE_ALLOC_H
+#define _TRACE_PAGE_ALLOC_H
+
+#include <linux/tracepoint.h>
+
+/*
+ * mm_page_alloc : page can be NULL.
+ */
+DECLARE_TRACE(page_alloc,
+ TP_PROTO(struct page *page, unsigned int order),
+ TP_ARGS(page, order));
+DECLARE_TRACE(page_free,
+ TP_PROTO(struct page *page, unsigned int order),
+ TP_ARGS(page, order));
+
+#endif