aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_trace.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-02-23 08:29:08 -0500
committerTao Ma <boyu.mt@taobao.com>2011-02-23 08:29:08 -0500
commit32a42d392bf9b8f90f41434ccb3605e958b16251 (patch)
tree56c8db7307fd74340635817d692a0fcddb5eece2 /fs/ocfs2/ocfs2_trace.h
parentb5770f98b00e94dd573e3438427de09733fe2039 (diff)
ocfs2: Remove masklog ML_SUPER.
Remove mlog(0) from fs/ocfs2/super.c and the masklog SUPER. Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r--fs/ocfs2/ocfs2_trace.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h
index 876b119d3656..75900635109b 100644
--- a/fs/ocfs2/ocfs2_trace.h
+++ b/fs/ocfs2/ocfs2_trace.h
@@ -57,6 +57,23 @@ DEFINE_EVENT(ocfs2__ull, name, \
57 TP_PROTO(unsigned long long num), \ 57 TP_PROTO(unsigned long long num), \
58 TP_ARGS(num)) 58 TP_ARGS(num))
59 59
60DECLARE_EVENT_CLASS(ocfs2__pointer,
61 TP_PROTO(void *pointer),
62 TP_ARGS(pointer),
63 TP_STRUCT__entry(
64 __field(void *, pointer)
65 ),
66 TP_fast_assign(
67 __entry->pointer = pointer;
68 ),
69 TP_printk("%p", __entry->pointer)
70);
71
72#define DEFINE_OCFS2_POINTER_EVENT(name) \
73DEFINE_EVENT(ocfs2__pointer, name, \
74 TP_PROTO(void *pointer), \
75 TP_ARGS(pointer))
76
60DECLARE_EVENT_CLASS(ocfs2__int_int, 77DECLARE_EVENT_CLASS(ocfs2__int_int,
61 TP_PROTO(int value1, int value2), 78 TP_PROTO(int value1, int value2),
62 TP_ARGS(value1, value2), 79 TP_ARGS(value1, value2),
@@ -1537,6 +1554,97 @@ DEFINE_OCFS2_INT_EVENT(ocfs2_do_node_down);
1537 1554
1538/* End of trace events for fs/ocfs2/heartbeat.c. */ 1555/* End of trace events for fs/ocfs2/heartbeat.c. */
1539 1556
1557/* Trace events for fs/ocfs2/super.c. */
1558
1559TRACE_EVENT(ocfs2_remount,
1560 TP_PROTO(unsigned long s_flags, unsigned long osb_flags, int flags),
1561 TP_ARGS(s_flags, osb_flags, flags),
1562 TP_STRUCT__entry(
1563 __field(unsigned long, s_flags)
1564 __field(unsigned long, osb_flags)
1565 __field(int, flags)
1566 ),
1567 TP_fast_assign(
1568 __entry->s_flags = s_flags;
1569 __entry->osb_flags = osb_flags;
1570 __entry->flags = flags;
1571 ),
1572 TP_printk("%lu %lu %d", __entry->s_flags,
1573 __entry->osb_flags, __entry->flags)
1574);
1575
1576TRACE_EVENT(ocfs2_fill_super,
1577 TP_PROTO(void *sb, void *data, int silent),
1578 TP_ARGS(sb, data, silent),
1579 TP_STRUCT__entry(
1580 __field(void *, sb)
1581 __field(void *, data)
1582 __field(int, silent)
1583 ),
1584 TP_fast_assign(
1585 __entry->sb = sb;
1586 __entry->data = data;
1587 __entry->silent = silent;
1588 ),
1589 TP_printk("%p %p %d", __entry->sb,
1590 __entry->data, __entry->silent)
1591);
1592
1593TRACE_EVENT(ocfs2_parse_options,
1594 TP_PROTO(int is_remount, char *options),
1595 TP_ARGS(is_remount, options),
1596 TP_STRUCT__entry(
1597 __field(int, is_remount)
1598 __string(options, options)
1599 ),
1600 TP_fast_assign(
1601 __entry->is_remount = is_remount;
1602 __assign_str(options, options);
1603 ),
1604 TP_printk("%d %s", __entry->is_remount, __get_str(options))
1605);
1606
1607DEFINE_OCFS2_POINTER_EVENT(ocfs2_put_super);
1608
1609TRACE_EVENT(ocfs2_statfs,
1610 TP_PROTO(void *sb, void *buf),
1611 TP_ARGS(sb, buf),
1612 TP_STRUCT__entry(
1613 __field(void *, sb)
1614 __field(void *, buf)
1615 ),
1616 TP_fast_assign(
1617 __entry->sb = sb;
1618 __entry->buf = buf;
1619 ),
1620 TP_printk("%p %p", __entry->sb, __entry->buf)
1621);
1622
1623DEFINE_OCFS2_POINTER_EVENT(ocfs2_dismount_volume);
1624
1625TRACE_EVENT(ocfs2_initialize_super,
1626 TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir,
1627 unsigned long long system_dir, int cluster_bits),
1628 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits),
1629 TP_STRUCT__entry(
1630 __string(label, label)
1631 __string(uuid_str, uuid_str)
1632 __field(unsigned long long, root_dir)
1633 __field(unsigned long long, system_dir)
1634 __field(int, cluster_bits)
1635 ),
1636 TP_fast_assign(
1637 __assign_str(label, label);
1638 __assign_str(uuid_str, uuid_str);
1639 __entry->root_dir = root_dir;
1640 __entry->system_dir = system_dir;
1641 __entry->cluster_bits = cluster_bits;
1642 ),
1643 TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
1644 __entry->root_dir, __entry->system_dir, __entry->cluster_bits)
1645);
1646
1647/* End of trace events for fs/ocfs2/super.c. */
1540#endif /* _TRACE_OCFS2_H */ 1648#endif /* _TRACE_OCFS2_H */
1541 1649
1542/* This part must be outside protection */ 1650/* This part must be outside protection */