Commit e443523d authored by Eric Sandeen's avatar Eric Sandeen Committed by Darrick J. Wong

xfs: trace ATTR flags in xattr tracepoints

This will trace i.e. the ATTR_SECURE/ATTR_CREATE/ATTR_REPLACE
flags as well as the OP_FLAGS.
Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 8b26984d
...@@ -1750,6 +1750,7 @@ DECLARE_EVENT_CLASS(xfs_attr_class, ...@@ -1750,6 +1750,7 @@ DECLARE_EVENT_CLASS(xfs_attr_class,
__field(int, namelen) __field(int, namelen)
__field(int, valuelen) __field(int, valuelen)
__field(xfs_dahash_t, hashval) __field(xfs_dahash_t, hashval)
__field(int, flags)
__field(int, op_flags) __field(int, op_flags)
), ),
TP_fast_assign( TP_fast_assign(
...@@ -1760,10 +1761,11 @@ DECLARE_EVENT_CLASS(xfs_attr_class, ...@@ -1760,10 +1761,11 @@ DECLARE_EVENT_CLASS(xfs_attr_class,
__entry->namelen = args->namelen; __entry->namelen = args->namelen;
__entry->valuelen = args->valuelen; __entry->valuelen = args->valuelen;
__entry->hashval = args->hashval; __entry->hashval = args->hashval;
__entry->flags = args->flags;
__entry->op_flags = args->op_flags; __entry->op_flags = args->op_flags;
), ),
TP_printk("dev %d:%d ino 0x%llx name %.*s namelen %d valuelen %d " TP_printk("dev %d:%d ino 0x%llx name %.*s namelen %d valuelen %d "
"hashval 0x%x op_flags %s", "hashval 0x%x flags %s op_flags %s",
MAJOR(__entry->dev), MINOR(__entry->dev), MAJOR(__entry->dev), MINOR(__entry->dev),
__entry->ino, __entry->ino,
__entry->namelen, __entry->namelen,
...@@ -1771,6 +1773,7 @@ DECLARE_EVENT_CLASS(xfs_attr_class, ...@@ -1771,6 +1773,7 @@ DECLARE_EVENT_CLASS(xfs_attr_class,
__entry->namelen, __entry->namelen,
__entry->valuelen, __entry->valuelen,
__entry->hashval, __entry->hashval,
__print_flags(__entry->flags, "|", XFS_ATTR_FLAGS),
__print_flags(__entry->op_flags, "|", XFS_DA_OP_FLAGS)) __print_flags(__entry->op_flags, "|", XFS_DA_OP_FLAGS))
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment