aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_trace.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-02-22 09:24:57 -0500
committerTao Ma <boyu.mt@taobao.com>2011-02-22 09:24:57 -0500
commit64f3b2692724fdbe72697b77887685b5bd3f4a3c (patch)
treef741d846cd6895ea49e47278bcd765c5138a70ec /fs/ocfs2/ocfs2_trace.h
parent6218b90e7669d83cb8ad744f3400205d260597f2 (diff)
ocfs2: Remove masklog ML_INODE.
Remove mlog(0) from fs/ocfs2/inode.c and the masklog INODE. Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r--fs/ocfs2/ocfs2_trace.h136
1 files changed, 136 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h
index 16013b5588c6..052057a01ea8 100644
--- a/fs/ocfs2/ocfs2_trace.h
+++ b/fs/ocfs2/ocfs2_trace.h
@@ -114,6 +114,25 @@ DEFINE_EVENT(ocfs2__ull_uint, name, \
114 TP_PROTO(unsigned long long val1, unsigned int val2), \ 114 TP_PROTO(unsigned long long val1, unsigned int val2), \
115 TP_ARGS(val1, val2)) 115 TP_ARGS(val1, val2))
116 116
117DECLARE_EVENT_CLASS(ocfs2__ull_int,
118 TP_PROTO(unsigned long long value1, int value2),
119 TP_ARGS(value1, value2),
120 TP_STRUCT__entry(
121 __field(unsigned long long, value1)
122 __field(int, value2)
123 ),
124 TP_fast_assign(
125 __entry->value1 = value1;
126 __entry->value2 = value2;
127 ),
128 TP_printk("%llu %d", __entry->value1, __entry->value2)
129);
130
131#define DEFINE_OCFS2_ULL_INT_EVENT(name) \
132DEFINE_EVENT(ocfs2__ull_int, name, \
133 TP_PROTO(unsigned long long val1, int val2), \
134 TP_ARGS(val1, val2))
135
117DECLARE_EVENT_CLASS(ocfs2__ull_ull, 136DECLARE_EVENT_CLASS(ocfs2__ull_ull,
118 TP_PROTO(unsigned long long value1, unsigned long long value2), 137 TP_PROTO(unsigned long long value1, unsigned long long value2),
119 TP_ARGS(value1, value2), 138 TP_ARGS(value1, value2),
@@ -1354,6 +1373,123 @@ DEFINE_OCFS2_INT_EVENT(generic_file_aio_read_ret);
1354 1373
1355/* End of trace events for fs/ocfs2/file.c. */ 1374/* End of trace events for fs/ocfs2/file.c. */
1356 1375
1376/* Trace events for fs/ocfs2/inode.c. */
1377
1378TRACE_EVENT(ocfs2_iget_begin,
1379 TP_PROTO(unsigned long long ino, unsigned int flags, int sysfile_type),
1380 TP_ARGS(ino, flags, sysfile_type),
1381 TP_STRUCT__entry(
1382 __field(unsigned long long, ino)
1383 __field(unsigned int, flags)
1384 __field(int, sysfile_type)
1385 ),
1386 TP_fast_assign(
1387 __entry->ino = ino;
1388 __entry->flags = flags;
1389 __entry->sysfile_type = sysfile_type;
1390 ),
1391 TP_printk("%llu %u %d", __entry->ino,
1392 __entry->flags, __entry->sysfile_type)
1393);
1394
1395DEFINE_OCFS2_ULL_EVENT(ocfs2_iget5_locked);
1396
1397TRACE_EVENT(ocfs2_iget_end,
1398 TP_PROTO(void *inode, unsigned long long ino),
1399 TP_ARGS(inode, ino),
1400 TP_STRUCT__entry(
1401 __field(void *, inode)
1402 __field(unsigned long long, ino)
1403 ),
1404 TP_fast_assign(
1405 __entry->inode = inode;
1406 __entry->ino = ino;
1407 ),
1408 TP_printk("%p %llu", __entry->inode, __entry->ino)
1409);
1410
1411TRACE_EVENT(ocfs2_find_actor,
1412 TP_PROTO(void *inode, unsigned long long ino,
1413 void *args, unsigned long long fi_blkno),
1414 TP_ARGS(inode, ino, args, fi_blkno),
1415 TP_STRUCT__entry(
1416 __field(void *, inode)
1417 __field(unsigned long long, ino)
1418 __field(void *, args)
1419 __field(unsigned long long, fi_blkno)
1420 ),
1421 TP_fast_assign(
1422 __entry->inode = inode;
1423 __entry->ino = ino;
1424 __entry->args = args;
1425 __entry->fi_blkno = fi_blkno;
1426 ),
1427 TP_printk("%p %llu %p %llu", __entry->inode, __entry->ino,
1428 __entry->args, __entry->fi_blkno)
1429);
1430
1431DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_populate_inode);
1432
1433DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_read_locked_inode);
1434
1435DEFINE_OCFS2_INT_INT_EVENT(ocfs2_check_orphan_recovery_state);
1436
1437DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_inode_block);
1438
1439TRACE_EVENT(ocfs2_inode_is_valid_to_delete,
1440 TP_PROTO(void *task, void *dc_task, unsigned long long ino,
1441 unsigned int flags),
1442 TP_ARGS(task, dc_task, ino, flags),
1443 TP_STRUCT__entry(
1444 __field(void *, task)
1445 __field(void *, dc_task)
1446 __field(unsigned long long, ino)
1447 __field(unsigned int, flags)
1448 ),
1449 TP_fast_assign(
1450 __entry->task = task;
1451 __entry->dc_task = dc_task;
1452 __entry->ino = ino;
1453 __entry->flags = flags;
1454 ),
1455 TP_printk("%p %p %llu %u", __entry->task, __entry->dc_task,
1456 __entry->ino, __entry->flags)
1457);
1458
1459DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_query_inode_wipe_begin);
1460
1461DEFINE_OCFS2_UINT_EVENT(ocfs2_query_inode_wipe_succ);
1462
1463DEFINE_OCFS2_INT_INT_EVENT(ocfs2_query_inode_wipe_end);
1464
1465DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_cleanup_delete_inode);
1466
1467DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_delete_inode);
1468
1469DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_clear_inode);
1470
1471DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_drop_inode);
1472
1473TRACE_EVENT(ocfs2_inode_revalidate,
1474 TP_PROTO(void *inode, unsigned long long ino,
1475 unsigned int flags),
1476 TP_ARGS(inode, ino, flags),
1477 TP_STRUCT__entry(
1478 __field(void *, inode)
1479 __field(unsigned long long, ino)
1480 __field(unsigned int, flags)
1481 ),
1482 TP_fast_assign(
1483 __entry->inode = inode;
1484 __entry->ino = ino;
1485 __entry->flags = flags;
1486 ),
1487 TP_printk("%p %llu %u", __entry->inode, __entry->ino, __entry->flags)
1488);
1489
1490DEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty);
1491
1492/* End of trace events for fs/ocfs2/inode.c. */
1357#endif /* _TRACE_OCFS2_H */ 1493#endif /* _TRACE_OCFS2_H */
1358 1494
1359/* This part must be outside protection */ 1495/* This part must be outside protection */