diff options
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 75900635109b..0fc2840d6fb1 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h | |||
@@ -74,6 +74,23 @@ DEFINE_EVENT(ocfs2__pointer, name, \ | |||
74 | TP_PROTO(void *pointer), \ | 74 | TP_PROTO(void *pointer), \ |
75 | TP_ARGS(pointer)) | 75 | TP_ARGS(pointer)) |
76 | 76 | ||
77 | DECLARE_EVENT_CLASS(ocfs2__string, | ||
78 | TP_PROTO(const char *name), | ||
79 | TP_ARGS(name), | ||
80 | TP_STRUCT__entry( | ||
81 | __string(name,name) | ||
82 | ), | ||
83 | TP_fast_assign( | ||
84 | __assign_str(name, name); | ||
85 | ), | ||
86 | TP_printk("%s", __get_str(name)) | ||
87 | ); | ||
88 | |||
89 | #define DEFINE_OCFS2_STRING_EVENT(name) \ | ||
90 | DEFINE_EVENT(ocfs2__string, name, \ | ||
91 | TP_PROTO(const char *name), \ | ||
92 | TP_ARGS(name)) | ||
93 | |||
77 | DECLARE_EVENT_CLASS(ocfs2__int_int, | 94 | DECLARE_EVENT_CLASS(ocfs2__int_int, |
78 | TP_PROTO(int value1, int value2), | 95 | TP_PROTO(int value1, int value2), |
79 | TP_ARGS(value1, value2), | 96 | TP_ARGS(value1, value2), |
@@ -317,6 +334,33 @@ DEFINE_EVENT(ocfs2__ull_uint_uint_uint, name, \ | |||
317 | unsigned int value2, unsigned int value3), \ | 334 | unsigned int value2, unsigned int value3), \ |
318 | TP_ARGS(ull, value1, value2, value3)) | 335 | TP_ARGS(ull, value1, value2, value3)) |
319 | 336 | ||
337 | DECLARE_EVENT_CLASS(ocfs2__ull_ull_uint_uint, | ||
338 | TP_PROTO(unsigned long long value1, unsigned long long value2, | ||
339 | unsigned int value3, unsigned int value4), | ||
340 | TP_ARGS(value1, value2, value3, value4), | ||
341 | TP_STRUCT__entry( | ||
342 | __field(unsigned long long, value1) | ||
343 | __field(unsigned long long, value2) | ||
344 | __field(unsigned int, value3) | ||
345 | __field(unsigned int, value4) | ||
346 | ), | ||
347 | TP_fast_assign( | ||
348 | __entry->value1 = value1; | ||
349 | __entry->value2 = value2; | ||
350 | __entry->value3 = value3; | ||
351 | __entry->value4 = value4; | ||
352 | ), | ||
353 | TP_printk("%llu %llu %u %u", | ||
354 | __entry->value1, __entry->value2, | ||
355 | __entry->value3, __entry->value4) | ||
356 | ); | ||
357 | |||
358 | #define DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(name) \ | ||
359 | DEFINE_EVENT(ocfs2__ull_ull_uint_uint, name, \ | ||
360 | TP_PROTO(unsigned long long ull, unsigned long long ull1, \ | ||
361 | unsigned int value2, unsigned int value3), \ | ||
362 | TP_ARGS(ull, ull1, value2, value3)) | ||
363 | |||
320 | /* Trace events for fs/ocfs2/alloc.c. */ | 364 | /* Trace events for fs/ocfs2/alloc.c. */ |
321 | DECLARE_EVENT_CLASS(ocfs2__btree_ops, | 365 | DECLARE_EVENT_CLASS(ocfs2__btree_ops, |
322 | TP_PROTO(unsigned long long owner,\ | 366 | TP_PROTO(unsigned long long owner,\ |
@@ -1645,6 +1689,126 @@ TRACE_EVENT(ocfs2_initialize_super, | |||
1645 | ); | 1689 | ); |
1646 | 1690 | ||
1647 | /* End of trace events for fs/ocfs2/super.c. */ | 1691 | /* End of trace events for fs/ocfs2/super.c. */ |
1692 | |||
1693 | /* Trace events for fs/ocfs2/xattr.c. */ | ||
1694 | |||
1695 | DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_xattr_block); | ||
1696 | |||
1697 | DEFINE_OCFS2_UINT_EVENT(ocfs2_xattr_extend_allocation); | ||
1698 | |||
1699 | TRACE_EVENT(ocfs2_init_xattr_set_ctxt, | ||
1700 | TP_PROTO(const char *name, int meta, int clusters, int credits), | ||
1701 | TP_ARGS(name, meta, clusters, credits), | ||
1702 | TP_STRUCT__entry( | ||
1703 | __string(name, name) | ||
1704 | __field(int, meta) | ||
1705 | __field(int, clusters) | ||
1706 | __field(int, credits) | ||
1707 | ), | ||
1708 | TP_fast_assign( | ||
1709 | __assign_str(name, name); | ||
1710 | __entry->meta = meta; | ||
1711 | __entry->clusters = clusters; | ||
1712 | __entry->credits = credits; | ||
1713 | ), | ||
1714 | TP_printk("%s %d %d %d", __get_str(name), __entry->meta, | ||
1715 | __entry->clusters, __entry->credits) | ||
1716 | ); | ||
1717 | |||
1718 | DECLARE_EVENT_CLASS(ocfs2__xattr_find, | ||
1719 | TP_PROTO(unsigned long long ino, const char *name, int name_index, | ||
1720 | unsigned int hash, unsigned long long location, | ||
1721 | int xe_index), | ||
1722 | TP_ARGS(ino, name, name_index, hash, location, xe_index), | ||
1723 | TP_STRUCT__entry( | ||
1724 | __field(unsigned long long, ino) | ||
1725 | __string(name, name) | ||
1726 | __field(int, name_index) | ||
1727 | __field(unsigned int, hash) | ||
1728 | __field(unsigned long long, location) | ||
1729 | __field(int, xe_index) | ||
1730 | ), | ||
1731 | TP_fast_assign( | ||
1732 | __entry->ino = ino; | ||
1733 | __assign_str(name, name); | ||
1734 | __entry->name_index = name_index; | ||
1735 | __entry->hash = hash; | ||
1736 | __entry->location = location; | ||
1737 | __entry->xe_index = xe_index; | ||
1738 | ), | ||
1739 | TP_printk("%llu %s %d %u %llu %d", __entry->ino, __get_str(name), | ||
1740 | __entry->name_index, __entry->hash, __entry->location, | ||
1741 | __entry->xe_index) | ||
1742 | ); | ||
1743 | |||
1744 | #define DEFINE_OCFS2_XATTR_FIND_EVENT(name) \ | ||
1745 | DEFINE_EVENT(ocfs2__xattr_find, name, \ | ||
1746 | TP_PROTO(unsigned long long ino, const char *name, int name_index, \ | ||
1747 | unsigned int hash, unsigned long long bucket, \ | ||
1748 | int xe_index), \ | ||
1749 | TP_ARGS(ino, name, name_index, hash, bucket, xe_index)) | ||
1750 | |||
1751 | DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_bucket_find); | ||
1752 | |||
1753 | DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find); | ||
1754 | |||
1755 | DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find_rec); | ||
1756 | |||
1757 | DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_iterate_xattr_buckets); | ||
1758 | |||
1759 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_iterate_xattr_bucket); | ||
1760 | |||
1761 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cp_xattr_block_to_bucket_begin); | ||
1762 | |||
1763 | DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cp_xattr_block_to_bucket_end); | ||
1764 | |||
1765 | DEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block_begin); | ||
1766 | |||
1767 | DEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block); | ||
1768 | |||
1769 | DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_defrag_xattr_bucket); | ||
1770 | |||
1771 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_bucket_cross_cluster); | ||
1772 | |||
1773 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_divide_xattr_bucket_begin); | ||
1774 | |||
1775 | DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_divide_xattr_bucket_move); | ||
1776 | |||
1777 | DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_cp_xattr_bucket); | ||
1778 | |||
1779 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_buckets); | ||
1780 | |||
1781 | DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_adjust_xattr_cross_cluster); | ||
1782 | |||
1783 | DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_begin); | ||
1784 | |||
1785 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_add_new_xattr_cluster); | ||
1786 | |||
1787 | DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_insert); | ||
1788 | |||
1789 | DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_extend_xattr_bucket); | ||
1790 | |||
1791 | DEFINE_OCFS2_ULL_EVENT(ocfs2_add_new_xattr_bucket); | ||
1792 | |||
1793 | DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_xattr_bucket_value_truncate); | ||
1794 | |||
1795 | DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_rm_xattr_cluster); | ||
1796 | |||
1797 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_header); | ||
1798 | |||
1799 | DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_create_empty_xattr_block); | ||
1800 | |||
1801 | DEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_bucket); | ||
1802 | |||
1803 | DEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_index_block); | ||
1804 | |||
1805 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_xattr_bucket_value_refcount); | ||
1806 | |||
1807 | DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_reflink_xattr_buckets); | ||
1808 | |||
1809 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_rec); | ||
1810 | |||
1811 | /* End of trace events for fs/ocfs2/xattr.c. */ | ||
1648 | #endif /* _TRACE_OCFS2_H */ | 1812 | #endif /* _TRACE_OCFS2_H */ |
1649 | 1813 | ||
1650 | /* This part must be outside protection */ | 1814 | /* This part must be outside protection */ |