Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332555
b: refs/heads/master
c: dea7d76
h: refs/heads/master
i:
  332553: 449913e
  332551: 1542b35
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Oct 1, 2012
1 parent 407534b commit 8a149ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0647d6bd16c03c928a22d1b90c4c8684c5908f08
refs/heads/master: dea7d76ecbfb53cda6aadd9bed33e87d255c5b02
14 changes: 10 additions & 4 deletions trunk/include/trace/events/btrfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ TRACE_EVENT(btrfs_delayed_tree_ref,
__field( u64, ref_root )
__field( int, level )
__field( int, type )
__field( u64, seq )
),

TP_fast_assign(
Expand All @@ -455,17 +456,19 @@ TRACE_EVENT(btrfs_delayed_tree_ref,
__entry->ref_root = full_ref->root;
__entry->level = full_ref->level;
__entry->type = ref->type;
__entry->seq = ref->seq;
),

TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, "
"parent = %llu(%s), ref_root = %llu(%s), level = %d, "
"type = %s",
"type = %s, seq = %llu",
(unsigned long long)__entry->bytenr,
(unsigned long long)__entry->num_bytes,
show_ref_action(__entry->action),
show_root_type(__entry->parent),
show_root_type(__entry->ref_root),
__entry->level, show_ref_type(__entry->type))
__entry->level, show_ref_type(__entry->type),
(unsigned long long)__entry->seq)
);

TRACE_EVENT(btrfs_delayed_data_ref,
Expand All @@ -485,6 +488,7 @@ TRACE_EVENT(btrfs_delayed_data_ref,
__field( u64, owner )
__field( u64, offset )
__field( int, type )
__field( u64, seq )
),

TP_fast_assign(
Expand All @@ -496,19 +500,21 @@ TRACE_EVENT(btrfs_delayed_data_ref,
__entry->owner = full_ref->objectid;
__entry->offset = full_ref->offset;
__entry->type = ref->type;
__entry->seq = ref->seq;
),

TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, "
"parent = %llu(%s), ref_root = %llu(%s), owner = %llu, "
"offset = %llu, type = %s",
"offset = %llu, type = %s, seq = %llu",
(unsigned long long)__entry->bytenr,
(unsigned long long)__entry->num_bytes,
show_ref_action(__entry->action),
show_root_type(__entry->parent),
show_root_type(__entry->ref_root),
(unsigned long long)__entry->owner,
(unsigned long long)__entry->offset,
show_ref_type(__entry->type))
show_ref_type(__entry->type),
(unsigned long long)__entry->seq)
);

TRACE_EVENT(btrfs_delayed_ref_head,
Expand Down

0 comments on commit 8a149ac

Please sign in to comment.