2 #define TRACE_SYSTEM ocfs2
4 #if !defined(_TRACE_OCFS2_H) || defined(TRACE_HEADER_MULTI_READ)
21 #define DEFINE_OCFS2_INT_EVENT(name) \
22 DEFINE_EVENT(ocfs2__int, name, \
38 #define DEFINE_OCFS2_UINT_EVENT(name) \
39 DEFINE_EVENT(ocfs2__uint, name, \
40 TP_PROTO(unsigned int num), \
47 __field(
unsigned long long, blkno)
55 #define DEFINE_OCFS2_ULL_EVENT(name) \
56 DEFINE_EVENT(ocfs2__ull, name, \
57 TP_PROTO(unsigned long long num), \
72 #define DEFINE_OCFS2_POINTER_EVENT(name) \
73 DEFINE_EVENT(ocfs2__pointer, name, \
74 TP_PROTO(void *pointer), \
89 #define DEFINE_OCFS2_STRING_EVENT(name) \
90 DEFINE_EVENT(ocfs2__string, name, \
91 TP_PROTO(const char *name), \
108 #define DEFINE_OCFS2_INT_INT_EVENT(name) \
109 DEFINE_EVENT(ocfs2__int_int, name, \
110 TP_PROTO(int val1, int val2), \
114 TP_PROTO(
unsigned int value1,
int value2),
127 #define DEFINE_OCFS2_UINT_INT_EVENT(name) \
128 DEFINE_EVENT(ocfs2__uint_int, name, \
129 TP_PROTO(unsigned int val1, int val2), \
133 TP_PROTO(
unsigned int value1,
unsigned int value2),
146 #define DEFINE_OCFS2_UINT_UINT_EVENT(name) \
147 DEFINE_EVENT(ocfs2__uint_uint, name, \
148 TP_PROTO(unsigned int val1, unsigned int val2), \
152 TP_PROTO(
unsigned long long value1,
unsigned int value2),
155 __field(
unsigned long long, value1)
165 #define DEFINE_OCFS2_ULL_UINT_EVENT(name) \
166 DEFINE_EVENT(ocfs2__ull_uint, name, \
167 TP_PROTO(unsigned long long val1, unsigned int val2), \
171 TP_PROTO(
unsigned long long value1,
int value2),
174 __field(
unsigned long long, value1)
184 #define DEFINE_OCFS2_ULL_INT_EVENT(name) \
185 DEFINE_EVENT(ocfs2__ull_int, name, \
186 TP_PROTO(unsigned long long val1, int val2), \
190 TP_PROTO(
unsigned long long value1,
unsigned long long value2),
193 __field(
unsigned long long, value1)
194 __field(
unsigned long long, value2)
203 #define DEFINE_OCFS2_ULL_ULL_EVENT(name) \
204 DEFINE_EVENT(ocfs2__ull_ull, name, \
205 TP_PROTO(unsigned long long val1, unsigned long long val2), \
210 unsigned long long value2,
unsigned int value3),
211 TP_ARGS(value1, value2, value3),
213 __field(
unsigned long long, value1)
214 __field(
unsigned long long, value2)
226 #define DEFINE_OCFS2_ULL_ULL_UINT_EVENT(name) \
227 DEFINE_EVENT(ocfs2__ull_ull_uint, name, \
228 TP_PROTO(unsigned long long val1, \
229 unsigned long long val2, unsigned int val3), \
230 TP_ARGS(val1, val2, val3))
234 unsigned int value2,
unsigned int value3),
235 TP_ARGS(value1, value2, value3),
237 __field(
unsigned long long, value1)
250 #define DEFINE_OCFS2_ULL_UINT_UINT_EVENT(name) \
251 DEFINE_EVENT(ocfs2__ull_uint_uint, name, \
252 TP_PROTO(unsigned long long val1, \
253 unsigned int val2, unsigned int val3), \
254 TP_ARGS(val1, val2, val3))
257 TP_PROTO(
unsigned int value1,
unsigned int value2,
258 unsigned int value3),
259 TP_ARGS(value1, value2, value3),
261 __field(
unsigned int, value1 )
262 __field(
unsigned int, value2 )
263 __field(
unsigned int, value3 )
273 #define DEFINE_OCFS2_UINT_UINT_UINT_EVENT(name) \
274 DEFINE_EVENT(ocfs2__uint_uint_uint, name, \
275 TP_PROTO(unsigned int value1, unsigned int value2, \
276 unsigned int value3), \
277 TP_ARGS(value1, value2, value3))
281 unsigned long long value2,
unsigned long long value3),
282 TP_ARGS(value1, value2, value3),
284 __field(
unsigned long long, value1)
285 __field(
unsigned long long, value2)
286 __field(
unsigned long long, value3)
297 #define DEFINE_OCFS2_ULL_ULL_ULL_EVENT(name) \
298 DEFINE_EVENT(ocfs2__ull_ull_ull, name, \
299 TP_PROTO(unsigned long long value1, unsigned long long value2, \
300 unsigned long long value3), \
301 TP_ARGS(value1, value2, value3))
304 TP_PROTO(
unsigned long long ull,
int value1,
int value2,
int value3),
305 TP_ARGS(ull, value1, value2, value3),
307 __field(
unsigned long long, ull )
323 #define DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(name) \
324 DEFINE_EVENT(ocfs2__ull_int_int_int, name, \
325 TP_PROTO(unsigned long long ull, int value1, \
326 int value2, int value3), \
327 TP_ARGS(ull, value1, value2, value3))
330 TP_PROTO(
unsigned long long ull,
unsigned int value1,
331 unsigned int value2,
unsigned int value3),
332 TP_ARGS(ull, value1, value2, value3),
334 __field(
unsigned long long, ull)
350 #define DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(name) \
351 DEFINE_EVENT(ocfs2__ull_uint_uint_uint, name, \
352 TP_PROTO(unsigned long long ull, unsigned int value1, \
353 unsigned int value2, unsigned int value3), \
354 TP_ARGS(ull, value1, value2, value3))
357 TP_PROTO(
unsigned long long value1,
unsigned long long value2,
358 unsigned int value3,
unsigned int value4),
359 TP_ARGS(value1, value2, value3, value4),
361 __field(
unsigned long long, value1)
362 __field(
unsigned long long, value2)
377 #define DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(name) \
378 DEFINE_EVENT(ocfs2__ull_ull_uint_uint, name, \
379 TP_PROTO(unsigned long long ull, unsigned long long ull1, \
380 unsigned int value2, unsigned int value3), \
381 TP_ARGS(ull, ull1, value2, value3))
386 unsigned int value1,
unsigned int value2),
387 TP_ARGS(owner, value1, value2),
389 __field(
unsigned long long, owner)
402 #define DEFINE_OCFS2_BTREE_EVENT(name) \
403 DEFINE_EVENT(ocfs2__btree_ops, name, \
404 TP_PROTO(unsigned long long owner, \
405 unsigned int value1, unsigned int value2), \
406 TP_ARGS(owner, value1, value2))
426 __field(
unsigned long long, owner)
437 TP_PROTO(
int subtree_root,
unsigned long long blkno,
439 TP_ARGS(subtree_root, blkno, depth),
442 __field(
unsigned long long, blkno)
446 __entry->subtree_root = subtree_root;
455 TP_PROTO(
unsigned int ins_appending,
unsigned int ins_contig,
456 int ins_contig_index,
int free_records,
int ins_tree_depth),
457 TP_ARGS(ins_appending, ins_contig, ins_contig_index, free_records,
460 __field(
unsigned int, ins_appending)
461 __field(
unsigned int, ins_contig)
467 __entry->ins_appending = ins_appending;
468 __entry->ins_contig = ins_contig;
469 __entry->ins_contig_index = ins_contig_index;
470 __entry->free_records = free_records;
471 __entry->ins_tree_depth = ins_tree_depth;
480 TP_PROTO(
int split_index,
unsigned int c_contig_type,
481 unsigned int c_has_empty_extent,
482 unsigned int c_split_covers_rec),
483 TP_ARGS(split_index, c_contig_type,
484 c_has_empty_extent, c_split_covers_rec),
487 __field(
unsigned int, c_contig_type)
488 __field(
unsigned int, c_has_empty_extent)
489 __field(
unsigned int, c_split_covers_rec)
492 __entry->split_index = split_index;
493 __entry->c_contig_type = c_contig_type;
494 __entry->c_has_empty_extent = c_has_empty_extent;
495 __entry->c_split_covers_rec = c_split_covers_rec;
502 TP_PROTO(
unsigned long long owner,
unsigned int cpos,
503 unsigned int len,
int index,
504 unsigned int e_cpos,
unsigned int clusters),
505 TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
507 __field(
unsigned long long, owner)
512 __field(
unsigned int, clusters)
528 TP_PROTO(
unsigned long long ino,
unsigned int new_cpos,
529 unsigned int clusters,
unsigned int depth),
530 TP_ARGS(ino, new_cpos, clusters, depth),
532 __field(
unsigned long long, ino)
533 __field(
unsigned int, new_cpos)
534 __field(
unsigned int, clusters)
552 __field(
unsigned long long, blkno)
561 TP_PROTO(
unsigned int insert_cpos,
int insert_index,
562 int has_empty,
int next_free,
563 unsigned int l_count),
564 TP_ARGS(insert_cpos, insert_index, has_empty,
567 __field(
unsigned int, insert_cpos)
574 __entry->insert_cpos = insert_cpos;
575 __entry->insert_index = insert_index;
576 __entry->has_empty = has_empty;
577 __entry->next_free = next_free;
603 TP_PROTO(
unsigned long long owner,
unsigned int cpos,
604 unsigned int len,
unsigned int phys),
605 TP_ARGS(owner, cpos, len, phys),
607 __field(
unsigned long long, owner)
624 TP_PROTO(
unsigned long long blkno,
int index,
625 unsigned int start,
unsigned int num),
626 TP_ARGS(blkno, index, start, num),
628 __field(
unsigned long long, blkno)
644 #define DEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(name) \
645 DEFINE_EVENT(ocfs2__truncate_log_ops, name, \
646 TP_PROTO(unsigned long long blkno, int index, \
647 unsigned int start, unsigned int num), \
648 TP_ARGS(blkno, index, start, num))
670 unsigned long long blkno,
unsigned int bit),
671 TP_ARGS(type, slot, suballoc, blkno, bit),
675 __field(
unsigned long long, suballoc)
676 __field(
unsigned long long, blkno)
693 unsigned long long count),
698 __field(
unsigned long long, blk)
739 TP_PROTO(
int count,
int bit,
unsigned long long start_blk,
740 unsigned long long blkno),
741 TP_ARGS(count, bit, start_blk, blkno),
745 __field(
unsigned long long, start_blk)
746 __field(
unsigned long long, blkno)
751 __entry->start_blk = start_blk;
795 unsigned long long bg_blkno,
796 unsigned long long prev_blkno),
797 TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno),
799 __field(
unsigned long long, i_blkno)
801 __field(
unsigned long long, bg_blkno)
802 __field(
unsigned long long, prev_blkno)
808 __entry->prev_blkno = prev_blkno;
835 unsigned int start_bit,
unsigned int count),
836 TP_ARGS(inode, group, start_bit, count),
838 __field(
unsigned long long, inode)
839 __field(
unsigned long long, group)
840 __field(
unsigned int, start_bit)
846 __entry->start_bit = start_bit;
854 TP_PROTO(
unsigned long long bg_blkno,
unsigned long long start_blk,
855 unsigned int start_bit,
unsigned int count),
856 TP_ARGS(bg_blkno, start_blk, start_bit, count),
858 __field(
unsigned long long, bg_blkno)
859 __field(
unsigned long long, start_blk)
860 __field(
unsigned int, start_bit)
865 __entry->start_blk = start_blk;
866 __entry->start_bit = start_bit;
900 TP_PROTO(
unsigned long long blkno,
int index,
901 unsigned long long cpos,
902 unsigned int clusters,
unsigned int refcount),
903 TP_ARGS(blkno, index, cpos, clusters, refcount),
905 __field(
unsigned long long, blkno)
907 __field(
unsigned long long, cpos)
908 __field(
unsigned int, clusters)
909 __field(
unsigned int, refcount)
922 #define DEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(name) \
923 DEFINE_EVENT(ocfs2__refcount_tree_ops, name, \
924 TP_PROTO(unsigned long long blkno, int index, \
925 unsigned long long cpos, \
926 unsigned int count, unsigned int refcount), \
927 TP_ARGS(blkno, index, cpos, count, refcount))
933 unsigned int clusters,
unsigned int refcount,
934 unsigned long long split_cpos,
935 unsigned int split_clusters,
unsigned int split_refcount),
936 TP_ARGS(cpos, clusters, refcount,
937 split_cpos, split_clusters, split_refcount),
939 __field(
unsigned long long, cpos)
940 __field(
unsigned int, clusters)
941 __field(
unsigned int, refcount)
942 __field(
unsigned long long, split_cpos)
943 __field(
unsigned int, split_clusters)
944 __field(
unsigned int, split_refcount)
950 __entry->split_cpos = split_cpos;
951 __entry->split_clusters = split_clusters;
952 __entry->split_refcount = split_refcount;
978 unsigned long long cpos,
979 unsigned int len,
int delete),
980 TP_ARGS(owner, cpos, len,
delete),
982 __field(
unsigned long long, owner)
983 __field(
unsigned long long, cpos)
1001 TRACE_EVENT(ocfs2_calc_refcount_meta_credits_iterate,
1002 TP_PROTO(
int recs_add,
unsigned long long cpos,
1003 unsigned int clusters,
unsigned long long r_cpos,
1004 unsigned int r_clusters,
unsigned int refcount,
int index),
1005 TP_ARGS(recs_add, cpos, clusters, r_cpos, r_clusters, refcount, index),
1008 __field(
unsigned long long, cpos)
1009 __field(
unsigned int, clusters)
1010 __field(
unsigned long long, r_cpos)
1011 __field(
unsigned int, r_clusters)
1012 __field(
unsigned int, refcount)
1020 __entry->r_clusters = r_clusters;
1041 TP_PROTO(
unsigned long long ino,
unsigned int cpos,
1042 unsigned int len,
unsigned int p_cluster,
1044 TP_ARGS(ino, cpos, len, p_cluster, ext_flags),
1046 __field(
unsigned long long, ino)
1049 __field(
unsigned int, p_cluster)
1050 __field(
unsigned int, ext_flags)
1056 __entry->p_cluster = p_cluster;
1057 __entry->ext_flags = ext_flags;
1065 TP_PROTO(
unsigned long long ino,
unsigned int cpos,
1066 unsigned int old,
unsigned int new,
unsigned int len,
1067 unsigned int ext_flags),
1068 TP_ARGS(ino, cpos, old,
new, len, ext_flags),
1070 __field(
unsigned long long, ino)
1075 __field(
unsigned int, ext_flags)
1083 __entry->ext_flags = ext_flags;
1093 TP_PROTO(
unsigned long long ino,
unsigned int cpos,
1094 unsigned int write_len,
unsigned int max_cpos,
1095 unsigned int cow_start,
unsigned int cow_len),
1096 TP_ARGS(ino, cpos, write_len, max_cpos, cow_start, cow_len),
1098 __field(
unsigned long long, ino)
1100 __field(
unsigned int, write_len)
1101 __field(
unsigned int, max_cpos)
1102 __field(
unsigned int, cow_start)
1103 __field(
unsigned int, cow_len)
1108 __entry->write_len = write_len;
1110 __entry->cow_start = cow_start;
1123 TP_PROTO(
unsigned long long ino,
unsigned long long iblock,
1124 void *bh_result,
int create),
1125 TP_ARGS(ino, iblock, bh_result, create),
1127 __field(
unsigned long long, ino)
1128 __field(
unsigned long long, iblock)
1135 __entry->bh_result = bh_result;
1143 #define DEFINE_OCFS2_GET_BLOCK_EVENT(name) \
1144 DEFINE_EVENT(ocfs2__get_block, name, \
1145 TP_PROTO(unsigned long long ino, unsigned long long iblock, \
1146 void *bh_result, int create), \
1147 TP_ARGS(ino, iblock, bh_result, create))
1162 TP_PROTO(
unsigned long long ino,
unsigned int len,
1163 unsigned long long pos,
unsigned int flags),
1164 TP_ARGS(ino, len, pos, flags),
1166 __field(
unsigned long long, ino)
1168 __field(
unsigned long long, pos)
1183 long long i_size,
unsigned int i_clusters,
1184 unsigned long long pos,
unsigned int len,
1185 unsigned int flags,
void *
page,
1186 unsigned int clusters,
unsigned int extents_to_split),
1187 TP_ARGS(ino, i_size, i_clusters, pos, len, flags,
1188 page, clusters, extents_to_split),
1190 __field(
unsigned long long, ino)
1192 __field(
unsigned int, i_clusters)
1193 __field(
unsigned long long, pos)
1197 __field(
unsigned int, clusters)
1198 __field(
unsigned int, extents_to_split)
1203 __entry->i_clusters = i_clusters;
1209 __entry->extents_to_split = extents_to_split;
1211 TP_printk(
"%llu %lld %u %llu %u %u %p %u %u",
1220 unsigned long long pos,
unsigned int copied,
1221 unsigned int id_count,
unsigned int features),
1222 TP_ARGS(ino, pos, copied, id_count, features),
1224 __field(
unsigned long long, ino)
1225 __field(
unsigned long long, pos)
1227 __field(
unsigned int, id_count)
1228 __field(
unsigned int, features)
1248 void *area,
void *page,
unsigned long pgoff),
1249 TP_ARGS(ino, area, page, pgoff),
1251 __field(
unsigned long long, ino)
1272 unsigned long long ino,
1273 unsigned int d_len,
const unsigned char *d_name,
1274 unsigned long long para),
1275 TP_ARGS(inode, file, dentry, ino, d_len, d_name, para),
1280 __field(
unsigned long long, ino)
1283 __field(
unsigned long long, para)
1299 #define DEFINE_OCFS2_FILE_OPS(name) \
1300 DEFINE_EVENT(ocfs2__file_ops, name, \
1301 TP_PROTO(void *inode, void *file, void *dentry, \
1302 unsigned long long ino, \
1303 unsigned int d_len, const unsigned char *d_name, \
1304 unsigned long long mode), \
1305 TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode))
1326 TP_PROTO(
unsigned long long ip_blkno,
unsigned long long size,
1327 unsigned int clusters,
unsigned int clusters_to_add,
1328 int why,
int restart_func),
1329 TP_ARGS(ip_blkno, size, clusters, clusters_to_add, why, restart_func),
1331 __field(
unsigned long long, ip_blkno)
1332 __field(
unsigned long long, size)
1333 __field(
unsigned int, clusters)
1334 __field(
unsigned int, clusters_to_add)
1342 __entry->clusters_to_add = clusters_to_add;
1344 __entry->restart_func = restart_func;
1353 unsigned int di_clusters,
unsigned long long di_size,
1354 unsigned int ip_clusters,
unsigned long long i_size),
1355 TP_ARGS(ino, di_clusters, di_size, ip_clusters, i_size),
1357 __field(
unsigned long long, ino)
1358 __field(
unsigned int, di_clusters)
1359 __field(
unsigned long long, di_size)
1360 __field(
unsigned int, ip_clusters)
1361 __field(
unsigned long long, i_size)
1365 __entry->di_clusters = di_clusters;
1367 __entry->ip_clusters = ip_clusters;
1376 unsigned long long abs_from,
unsigned long long abs_to,
1377 unsigned long index,
unsigned int zero_from,
1378 unsigned int zero_to),
1379 TP_ARGS(ino, abs_from, abs_to, index, zero_from, zero_to),
1381 __field(
unsigned long long, ino)
1382 __field(
unsigned long long, abs_from)
1383 __field(
unsigned long long, abs_to)
1385 __field(
unsigned int, zero_from)
1386 __field(
unsigned int, zero_to)
1393 __entry->zero_from = zero_from;
1406 TP_PROTO(
void *inode,
void *dentry,
1407 unsigned long long ino,
1408 unsigned int d_len,
const unsigned char *d_name,
1409 unsigned int ia_valid,
unsigned int ia_mode,
1410 unsigned int ia_uid,
unsigned int ia_gid),
1411 TP_ARGS(inode, dentry, ino, d_len, d_name,
1412 ia_valid, ia_mode, ia_uid, ia_gid),
1416 __field(
unsigned long long, ino)
1419 __field(
unsigned int, ia_valid)
1420 __field(
unsigned int, ia_mode)
1452 TP_PROTO(
unsigned long long ino,
unsigned long long saved_pos,
1453 int appending,
unsigned long count,
1454 int *direct_io,
int *has_refcount),
1455 TP_ARGS(ino, saved_pos, appending, count, direct_io, has_refcount),
1457 __field(
unsigned long long, ino)
1458 __field(
unsigned long long, saved_pos)
1466 __entry->saved_pos = saved_pos;
1467 __entry->appending = appending;
1469 __entry->direct_io = direct_io ? *direct_io : -1;
1470 __entry->has_refcount = has_refcount ? *has_refcount : -1;
1484 TP_PROTO(
unsigned long long ino,
unsigned int flags,
int sysfile_type),
1485 TP_ARGS(ino, flags, sysfile_type),
1487 __field(
unsigned long long, ino)
1494 __entry->sysfile_type = sysfile_type;
1503 TP_PROTO(
void *inode,
unsigned long long ino),
1507 __field(
unsigned long long, ino)
1517 TP_PROTO(
void *inode,
unsigned long long ino,
1518 void *args,
unsigned long long fi_blkno),
1519 TP_ARGS(inode, ino, args, fi_blkno),
1522 __field(
unsigned long long, ino)
1524 __field(
unsigned long long, fi_blkno)
1545 TP_PROTO(
void *
task,
void *dc_task,
unsigned long long ino,
1546 unsigned int flags),
1547 TP_ARGS(task, dc_task, ino, flags),
1551 __field(
unsigned long long, ino)
1579 TP_PROTO(
void *inode,
unsigned long long ino,
1580 unsigned int flags),
1584 __field(
unsigned long long, ino)
1602 TP_PROTO(
void *inode,
unsigned long long vblock,
int nr,
1603 void *bhs,
unsigned int flags,
void *
validate),
1604 TP_ARGS(inode, vblock, nr, bhs, flags, validate),
1607 __field(
unsigned long long, vblock)
1649 TP_ARGS(s_flags, osb_flags, flags),
1651 __field(
unsigned long, s_flags)
1652 __field(
unsigned long, osb_flags)
1657 __entry->osb_flags = osb_flags;
1689 __entry->is_remount = is_remount;
1714 TP_PROTO(
char *
label,
char *uuid_str,
unsigned long long root_dir,
1715 unsigned long long system_dir,
int cluster_bits),
1716 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits),
1720 __field(
unsigned long long, root_dir)
1721 __field(
unsigned long long, system_dir)
1728 __entry->system_dir = system_dir;
1729 __entry->cluster_bits = cluster_bits;
1744 TP_PROTO(
const char *name,
int meta,
int clusters,
int credits),
1745 TP_ARGS(name, meta, clusters, credits),
1763 TP_PROTO(
unsigned long long ino,
const char *name,
int name_index,
1766 TP_ARGS(ino, name, name_index, hash, location, xe_index),
1768 __field(
unsigned long long, ino)
1772 __field(
unsigned long long, location)
1778 __entry->name_index = name_index;
1788 #define DEFINE_OCFS2_XATTR_FIND_EVENT(name) \
1789 DEFINE_EVENT(ocfs2__xattr_find, name, \
1790 TP_PROTO(unsigned long long ino, const char *name, int name_index, \
1791 unsigned int hash, unsigned long long bucket, \
1793 TP_ARGS(ino, name, name_index, hash, bucket, xe_index))
1866 TP_PROTO(
unsigned int r_start,
unsigned int r_end,
unsigned int goal,
1867 unsigned int wanted,
int empty_root),
1868 TP_ARGS(r_start, r_end, goal, wanted, empty_root),
1870 __field(
unsigned int, r_start)
1881 __entry->empty_root = empty_root;
1894 TP_PROTO(
unsigned int start,
unsigned int end,
unsigned int len,
1895 unsigned int last_start,
unsigned int last_len),
1896 TP_ARGS(start, end, len, last_start, last_len),
1901 __field(
unsigned int, last_start)
1902 __field(
unsigned int, last_len)
1908 __entry->last_start = last_start;
1918 TP_PROTO(
unsigned int cstart,
unsigned int cend,
unsigned int clen,
1919 unsigned int r_start,
unsigned int r_end,
unsigned int r_len,
1920 unsigned int last_start,
unsigned int last_len),
1921 TP_ARGS(cstart, cend, clen, r_start, r_end,
1922 r_len, last_start, last_len),
1927 __field(
unsigned int, r_start)
1930 __field(
unsigned int, last_start)
1931 __field(
unsigned int, last_len)
1940 __entry->last_start = last_start;
1950 TP_PROTO(
unsigned int start,
unsigned int end,
unsigned int len,
1951 unsigned int last_start,
unsigned int last_len),
1952 TP_ARGS(start, end, len, last_start, last_len),
1957 __field(
unsigned int, last_start)
1958 __field(
unsigned int, last_len)
1964 __entry->last_start = last_start;
1988 TP_PROTO(
unsigned int dq_id,
long long dqb_curspace,
1989 long long spacechange,
long long curinodes,
1990 long long inodechange),
1991 TP_ARGS(dq_id, dqb_curspace, spacechange, curinodes, inodechange),
1994 __field(
long long, dqb_curspace)
1995 __field(
long long, spacechange)
1997 __field(
long long, inodechange)
2001 __entry->dqb_curspace = dqb_curspace;
2002 __entry->spacechange = spacechange;
2003 __entry->curinodes = curinodes;
2004 __entry->inodechange = inodechange;
2012 TP_PROTO(
unsigned int dq_id,
unsigned int dq_type,
unsigned long type,
2014 TP_ARGS(dq_id, dq_type, type, s_id),
2018 __field(
unsigned int, dq_type)
2051 unsigned int major_hash,
unsigned int minor_hash,
2052 unsigned long long blkno),
2053 TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno),
2055 __field(
unsigned long long, ino)
2058 __field(
unsigned int, major_hash)
2059 __field(
unsigned int,minor_hash)
2060 __field(
unsigned long long, blkno)
2066 __entry->major_hash = major_hash;
2067 __entry->minor_hash = minor_hash;
2082 TP_PROTO(
int namelen,
const char *name,
void *blkno,
2083 unsigned long long dir),
2084 TP_ARGS(namelen, name, blkno, dir),
2089 __field(
unsigned long long, dir)
2102 TP_PROTO(
unsigned long long dir,
int namelen,
const char *name),
2105 __field(
unsigned long long, dir)
2124 unsigned int major_hash,
unsigned int minor_hash,
2125 int namelen,
const char *name,
unsigned int num_used),
2126 TP_ARGS(dir, major_hash, minor_hash, namelen, name, num_used),
2128 __field(
unsigned long long, dir)
2129 __field(
unsigned int, major_hash)
2130 __field(
unsigned int, minor_hash)
2133 __field(
unsigned int, num_used)
2137 __entry->major_hash = major_hash;
2138 __entry->minor_hash = minor_hash;
2162 unsigned long long dir_blkno,
unsigned long long extra),
2163 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra),
2169 __field(
unsigned long long, dir_blkno)
2170 __field(
unsigned long long, extra)
2177 __entry->dir_blkno = dir_blkno;
2185 #define DEFINE_OCFS2_DENTRY_OPS(name) \
2186 DEFINE_EVENT(ocfs2__dentry_ops, name, \
2187 TP_PROTO(void *dir, void *dentry, int name_len, const char *name, \
2188 unsigned long long dir_blkno, unsigned long long extra), \
2189 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra))
2206 TP_PROTO(
void *dir,
void *dentry,
int name_len,
const char *name,
2207 unsigned long long dir_blkno,
unsigned long dev,
int mode),
2208 TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode),
2214 __field(
unsigned long long, dir_blkno)
2223 __entry->dir_blkno = dir_blkno;
2233 TP_PROTO(
unsigned long long ino,
int old_len,
const char *old_name,
2234 int name_len,
const char *name),
2235 TP_ARGS(ino, old_len, old_name, name_len, name),
2237 __field(
unsigned long long, ino)
2262 TP_PROTO(
void *old_dir,
void *old_dentry,
2263 void *new_dir,
void *new_dentry,
2264 int old_len,
const char *old_name,
2265 int new_len,
const char *new_name),
2266 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry,
2267 old_len, old_name, new_len, new_name),
2280 __entry->old_dentry = old_dentry;
2282 __entry->new_dentry = new_dentry;
2296 TP_PROTO(
int new_len,
const char *new_name),
2312 TP_PROTO(
unsigned long long new_blkno,
void *new_bh,
2313 unsigned long long newdi_blkno),
2314 TP_ARGS(new_blkno, new_bh, newdi_blkno),
2316 __field(
unsigned long long, new_blkno)
2318 __field(
unsigned long long, newdi_blkno)
2321 __entry->new_blkno = new_blkno;
2323 __entry->newdi_blkno = newdi_blkno;
2332 TP_PROTO(
void *dir,
void *dentry,
const char *symname,
2333 int len,
const char *name),
2334 TP_ARGS(dir, dentry, symname, len, name),
2338 __field(
const char *, symname)
2354 TP_PROTO(
unsigned long long blkno,
const char *name,
int namelen),
2355 TP_ARGS(blkno, name, namelen),
2357 __field(
unsigned long long, blkno)
2375 TP_PROTO(
unsigned long long dir,
const char *name,
int namelen),
2378 __field(
unsigned long long, dir)
2396 TP_PROTO(
void *dentry,
int len,
const char *name),
2412 TP_PROTO(
int len,
const char *name,
unsigned long pgen,
2414 TP_ARGS(len, name, pgen, gen),
2440 TP_PROTO(
int len,
const char *name),
2454 TP_PROTO(
int len,
const char *name,
2455 unsigned long long parent,
void *fsdata),
2456 TP_ARGS(len, name, parent, fsdata),
2460 __field(
unsigned long long, parent)
2474 TP_PROTO(
const char *name,
unsigned long long parent,
2475 unsigned long long ino),
2479 __field(
unsigned long long, parent)
2480 __field(
unsigned long long, ino)
2499 __field(
unsigned long long, blkno)
2519 unsigned long long ino),
2520 TP_ARGS(child, len, name, ino),
2525 __field(
unsigned long long, ino)
2540 TP_PROTO(
void *dentry,
int name_len,
const char *name,
2541 void *fh,
int len,
int connectable),
2542 TP_ARGS(dentry, name_len, name, fh, len, connectable),
2557 __entry->connectable = connectable;
2599 TP_PROTO(
int slot,
unsigned long long la_ino,
2600 unsigned long long tl_ino,
void *qrec),
2601 TP_ARGS(slot, la_ino, tl_ino, qrec),
2604 __field(
unsigned long long, la_ino)
2605 __field(
unsigned long long, tl_ino)
2624 void *recovery_thread,
int map_set),
2625 TP_ARGS(node_num, osb_node_num, disable, recovery_thread, map_set),
2630 __field(
void *, recovery_thread)
2635 __entry->osb_node_num = osb_node_num;
2637 __entry->recovery_thread = recovery_thread;
2687 __field(
unsigned long long, block)
2698 TP_PROTO(
void *ci,
unsigned long long block,
2699 unsigned int nr,
int flags),
2700 TP_ARGS(ci, block, nr, flags),
2703 __field(
unsigned long long, block)
2761 #undef TRACE_INCLUDE_PATH
2762 #define TRACE_INCLUDE_PATH .
2763 #define TRACE_INCLUDE_FILE ocfs2_trace