f2fs.h (e7547daccd6a37522f0af74ec4b5a3036f3dd328) f2fs.h (71644dff481180ba024ac4f5cb1f068756357adf)
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM f2fs
4
5#if !defined(_TRACE_F2FS_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_F2FS_H
7
8#include <linux/tracepoint.h>

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

44TRACE_DEFINE_ENUM(CP_FASTBOOT);
45TRACE_DEFINE_ENUM(CP_SYNC);
46TRACE_DEFINE_ENUM(CP_RECOVERY);
47TRACE_DEFINE_ENUM(CP_DISCARD);
48TRACE_DEFINE_ENUM(CP_TRIMMED);
49TRACE_DEFINE_ENUM(CP_PAUSE);
50TRACE_DEFINE_ENUM(CP_RESIZE);
51TRACE_DEFINE_ENUM(EX_READ);
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM f2fs
4
5#if !defined(_TRACE_F2FS_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_F2FS_H
7
8#include <linux/tracepoint.h>

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

44TRACE_DEFINE_ENUM(CP_FASTBOOT);
45TRACE_DEFINE_ENUM(CP_SYNC);
46TRACE_DEFINE_ENUM(CP_RECOVERY);
47TRACE_DEFINE_ENUM(CP_DISCARD);
48TRACE_DEFINE_ENUM(CP_TRIMMED);
49TRACE_DEFINE_ENUM(CP_PAUSE);
50TRACE_DEFINE_ENUM(CP_RESIZE);
51TRACE_DEFINE_ENUM(EX_READ);
52TRACE_DEFINE_ENUM(EX_BLOCK_AGE);
52
53#define show_block_type(type) \
54 __print_symbolic(type, \
55 { NODE, "NODE" }, \
56 { DATA, "DATA" }, \
57 { META, "META" }, \
58 { META_FLUSH, "META_FLUSH" }, \
59 { IPU, "IN-PLACE" }, \

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

150
151#define show_compress_algorithm(type) \
152 __print_symbolic(type, \
153 { COMPRESS_LZO, "LZO" }, \
154 { COMPRESS_LZ4, "LZ4" }, \
155 { COMPRESS_ZSTD, "ZSTD" }, \
156 { COMPRESS_LZORLE, "LZO-RLE" })
157
53
54#define show_block_type(type) \
55 __print_symbolic(type, \
56 { NODE, "NODE" }, \
57 { DATA, "DATA" }, \
58 { META, "META" }, \
59 { META_FLUSH, "META_FLUSH" }, \
60 { IPU, "IN-PLACE" }, \

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

151
152#define show_compress_algorithm(type) \
153 __print_symbolic(type, \
154 { COMPRESS_LZO, "LZO" }, \
155 { COMPRESS_LZ4, "LZ4" }, \
156 { COMPRESS_ZSTD, "ZSTD" }, \
157 { COMPRESS_LZORLE, "LZO-RLE" })
158
159#define show_extent_type(type) \
160 __print_symbolic(type, \
161 { EX_READ, "Read" }, \
162 { EX_BLOCK_AGE, "Block Age" })
163
158struct f2fs_sb_info;
159struct f2fs_io_info;
160struct extent_info;
161struct victim_sel_policy;
162struct f2fs_map_blocks;
163
164DECLARE_EVENT_CLASS(f2fs__inode,
165

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

1539 __entry->ino = inode->i_ino;
1540 __entry->pgofs = pgofs;
1541 __entry->type = type;
1542 ),
1543
1544 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, type = %s",
1545 show_dev_ino(__entry),
1546 __entry->pgofs,
164struct f2fs_sb_info;
165struct f2fs_io_info;
166struct extent_info;
167struct victim_sel_policy;
168struct f2fs_map_blocks;
169
170DECLARE_EVENT_CLASS(f2fs__inode,
171

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

1545 __entry->ino = inode->i_ino;
1546 __entry->pgofs = pgofs;
1547 __entry->type = type;
1548 ),
1549
1550 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, type = %s",
1551 show_dev_ino(__entry),
1552 __entry->pgofs,
1547 __entry->type == EX_READ ? "Read" : "N/A")
1553 show_extent_type(__entry->type))
1548);
1549
1550TRACE_EVENT_CONDITION(f2fs_lookup_read_extent_tree_end,
1551
1552 TP_PROTO(struct inode *inode, unsigned int pgofs,
1553 struct extent_info *ei),
1554
1555 TP_ARGS(inode, pgofs, ei),

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

1578 "read_ext_info(fofs: %u, len: %u, blk: %u)",
1579 show_dev_ino(__entry),
1580 __entry->pgofs,
1581 __entry->fofs,
1582 __entry->len,
1583 __entry->blk)
1584);
1585
1554);
1555
1556TRACE_EVENT_CONDITION(f2fs_lookup_read_extent_tree_end,
1557
1558 TP_PROTO(struct inode *inode, unsigned int pgofs,
1559 struct extent_info *ei),
1560
1561 TP_ARGS(inode, pgofs, ei),

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

1584 "read_ext_info(fofs: %u, len: %u, blk: %u)",
1585 show_dev_ino(__entry),
1586 __entry->pgofs,
1587 __entry->fofs,
1588 __entry->len,
1589 __entry->blk)
1590);
1591
1592TRACE_EVENT_CONDITION(f2fs_lookup_age_extent_tree_end,
1593
1594 TP_PROTO(struct inode *inode, unsigned int pgofs,
1595 struct extent_info *ei),
1596
1597 TP_ARGS(inode, pgofs, ei),
1598
1599 TP_CONDITION(ei),
1600
1601 TP_STRUCT__entry(
1602 __field(dev_t, dev)
1603 __field(ino_t, ino)
1604 __field(unsigned int, pgofs)
1605 __field(unsigned int, fofs)
1606 __field(unsigned int, len)
1607 __field(unsigned long long, age)
1608 __field(unsigned long long, blocks)
1609 ),
1610
1611 TP_fast_assign(
1612 __entry->dev = inode->i_sb->s_dev;
1613 __entry->ino = inode->i_ino;
1614 __entry->pgofs = pgofs;
1615 __entry->fofs = ei->fofs;
1616 __entry->len = ei->len;
1617 __entry->age = ei->age;
1618 __entry->blocks = ei->last_blocks;
1619 ),
1620
1621 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, "
1622 "age_ext_info(fofs: %u, len: %u, age: %llu, blocks: %llu)",
1623 show_dev_ino(__entry),
1624 __entry->pgofs,
1625 __entry->fofs,
1626 __entry->len,
1627 __entry->age,
1628 __entry->blocks)
1629);
1630
1586TRACE_EVENT(f2fs_update_read_extent_tree_range,
1587
1588 TP_PROTO(struct inode *inode, unsigned int pgofs, unsigned int len,
1589 block_t blkaddr,
1590 unsigned int c_len),
1591
1592 TP_ARGS(inode, pgofs, len, blkaddr, c_len),
1593

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

1613 "len = %u, blkaddr = %u, c_len = %u",
1614 show_dev_ino(__entry),
1615 __entry->pgofs,
1616 __entry->len,
1617 __entry->blk,
1618 __entry->c_len)
1619);
1620
1631TRACE_EVENT(f2fs_update_read_extent_tree_range,
1632
1633 TP_PROTO(struct inode *inode, unsigned int pgofs, unsigned int len,
1634 block_t blkaddr,
1635 unsigned int c_len),
1636
1637 TP_ARGS(inode, pgofs, len, blkaddr, c_len),
1638

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

1658 "len = %u, blkaddr = %u, c_len = %u",
1659 show_dev_ino(__entry),
1660 __entry->pgofs,
1661 __entry->len,
1662 __entry->blk,
1663 __entry->c_len)
1664);
1665
1666TRACE_EVENT(f2fs_update_age_extent_tree_range,
1667
1668 TP_PROTO(struct inode *inode, unsigned int pgofs, unsigned int len,
1669 unsigned long long age,
1670 unsigned long long last_blks),
1671
1672 TP_ARGS(inode, pgofs, len, age, last_blks),
1673
1674 TP_STRUCT__entry(
1675 __field(dev_t, dev)
1676 __field(ino_t, ino)
1677 __field(unsigned int, pgofs)
1678 __field(unsigned int, len)
1679 __field(unsigned long long, age)
1680 __field(unsigned long long, blocks)
1681 ),
1682
1683 TP_fast_assign(
1684 __entry->dev = inode->i_sb->s_dev;
1685 __entry->ino = inode->i_ino;
1686 __entry->pgofs = pgofs;
1687 __entry->len = len;
1688 __entry->age = age;
1689 __entry->blocks = last_blks;
1690 ),
1691
1692 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, "
1693 "len = %u, age = %llu, blocks = %llu",
1694 show_dev_ino(__entry),
1695 __entry->pgofs,
1696 __entry->len,
1697 __entry->age,
1698 __entry->blocks)
1699);
1700
1621TRACE_EVENT(f2fs_shrink_extent_tree,
1622
1623 TP_PROTO(struct f2fs_sb_info *sbi, unsigned int node_cnt,
1624 unsigned int tree_cnt, enum extent_type type),
1625
1626 TP_ARGS(sbi, node_cnt, tree_cnt, type),
1627
1628 TP_STRUCT__entry(

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

1638 __entry->tree_cnt = tree_cnt;
1639 __entry->type = type;
1640 ),
1641
1642 TP_printk("dev = (%d,%d), shrunk: node_cnt = %u, tree_cnt = %u, type = %s",
1643 show_dev(__entry->dev),
1644 __entry->node_cnt,
1645 __entry->tree_cnt,
1701TRACE_EVENT(f2fs_shrink_extent_tree,
1702
1703 TP_PROTO(struct f2fs_sb_info *sbi, unsigned int node_cnt,
1704 unsigned int tree_cnt, enum extent_type type),
1705
1706 TP_ARGS(sbi, node_cnt, tree_cnt, type),
1707
1708 TP_STRUCT__entry(

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

1718 __entry->tree_cnt = tree_cnt;
1719 __entry->type = type;
1720 ),
1721
1722 TP_printk("dev = (%d,%d), shrunk: node_cnt = %u, tree_cnt = %u, type = %s",
1723 show_dev(__entry->dev),
1724 __entry->node_cnt,
1725 __entry->tree_cnt,
1646 __entry->type == EX_READ ? "Read" : "N/A")
1726 show_extent_type(__entry->type))
1647);
1648
1649TRACE_EVENT(f2fs_destroy_extent_tree,
1650
1651 TP_PROTO(struct inode *inode, unsigned int node_cnt,
1652 enum extent_type type),
1653
1654 TP_ARGS(inode, node_cnt, type),

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

1665 __entry->ino = inode->i_ino;
1666 __entry->node_cnt = node_cnt;
1667 __entry->type = type;
1668 ),
1669
1670 TP_printk("dev = (%d,%d), ino = %lu, destroyed: node_cnt = %u, type = %s",
1671 show_dev_ino(__entry),
1672 __entry->node_cnt,
1727);
1728
1729TRACE_EVENT(f2fs_destroy_extent_tree,
1730
1731 TP_PROTO(struct inode *inode, unsigned int node_cnt,
1732 enum extent_type type),
1733
1734 TP_ARGS(inode, node_cnt, type),

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

1745 __entry->ino = inode->i_ino;
1746 __entry->node_cnt = node_cnt;
1747 __entry->type = type;
1748 ),
1749
1750 TP_printk("dev = (%d,%d), ino = %lu, destroyed: node_cnt = %u, type = %s",
1751 show_dev_ino(__entry),
1752 __entry->node_cnt,
1673 __entry->type == EX_READ ? "Read" : "N/A")
1753 show_extent_type(__entry->type))
1674);
1675
1676DECLARE_EVENT_CLASS(f2fs_sync_dirty_inodes,
1677
1678 TP_PROTO(struct super_block *sb, int type, s64 count),
1679
1680 TP_ARGS(sb, type, count),
1681

--- 498 unchanged lines hidden ---
1754);
1755
1756DECLARE_EVENT_CLASS(f2fs_sync_dirty_inodes,
1757
1758 TP_PROTO(struct super_block *sb, int type, s64 count),
1759
1760 TP_ARGS(sb, type, count),
1761

--- 498 unchanged lines hidden ---