diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 21:59:46 +0800 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 21:59:46 +0800 |
commit | 614a9e849ca6ea24843795251cb30af525d5336b (patch) | |
tree | bf1344ab1a0d932c997b4e7646d062c290c7cedd /fs/ocfs2/ocfs2_trace.h | |
parent | 9558156bcf8e4750d20034e941213273743ed86a (diff) | |
download | op-kernel-dev-614a9e849ca6ea24843795251cb30af525d5336b.zip op-kernel-dev-614a9e849ca6ea24843795251cb30af525d5336b.tar.gz |
ocfs2: Remove FILE_IO from masklog.
Change all the "mlog(0," in fs/ocfs2/mmap.c to trace events.
And finally remove masklog FILE_IO.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 5958da5..77148e7 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h @@ -1092,6 +1092,31 @@ TRACE_EVENT(ocfs2_write_end_inline, ); /* End of trace events for fs/ocfs2/aops.c. */ + +/* Trace events for fs/ocfs2/mmap.c. */ + +TRACE_EVENT(ocfs2_fault, + TP_PROTO(unsigned long long ino, + void *area, void *page, unsigned long pgoff), + TP_ARGS(ino, area, page, pgoff), + TP_STRUCT__entry( + __field(unsigned long long, ino) + __field(void *, area) + __field(void *, page) + __field(unsigned long, pgoff) + ), + TP_fast_assign( + __entry->ino = ino; + __entry->area = area; + __entry->page = page; + __entry->pgoff = pgoff; + ), + TP_printk("%llu %p %p %lu", + __entry->ino, __entry->area, __entry->page, __entry->pgoff) +); + +/* End of trace events for fs/ocfs2/mmap.c. */ + #endif /* _TRACE_OCFS2_H */ /* This part must be outside protection */ |