aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2012-09-07 22:01:27 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:19:17 -0400
commitdea7d76ecbfb53cda6aadd9bed33e87d255c5b02 (patch)
tree4869d75ed1804607ea4a2e449ad3506a1fb529e5 /include/trace
parent0647d6bd16c03c928a22d1b90c4c8684c5908f08 (diff)
Btrfs: update delayed ref's tracepoints to show sequence
We've added a new field 'sequence' to delayed ref node, so update related tracepoints. Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/btrfs.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index 91b91e805673..54fab041b22a 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -445,6 +445,7 @@ TRACE_EVENT(btrfs_delayed_tree_ref,
445 __field( u64, ref_root ) 445 __field( u64, ref_root )
446 __field( int, level ) 446 __field( int, level )
447 __field( int, type ) 447 __field( int, type )
448 __field( u64, seq )
448 ), 449 ),
449 450
450 TP_fast_assign( 451 TP_fast_assign(
@@ -455,17 +456,19 @@ TRACE_EVENT(btrfs_delayed_tree_ref,
455 __entry->ref_root = full_ref->root; 456 __entry->ref_root = full_ref->root;
456 __entry->level = full_ref->level; 457 __entry->level = full_ref->level;
457 __entry->type = ref->type; 458 __entry->type = ref->type;
459 __entry->seq = ref->seq;
458 ), 460 ),
459 461
460 TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, " 462 TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, "
461 "parent = %llu(%s), ref_root = %llu(%s), level = %d, " 463 "parent = %llu(%s), ref_root = %llu(%s), level = %d, "
462 "type = %s", 464 "type = %s, seq = %llu",
463 (unsigned long long)__entry->bytenr, 465 (unsigned long long)__entry->bytenr,
464 (unsigned long long)__entry->num_bytes, 466 (unsigned long long)__entry->num_bytes,
465 show_ref_action(__entry->action), 467 show_ref_action(__entry->action),
466 show_root_type(__entry->parent), 468 show_root_type(__entry->parent),
467 show_root_type(__entry->ref_root), 469 show_root_type(__entry->ref_root),
468 __entry->level, show_ref_type(__entry->type)) 470 __entry->level, show_ref_type(__entry->type),
471 (unsigned long long)__entry->seq)
469); 472);
470 473
471TRACE_EVENT(btrfs_delayed_data_ref, 474TRACE_EVENT(btrfs_delayed_data_ref,
@@ -485,6 +488,7 @@ TRACE_EVENT(btrfs_delayed_data_ref,
485 __field( u64, owner ) 488 __field( u64, owner )
486 __field( u64, offset ) 489 __field( u64, offset )
487 __field( int, type ) 490 __field( int, type )
491 __field( u64, seq )
488 ), 492 ),
489 493
490 TP_fast_assign( 494 TP_fast_assign(
@@ -496,11 +500,12 @@ TRACE_EVENT(btrfs_delayed_data_ref,
496 __entry->owner = full_ref->objectid; 500 __entry->owner = full_ref->objectid;
497 __entry->offset = full_ref->offset; 501 __entry->offset = full_ref->offset;
498 __entry->type = ref->type; 502 __entry->type = ref->type;
503 __entry->seq = ref->seq;
499 ), 504 ),
500 505
501 TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, " 506 TP_printk("bytenr = %llu, num_bytes = %llu, action = %s, "
502 "parent = %llu(%s), ref_root = %llu(%s), owner = %llu, " 507 "parent = %llu(%s), ref_root = %llu(%s), owner = %llu, "
503 "offset = %llu, type = %s", 508 "offset = %llu, type = %s, seq = %llu",
504 (unsigned long long)__entry->bytenr, 509 (unsigned long long)__entry->bytenr,
505 (unsigned long long)__entry->num_bytes, 510 (unsigned long long)__entry->num_bytes,
506 show_ref_action(__entry->action), 511 show_ref_action(__entry->action),
@@ -508,7 +513,8 @@ TRACE_EVENT(btrfs_delayed_data_ref,
508 show_root_type(__entry->ref_root), 513 show_root_type(__entry->ref_root),
509 (unsigned long long)__entry->owner, 514 (unsigned long long)__entry->owner,
510 (unsigned long long)__entry->offset, 515 (unsigned long long)__entry->offset,
511 show_ref_type(__entry->type)) 516 show_ref_type(__entry->type),
517 (unsigned long long)__entry->seq)
512); 518);
513 519
514TRACE_EVENT(btrfs_delayed_ref_head, 520TRACE_EVENT(btrfs_delayed_ref_head,