diff options
author | Jan Kara <jack@suse.cz> | 2013-06-04 12:37:50 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-04 12:37:50 -0400 |
commit | 5fe2fe895a9a6b857e2f3a7fc5b8f080b03fd55f (patch) | |
tree | 4413bc3674762e6f8accef300c5ea07f76911336 /include/trace | |
parent | 8f7d89f36829b9061a14f9040cda1372f264c4fe (diff) |
ext4: provide wrappers for transaction reservation calls
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/ext4.h | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index e23b2188110a..1f2ea7140d56 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -1640,25 +1640,50 @@ TRACE_EVENT(ext4_load_inode, | |||
1640 | ); | 1640 | ); |
1641 | 1641 | ||
1642 | TRACE_EVENT(ext4_journal_start, | 1642 | TRACE_EVENT(ext4_journal_start, |
1643 | TP_PROTO(struct super_block *sb, int nblocks, unsigned long IP), | 1643 | TP_PROTO(struct super_block *sb, int blocks, int rsv_blocks, |
1644 | unsigned long IP), | ||
1644 | 1645 | ||
1645 | TP_ARGS(sb, nblocks, IP), | 1646 | TP_ARGS(sb, blocks, rsv_blocks, IP), |
1646 | 1647 | ||
1647 | TP_STRUCT__entry( | 1648 | TP_STRUCT__entry( |
1648 | __field( dev_t, dev ) | 1649 | __field( dev_t, dev ) |
1649 | __field(unsigned long, ip ) | 1650 | __field(unsigned long, ip ) |
1650 | __field( int, nblocks ) | 1651 | __field( int, blocks ) |
1652 | __field( int, rsv_blocks ) | ||
1651 | ), | 1653 | ), |
1652 | 1654 | ||
1653 | TP_fast_assign( | 1655 | TP_fast_assign( |
1654 | __entry->dev = sb->s_dev; | 1656 | __entry->dev = sb->s_dev; |
1655 | __entry->ip = IP; | 1657 | __entry->ip = IP; |
1656 | __entry->nblocks = nblocks; | 1658 | __entry->blocks = blocks; |
1659 | __entry->rsv_blocks = rsv_blocks; | ||
1657 | ), | 1660 | ), |
1658 | 1661 | ||
1659 | TP_printk("dev %d,%d nblocks %d caller %pF", | 1662 | TP_printk("dev %d,%d blocks, %d rsv_blocks, %d caller %pF", |
1660 | MAJOR(__entry->dev), MINOR(__entry->dev), | 1663 | MAJOR(__entry->dev), MINOR(__entry->dev), |
1661 | __entry->nblocks, (void *)__entry->ip) | 1664 | __entry->blocks, __entry->rsv_blocks, (void *)__entry->ip) |
1665 | ); | ||
1666 | |||
1667 | TRACE_EVENT(ext4_journal_start_reserved, | ||
1668 | TP_PROTO(struct super_block *sb, int blocks, unsigned long IP), | ||
1669 | |||
1670 | TP_ARGS(sb, blocks, IP), | ||
1671 | |||
1672 | TP_STRUCT__entry( | ||
1673 | __field( dev_t, dev ) | ||
1674 | __field(unsigned long, ip ) | ||
1675 | __field( int, blocks ) | ||
1676 | ), | ||
1677 | |||
1678 | TP_fast_assign( | ||
1679 | __entry->dev = sb->s_dev; | ||
1680 | __entry->ip = IP; | ||
1681 | __entry->blocks = blocks; | ||
1682 | ), | ||
1683 | |||
1684 | TP_printk("dev %d,%d blocks, %d caller %pF", | ||
1685 | MAJOR(__entry->dev), MINOR(__entry->dev), | ||
1686 | __entry->blocks, (void *)__entry->ip) | ||
1662 | ); | 1687 | ); |
1663 | 1688 | ||
1664 | DECLARE_EVENT_CLASS(ext4__trim, | 1689 | DECLARE_EVENT_CLASS(ext4__trim, |