f2fs.h (27fd38c5226ed0f1712d071880fa8e739eb78650) f2fs.h (523be8a6b3418eb7e0f0f042fe0490345eb5d516)
1#undef TRACE_SYSTEM
2#define TRACE_SYSTEM f2fs
3
4#if !defined(_TRACE_F2FS_H) || defined(TRACE_HEADER_MULTI_READ)
5#define _TRACE_F2FS_H
6
7#include <linux/tracepoint.h>
8

--- 680 unchanged lines hidden (view full) ---

689 "rw = %d ret = %d",
690 show_dev_ino(__entry),
691 __entry->pos,
692 __entry->len,
693 __entry->rw,
694 __entry->ret)
695);
696
1#undef TRACE_SYSTEM
2#define TRACE_SYSTEM f2fs
3
4#if !defined(_TRACE_F2FS_H) || defined(TRACE_HEADER_MULTI_READ)
5#define _TRACE_F2FS_H
6
7#include <linux/tracepoint.h>
8

--- 680 unchanged lines hidden (view full) ---

689 "rw = %d ret = %d",
690 show_dev_ino(__entry),
691 __entry->pos,
692 __entry->len,
693 __entry->rw,
694 __entry->ret)
695);
696
697TRACE_EVENT(f2fs_reserve_new_block,
697TRACE_EVENT(f2fs_reserve_new_blocks,
698
698
699 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node),
699 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node,
700 blkcnt_t count),
700
701
701 TP_ARGS(inode, nid, ofs_in_node),
702 TP_ARGS(inode, nid, ofs_in_node, count),
702
703 TP_STRUCT__entry(
704 __field(dev_t, dev)
705 __field(nid_t, nid)
706 __field(unsigned int, ofs_in_node)
703
704 TP_STRUCT__entry(
705 __field(dev_t, dev)
706 __field(nid_t, nid)
707 __field(unsigned int, ofs_in_node)
708 __field(blkcnt_t, count)
707 ),
708
709 TP_fast_assign(
710 __entry->dev = inode->i_sb->s_dev;
711 __entry->nid = nid;
712 __entry->ofs_in_node = ofs_in_node;
709 ),
710
711 TP_fast_assign(
712 __entry->dev = inode->i_sb->s_dev;
713 __entry->nid = nid;
714 __entry->ofs_in_node = ofs_in_node;
715 __entry->count = count;
713 ),
714
716 ),
717
715 TP_printk("dev = (%d,%d), nid = %u, ofs_in_node = %u",
718 TP_printk("dev = (%d,%d), nid = %u, ofs_in_node = %u, count = %llu",
716 show_dev(__entry),
717 (unsigned int)__entry->nid,
719 show_dev(__entry),
720 (unsigned int)__entry->nid,
718 __entry->ofs_in_node)
721 __entry->ofs_in_node,
722 (unsigned long long)__entry->count)
719);
720
721DECLARE_EVENT_CLASS(f2fs__submit_page_bio,
722
723 TP_PROTO(struct page *page, struct f2fs_io_info *fio),
724
725 TP_ARGS(page, fio),
726

--- 539 unchanged lines hidden (view full) ---

1266
1267 TP_printk("dev = (%d,%d), ino = %lu, destroyed: node_cnt = %u",
1268 show_dev_ino(__entry),
1269 __entry->node_cnt)
1270);
1271
1272DECLARE_EVENT_CLASS(f2fs_sync_dirty_inodes,
1273
723);
724
725DECLARE_EVENT_CLASS(f2fs__submit_page_bio,
726
727 TP_PROTO(struct page *page, struct f2fs_io_info *fio),
728
729 TP_ARGS(page, fio),
730

--- 539 unchanged lines hidden (view full) ---

1270
1271 TP_printk("dev = (%d,%d), ino = %lu, destroyed: node_cnt = %u",
1272 show_dev_ino(__entry),
1273 __entry->node_cnt)
1274);
1275
1276DECLARE_EVENT_CLASS(f2fs_sync_dirty_inodes,
1277
1274 TP_PROTO(struct super_block *sb, int type, int count),
1278 TP_PROTO(struct super_block *sb, int type, s64 count),
1275
1276 TP_ARGS(sb, type, count),
1277
1278 TP_STRUCT__entry(
1279 __field(dev_t, dev)
1280 __field(int, type)
1279
1280 TP_ARGS(sb, type, count),
1281
1282 TP_STRUCT__entry(
1283 __field(dev_t, dev)
1284 __field(int, type)
1281 __field(int, count)
1285 __field(s64, count)
1282 ),
1283
1284 TP_fast_assign(
1285 __entry->dev = sb->s_dev;
1286 __entry->type = type;
1287 __entry->count = count;
1288 ),
1289
1286 ),
1287
1288 TP_fast_assign(
1289 __entry->dev = sb->s_dev;
1290 __entry->type = type;
1291 __entry->count = count;
1292 ),
1293
1290 TP_printk("dev = (%d,%d), %s, dirty count = %d",
1294 TP_printk("dev = (%d,%d), %s, dirty count = %lld",
1291 show_dev(__entry),
1292 show_file_type(__entry->type),
1293 __entry->count)
1294);
1295
1296DEFINE_EVENT(f2fs_sync_dirty_inodes, f2fs_sync_dirty_inodes_enter,
1297
1295 show_dev(__entry),
1296 show_file_type(__entry->type),
1297 __entry->count)
1298);
1299
1300DEFINE_EVENT(f2fs_sync_dirty_inodes, f2fs_sync_dirty_inodes_enter,
1301
1298 TP_PROTO(struct super_block *sb, int type, int count),
1302 TP_PROTO(struct super_block *sb, int type, s64 count),
1299
1300 TP_ARGS(sb, type, count)
1301);
1302
1303DEFINE_EVENT(f2fs_sync_dirty_inodes, f2fs_sync_dirty_inodes_exit,
1304
1303
1304 TP_ARGS(sb, type, count)
1305);
1306
1307DEFINE_EVENT(f2fs_sync_dirty_inodes, f2fs_sync_dirty_inodes_exit,
1308
1305 TP_PROTO(struct super_block *sb, int type, int count),
1309 TP_PROTO(struct super_block *sb, int type, s64 count),
1306
1307 TP_ARGS(sb, type, count)
1308);
1309
1310#endif /* _TRACE_F2FS_H */
1311
1312 /* This part must be outside protection */
1313#include <trace/define_trace.h>
1310
1311 TP_ARGS(sb, type, count)
1312);
1313
1314#endif /* _TRACE_F2FS_H */
1315
1316 /* This part must be outside protection */
1317#include <trace/define_trace.h>