diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-23 09:10:56 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-23 09:10:56 -0500 |
commit | 2661836e0ca07f57505563ec31aeee20b1758987 (patch) | |
tree | 4a21f3dfafc4178d9382b2236b04b19e92a741ec /fs/ocfs2/ocfs2_trace.h | |
parent | 402b418311f0d20a71451770d764a2e37b08dbcf (diff) |
ocfs2: Remove masklog ML_RESERVATIONS.
Remove mlog(0) from fs/ocfs2/reservations.c and the masklog RESERVATIONS.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 0fc2840d6fb1..1c040fcbd6e7 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h | |||
@@ -1809,6 +1809,122 @@ DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_reflink_xattr_buckets); | |||
1809 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_rec); | 1809 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_rec); |
1810 | 1810 | ||
1811 | /* End of trace events for fs/ocfs2/xattr.c. */ | 1811 | /* End of trace events for fs/ocfs2/xattr.c. */ |
1812 | |||
1813 | /* Trace events for fs/ocfs2/reservations.c. */ | ||
1814 | |||
1815 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_insert); | ||
1816 | |||
1817 | DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_begin); | ||
1818 | |||
1819 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_end); | ||
1820 | |||
1821 | TRACE_EVENT(ocfs2_resv_find_window_begin, | ||
1822 | TP_PROTO(unsigned int r_start, unsigned int r_end, unsigned int goal, | ||
1823 | unsigned int wanted, int empty_root), | ||
1824 | TP_ARGS(r_start, r_end, goal, wanted, empty_root), | ||
1825 | TP_STRUCT__entry( | ||
1826 | __field(unsigned int, r_start) | ||
1827 | __field(unsigned int, r_end) | ||
1828 | __field(unsigned int, goal) | ||
1829 | __field(unsigned int, wanted) | ||
1830 | __field(int, empty_root) | ||
1831 | ), | ||
1832 | TP_fast_assign( | ||
1833 | __entry->r_start = r_start; | ||
1834 | __entry->r_end = r_end; | ||
1835 | __entry->goal = goal; | ||
1836 | __entry->wanted = wanted; | ||
1837 | __entry->empty_root = empty_root; | ||
1838 | ), | ||
1839 | TP_printk("%u %u %u %u %d", __entry->r_start, __entry->r_end, | ||
1840 | __entry->goal, __entry->wanted, __entry->empty_root) | ||
1841 | ); | ||
1842 | |||
1843 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_find_window_prev); | ||
1844 | |||
1845 | DEFINE_OCFS2_INT_INT_EVENT(ocfs2_resv_find_window_next); | ||
1846 | |||
1847 | DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cannibalize_resv_begin); | ||
1848 | |||
1849 | TRACE_EVENT(ocfs2_cannibalize_resv_end, | ||
1850 | TP_PROTO(unsigned int start, unsigned int end, unsigned int len, | ||
1851 | unsigned int last_start, unsigned int last_len), | ||
1852 | TP_ARGS(start, end, len, last_start, last_len), | ||
1853 | TP_STRUCT__entry( | ||
1854 | __field(unsigned int, start) | ||
1855 | __field(unsigned int, end) | ||
1856 | __field(unsigned int, len) | ||
1857 | __field(unsigned int, last_start) | ||
1858 | __field(unsigned int, last_len) | ||
1859 | ), | ||
1860 | TP_fast_assign( | ||
1861 | __entry->start = start; | ||
1862 | __entry->end = end; | ||
1863 | __entry->len = len; | ||
1864 | __entry->last_start = last_start; | ||
1865 | __entry->last_len = last_len; | ||
1866 | ), | ||
1867 | TP_printk("%u %u %u %u %u", __entry->start, __entry->end, | ||
1868 | __entry->len, __entry->last_start, __entry->last_len) | ||
1869 | ); | ||
1870 | |||
1871 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_resv_bits); | ||
1872 | |||
1873 | TRACE_EVENT(ocfs2_resmap_claimed_bits_begin, | ||
1874 | TP_PROTO(unsigned int cstart, unsigned int cend, unsigned int clen, | ||
1875 | unsigned int r_start, unsigned int r_end, unsigned int r_len, | ||
1876 | unsigned int last_start, unsigned int last_len), | ||
1877 | TP_ARGS(cstart, cend, clen, r_start, r_end, | ||
1878 | r_len, last_start, last_len), | ||
1879 | TP_STRUCT__entry( | ||
1880 | __field(unsigned int, cstart) | ||
1881 | __field(unsigned int, cend) | ||
1882 | __field(unsigned int, clen) | ||
1883 | __field(unsigned int, r_start) | ||
1884 | __field(unsigned int, r_end) | ||
1885 | __field(unsigned int, r_len) | ||
1886 | __field(unsigned int, last_start) | ||
1887 | __field(unsigned int, last_len) | ||
1888 | ), | ||
1889 | TP_fast_assign( | ||
1890 | __entry->cstart = cstart; | ||
1891 | __entry->cend = cend; | ||
1892 | __entry->clen = clen; | ||
1893 | __entry->r_start = r_start; | ||
1894 | __entry->r_end = r_end; | ||
1895 | __entry->r_len = r_len; | ||
1896 | __entry->last_start = last_start; | ||
1897 | __entry->last_len = last_len; | ||
1898 | ), | ||
1899 | TP_printk("%u %u %u %u %u %u %u %u", | ||
1900 | __entry->cstart, __entry->cend, __entry->clen, | ||
1901 | __entry->r_start, __entry->r_end, __entry->r_len, | ||
1902 | __entry->last_start, __entry->last_len) | ||
1903 | ); | ||
1904 | |||
1905 | TRACE_EVENT(ocfs2_resmap_claimed_bits_end, | ||
1906 | TP_PROTO(unsigned int start, unsigned int end, unsigned int len, | ||
1907 | unsigned int last_start, unsigned int last_len), | ||
1908 | TP_ARGS(start, end, len, last_start, last_len), | ||
1909 | TP_STRUCT__entry( | ||
1910 | __field(unsigned int, start) | ||
1911 | __field(unsigned int, end) | ||
1912 | __field(unsigned int, len) | ||
1913 | __field(unsigned int, last_start) | ||
1914 | __field(unsigned int, last_len) | ||
1915 | ), | ||
1916 | TP_fast_assign( | ||
1917 | __entry->start = start; | ||
1918 | __entry->end = end; | ||
1919 | __entry->len = len; | ||
1920 | __entry->last_start = last_start; | ||
1921 | __entry->last_len = last_len; | ||
1922 | ), | ||
1923 | TP_printk("%u %u %u %u %u", __entry->start, __entry->end, | ||
1924 | __entry->len, __entry->last_start, __entry->last_len) | ||
1925 | ); | ||
1926 | |||
1927 | /* End of trace events for fs/ocfs2/reservations.c. */ | ||
1812 | #endif /* _TRACE_OCFS2_H */ | 1928 | #endif /* _TRACE_OCFS2_H */ |
1813 | 1929 | ||
1814 | /* This part must be outside protection */ | 1930 | /* This part must be outside protection */ |