aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_trace.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-02-22 08:33:59 -0500
committerTao Ma <boyu.mt@taobao.com>2011-02-22 08:33:59 -0500
commit9558156bcf8e4750d20034e941213273743ed86a (patch)
tree08896a6c162938d34eade14509b85bb7f2116707 /fs/ocfs2/ocfs2_trace.h
parent198aac2838731691ca67e15fd8a56f65307d3677 (diff)
ocfs2: Remove mlog(0) from fs/ocfs2/aops.c
Remove all the "mlog(0," in fs/ocfs2/aops.c. Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r--fs/ocfs2/ocfs2_trace.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h
index a8b57ca7bdb5..5958da57f8ff 100644
--- a/fs/ocfs2/ocfs2_trace.h
+++ b/fs/ocfs2/ocfs2_trace.h
@@ -968,6 +968,130 @@ TRACE_EVENT(ocfs2_refcount_cow_hunk,
968); 968);
969 969
970/* End of trace events for fs/ocfs2/refcounttree.c. */ 970/* End of trace events for fs/ocfs2/refcounttree.c. */
971
972/* Trace events for fs/ocfs2/aops.c. */
973
974DECLARE_EVENT_CLASS(ocfs2__get_block,
975 TP_PROTO(unsigned long long ino, unsigned long long iblock,
976 void *bh_result, int create),
977 TP_ARGS(ino, iblock, bh_result, create),
978 TP_STRUCT__entry(
979 __field(unsigned long long, ino)
980 __field(unsigned long long, iblock)
981 __field(void *, bh_result)
982 __field(int, create)
983 ),
984 TP_fast_assign(
985 __entry->ino = ino;
986 __entry->iblock = iblock;
987 __entry->bh_result = bh_result;
988 __entry->create = create;
989 ),
990 TP_printk("%llu %llu %p %d",
991 __entry->ino, __entry->iblock,
992 __entry->bh_result, __entry->create)
993);
994
995#define DEFINE_OCFS2_GET_BLOCK_EVENT(name) \
996DEFINE_EVENT(ocfs2__get_block, name, \
997 TP_PROTO(unsigned long long ino, unsigned long long iblock, \
998 void *bh_result, int create), \
999 TP_ARGS(ino, iblock, bh_result, create))
1000
1001DEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_symlink_get_block);
1002
1003DEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_get_block);
1004
1005DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_get_block_end);
1006
1007DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_readpage);
1008
1009DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_writepage);
1010
1011DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_bmap);
1012
1013TRACE_EVENT(ocfs2_try_to_write_inline_data,
1014 TP_PROTO(unsigned long long ino, unsigned int len,
1015 unsigned long long pos, unsigned int flags),
1016 TP_ARGS(ino, len, pos, flags),
1017 TP_STRUCT__entry(
1018 __field(unsigned long long, ino)
1019 __field(unsigned int, len)
1020 __field(unsigned long long, pos)
1021 __field(unsigned int, flags)
1022 ),
1023 TP_fast_assign(
1024 __entry->ino = ino;
1025 __entry->len = len;
1026 __entry->pos = pos;
1027 __entry->flags = flags;
1028 ),
1029 TP_printk("%llu %u %llu 0x%x",
1030 __entry->ino, __entry->len, __entry->pos, __entry->flags)
1031);
1032
1033TRACE_EVENT(ocfs2_write_begin_nolock,
1034 TP_PROTO(unsigned long long ino,
1035 long long i_size, unsigned int i_clusters,
1036 unsigned long long pos, unsigned int len,
1037 unsigned int flags, void *page,
1038 unsigned int clusters, unsigned int extents_to_split),
1039 TP_ARGS(ino, i_size, i_clusters, pos, len, flags,
1040 page, clusters, extents_to_split),
1041 TP_STRUCT__entry(
1042 __field(unsigned long long, ino)
1043 __field(long long, i_size)
1044 __field(unsigned int, i_clusters)
1045 __field(unsigned long long, pos)
1046 __field(unsigned int, len)
1047 __field(unsigned int, flags)
1048 __field(void *, page)
1049 __field(unsigned int, clusters)
1050 __field(unsigned int, extents_to_split)
1051 ),
1052 TP_fast_assign(
1053 __entry->ino = ino;
1054 __entry->i_size = i_size;
1055 __entry->i_clusters = i_clusters;
1056 __entry->pos = pos;
1057 __entry->len = len;
1058 __entry->flags = flags;
1059 __entry->page = page;
1060 __entry->clusters = clusters;
1061 __entry->extents_to_split = extents_to_split;
1062 ),
1063 TP_printk("%llu %lld %u %llu %u %u %p %u %u",
1064 __entry->ino, __entry->i_size, __entry->i_clusters,
1065 __entry->pos, __entry->len,
1066 __entry->flags, __entry->page, __entry->clusters,
1067 __entry->extents_to_split)
1068);
1069
1070TRACE_EVENT(ocfs2_write_end_inline,
1071 TP_PROTO(unsigned long long ino,
1072 unsigned long long pos, unsigned int copied,
1073 unsigned int id_count, unsigned int features),
1074 TP_ARGS(ino, pos, copied, id_count, features),
1075 TP_STRUCT__entry(
1076 __field(unsigned long long, ino)
1077 __field(unsigned long long, pos)
1078 __field(unsigned int, copied)
1079 __field(unsigned int, id_count)
1080 __field(unsigned int, features)
1081 ),
1082 TP_fast_assign(
1083 __entry->ino = ino;
1084 __entry->pos = pos;
1085 __entry->copied = copied;
1086 __entry->id_count = id_count;
1087 __entry->features = features;
1088 ),
1089 TP_printk("%llu %llu %u %u %u",
1090 __entry->ino, __entry->pos, __entry->copied,
1091 __entry->id_count, __entry->features)
1092);
1093
1094/* End of trace events for fs/ocfs2/aops.c. */
971#endif /* _TRACE_OCFS2_H */ 1095#endif /* _TRACE_OCFS2_H */
972 1096
973/* This part must be outside protection */ 1097/* This part must be outside protection */