aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_trace.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_trace.h79
1 files changed, 11 insertions, 68 deletions
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h
index e5252c4d95c9..37df9ad7fd1a 100644
--- a/fs/xfs/linux-2.6/xfs_trace.h
+++ b/fs/xfs/linux-2.6/xfs_trace.h
@@ -1151,44 +1151,7 @@ TRACE_EVENT(xfs_bunmap,
1151 1151
1152); 1152);
1153 1153
1154#define XFS_BUSY_SYNC \ 1154DECLARE_EVENT_CLASS(xfs_busy_class,
1155 { 0, "async" }, \
1156 { 1, "sync" }
1157
1158TRACE_EVENT(xfs_alloc_busy,
1159 TP_PROTO(struct xfs_trans *trans, xfs_agnumber_t agno,
1160 xfs_agblock_t agbno, xfs_extlen_t len, int sync),
1161 TP_ARGS(trans, agno, agbno, len, sync),
1162 TP_STRUCT__entry(
1163 __field(dev_t, dev)
1164 __field(struct xfs_trans *, tp)
1165 __field(int, tid)
1166 __field(xfs_agnumber_t, agno)
1167 __field(xfs_agblock_t, agbno)
1168 __field(xfs_extlen_t, len)
1169 __field(int, sync)
1170 ),
1171 TP_fast_assign(
1172 __entry->dev = trans->t_mountp->m_super->s_dev;
1173 __entry->tp = trans;
1174 __entry->tid = trans->t_ticket->t_tid;
1175 __entry->agno = agno;
1176 __entry->agbno = agbno;
1177 __entry->len = len;
1178 __entry->sync = sync;
1179 ),
1180 TP_printk("dev %d:%d trans 0x%p tid 0x%x agno %u agbno %u len %u %s",
1181 MAJOR(__entry->dev), MINOR(__entry->dev),
1182 __entry->tp,
1183 __entry->tid,
1184 __entry->agno,
1185 __entry->agbno,
1186 __entry->len,
1187 __print_symbolic(__entry->sync, XFS_BUSY_SYNC))
1188
1189);
1190
1191TRACE_EVENT(xfs_alloc_unbusy,
1192 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, 1155 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
1193 xfs_agblock_t agbno, xfs_extlen_t len), 1156 xfs_agblock_t agbno, xfs_extlen_t len),
1194 TP_ARGS(mp, agno, agbno, len), 1157 TP_ARGS(mp, agno, agbno, len),
@@ -1210,36 +1173,16 @@ TRACE_EVENT(xfs_alloc_unbusy,
1210 __entry->agbno, 1173 __entry->agbno,
1211 __entry->len) 1174 __entry->len)
1212); 1175);
1213 1176#define DEFINE_BUSY_EVENT(name) \
1214#define XFS_BUSY_STATES \ 1177DEFINE_EVENT(xfs_busy_class, name, \
1215 { 0, "missing" }, \ 1178 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
1216 { 1, "found" } 1179 xfs_agblock_t agbno, xfs_extlen_t len), \
1217 1180 TP_ARGS(mp, agno, agbno, len))
1218TRACE_EVENT(xfs_alloc_busysearch, 1181DEFINE_BUSY_EVENT(xfs_alloc_busy);
1219 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, 1182DEFINE_BUSY_EVENT(xfs_alloc_busy_enomem);
1220 xfs_agblock_t agbno, xfs_extlen_t len, int found), 1183DEFINE_BUSY_EVENT(xfs_alloc_busy_force);
1221 TP_ARGS(mp, agno, agbno, len, found), 1184DEFINE_BUSY_EVENT(xfs_alloc_busy_reuse);
1222 TP_STRUCT__entry( 1185DEFINE_BUSY_EVENT(xfs_alloc_busy_clear);
1223 __field(dev_t, dev)
1224 __field(xfs_agnumber_t, agno)
1225 __field(xfs_agblock_t, agbno)
1226 __field(xfs_extlen_t, len)
1227 __field(int, found)
1228 ),
1229 TP_fast_assign(
1230 __entry->dev = mp->m_super->s_dev;
1231 __entry->agno = agno;
1232 __entry->agbno = agbno;
1233 __entry->len = len;
1234 __entry->found = found;
1235 ),
1236 TP_printk("dev %d:%d agno %u agbno %u len %u %s",
1237 MAJOR(__entry->dev), MINOR(__entry->dev),
1238 __entry->agno,
1239 __entry->agbno,
1240 __entry->len,
1241 __print_symbolic(__entry->found, XFS_BUSY_STATES))
1242);
1243 1186
1244TRACE_EVENT(xfs_alloc_busy_trim, 1187TRACE_EVENT(xfs_alloc_busy_trim,
1245 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, 1188 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,