diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-25 01:26:31 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-25 03:54:40 -0400 |
commit | e943a10d94f6076f7bc8da91828cbdca5fbf62fc (patch) | |
tree | 482befa0b77b78517631f6e158f07a45228f6919 | |
parent | 26c6b8879911df991dc780c67eaeb84c7629949d (diff) |
f2fs: add tracepoint for vm_page_mkwrite
This patch adds a tracepoint for f2fs_vm_page_mkwrite.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r-- | fs/f2fs/file.c | 1 | ||||
-rw-r--r-- | include/trace/events/f2fs.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index c80faa2fff39..2d4190a4abe3 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -88,6 +88,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma, | |||
88 | set_page_dirty(page); | 88 | set_page_dirty(page); |
89 | SetPageUptodate(page); | 89 | SetPageUptodate(page); |
90 | 90 | ||
91 | trace_f2fs_vm_page_mkwrite(page, DATA); | ||
91 | mapped: | 92 | mapped: |
92 | /* fill the page */ | 93 | /* fill the page */ |
93 | wait_on_page_writeback(page); | 94 | wait_on_page_writeback(page); |
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index ebde3afb89cd..e0dc355fa317 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h | |||
@@ -667,6 +667,13 @@ DEFINE_EVENT(f2fs__page, f2fs_set_page_dirty, | |||
667 | TP_ARGS(page, type) | 667 | TP_ARGS(page, type) |
668 | ); | 668 | ); |
669 | 669 | ||
670 | DEFINE_EVENT(f2fs__page, f2fs_vm_page_mkwrite, | ||
671 | |||
672 | TP_PROTO(struct page *page, int type), | ||
673 | |||
674 | TP_ARGS(page, type) | ||
675 | ); | ||
676 | |||
670 | TRACE_EVENT(f2fs_submit_write_page, | 677 | TRACE_EVENT(f2fs_submit_write_page, |
671 | 678 | ||
672 | TP_PROTO(struct page *page, block_t blk_addr, int type), | 679 | TP_PROTO(struct page *page, block_t blk_addr, int type), |