xfs: disambiguate units for ftrace fields tagged "offset"
authorDarrick J. Wong <djwong@kernel.org>
Tue, 17 Aug 2021 17:09:12 +0000 (10:09 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 17:07:09 +0000 (10:07 -0700)
commit49e68c91da5e5bdc91d1b8f4df776663a0f19952
treea8031ffec7614bd296d0af1c545a69c3ddf173fb
parent6f25b211d32b31557e0fde872a01fe7f86136747
xfs: disambiguate units for ftrace fields tagged "offset"

Some of our tracepoints describe fields as "offset".  That name doesn't
describe any units, which makes the fields not very useful.  Rename the
fields to capture units and ensure the format is hexadecimal.

"fileoff" means file offset, in units of fs blocks
"pos" means file offset, in bytes
"forkoff" means inode fork offset, in bytes

The one remaining "offset" value is for iclogs, since that's the byte
offset of the end of where we've written into the current iclog.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
fs/xfs/scrub/trace.h
fs/xfs/xfs_trace.h