aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-17 20:58:08 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-10 18:08:47 -0400
commit8ce67cb07dbf6ba35aea1e07e8ad1ea004ced27b (patch)
tree519839e12edf66b3341cbb0679f3b25bafba6123 /include/trace
parent3c6c2bebef79999b1827041696dc1881e637e3af (diff)
f2fs: add some tracepoints to debug volatile and atomic writes
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/f2fs.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 09a56dc75f8d..75724bd28356 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -14,7 +14,11 @@
14 { NODE, "NODE" }, \ 14 { NODE, "NODE" }, \
15 { DATA, "DATA" }, \ 15 { DATA, "DATA" }, \
16 { META, "META" }, \ 16 { META, "META" }, \
17 { META_FLUSH, "META_FLUSH" }) 17 { META_FLUSH, "META_FLUSH" }, \
18 { INMEM, "INMEM" }, \
19 { INMEM_DROP, "INMEM_DROP" }, \
20 { IPU, "IN-PLACE" }, \
21 { OPU, "OUT-OF-PLACE" })
18 22
19#define F2FS_BIO_MASK(t) (t & (READA | WRITE_FLUSH_FUA)) 23#define F2FS_BIO_MASK(t) (t & (READA | WRITE_FLUSH_FUA))
20#define F2FS_BIO_EXTRA_MASK(t) (t & (REQ_META | REQ_PRIO)) 24#define F2FS_BIO_EXTRA_MASK(t) (t & (REQ_META | REQ_PRIO))
@@ -854,6 +858,13 @@ DEFINE_EVENT(f2fs__page, f2fs_writepage,
854 TP_ARGS(page, type) 858 TP_ARGS(page, type)
855); 859);
856 860
861DEFINE_EVENT(f2fs__page, f2fs_do_write_data_page,
862
863 TP_PROTO(struct page *page, int type),
864
865 TP_ARGS(page, type)
866);
867
857DEFINE_EVENT(f2fs__page, f2fs_readpage, 868DEFINE_EVENT(f2fs__page, f2fs_readpage,
858 869
859 TP_PROTO(struct page *page, int type), 870 TP_PROTO(struct page *page, int type),
@@ -875,6 +886,20 @@ DEFINE_EVENT(f2fs__page, f2fs_vm_page_mkwrite,
875 TP_ARGS(page, type) 886 TP_ARGS(page, type)
876); 887);
877 888
889DEFINE_EVENT(f2fs__page, f2fs_register_inmem_page,
890
891 TP_PROTO(struct page *page, int type),
892
893 TP_ARGS(page, type)
894);
895
896DEFINE_EVENT(f2fs__page, f2fs_commit_inmem_page,
897
898 TP_PROTO(struct page *page, int type),
899
900 TP_ARGS(page, type)
901);
902
878TRACE_EVENT(f2fs_writepages, 903TRACE_EVENT(f2fs_writepages,
879 904
880 TP_PROTO(struct inode *inode, struct writeback_control *wbc, int type), 905 TP_PROTO(struct inode *inode, struct writeback_control *wbc, int type),