On Wed, Jun 28, 2017 at 09:57:02PM -0600, Edmund Nadolski wrote: > From: Jeff Mahoney <[email protected]> > +DECLARE_EVENT_CLASS(btrfs__prelim_ref, > + TP_PROTO(const struct btrfs_fs_info *fs_info, > + const struct prelim_ref *oldref, > + const struct prelim_ref *newref, u64 tree_size), > + TP_ARGS(fs_info, newref, oldref, tree_size), > + > + TP_STRUCT__entry_btrfs( > + __field( u64, root_id ) > + __field( u64, objectid ) > + __field( u8, type ) > + __field( u64, offset ) > + __field( int, level ) > + __field( int, old_count ) > + __field( u64, parent ) > + __field( u64, bytenr ) > + __field( int, mod_count ) > + __field( u64, tree_size ) > + ), > + > + TP_fast_assign_btrfs(fs_info, > + __entry->root_id = oldref->root_id; > + __entry->objectid = oldref->key_for_search.objectid; > + __entry->type = oldref->key_for_search.type; > + __entry->offset = oldref->key_for_search.offset; > + __entry->level = oldref->level; > + __entry->old_count = oldref->count; > + __entry->parent = oldref->parent; > + __entry->bytenr = oldref->wanted_disk_byte; > + __entry->mod_count = newref ? newref->count : 0; > + __entry->tree_size = tree_size; > + ), > + > + TP_printk_btrfs("root=%llu, key=[%llu, %u, %llu], level=%d, > count=[%d+%d=%d], parent=%llu, wanted_disk_byte=%llu, nodes=%llu",
Please update the format according to the recommendations https://btrfs.wiki.kernel.org/index.php/Development_notes#Tracepoints -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
