From: Eric Biggers <ebiggers@kernel.org>
To: Andrey Albershteyn <aalbersh@kernel.org>
Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, djwong@kernel.org
Subject: Re: [PATCH v2 2/2] fsverity: add tracepoints
Date: Tue, 20 Jan 2026 16:39:17 -0800 [thread overview]
Message-ID: <20260121003917.GC12110@quark> (raw)
In-Reply-To: <20260119165644.2945008-3-aalbersh@kernel.org>
On Mon, Jan 19, 2026 at 05:56:43PM +0100, Andrey Albershteyn wrote:
[...]
> + TP_printk("ino %lu data size %llu tree size %llu block size %u levels %u",
[...]
> + TP_printk("ino %lu levels %d block_size %d tree_size %lld root_hash %s digest %s",
Would be nice to make these consistent. 3 of the parameters are the
same, but the naming and order differs slightly.
[...]
> + TP_printk("ino %lu pos %lld merkle_blocksize %u",
> + (unsigned long) __entry->ino,
> + __entry->data_pos,
> + __entry->block_size)
Likewise here. So now we have "block size", "block_size", and
"merkle_blocksize", all for the same thing.
> + TP_printk("ino %lu data_pos %llu hblock_idx %lu level %u hidx %u",
> + (unsigned long) __entry->ino,
And here's data_pos as a %llu, whereas in the previous tracepoint it's
just pos as an %lld.
> +TRACE_EVENT(fsverity_verify_merkle_block,
> + TP_PROTO(const struct inode *inode, unsigned long index,
> + unsigned int level, unsigned int hidx),
And the 'index' here is what the previous one calls 'hblock_idx'.
I think consistent naming would be helpful for people trying to use
these tracepoints.
- Eric
next prev parent reply other threads:[~2026-01-21 0:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-19 16:56 [PATCH v2 0/2] Add traces and file attributes for fs-verity Andrey Albershteyn
2026-01-19 16:56 ` [PATCH v2 1/2] fs: add FS_XFLAG_VERITY for fs-verity files Andrey Albershteyn
2026-01-20 15:51 ` Darrick J. Wong
2026-01-21 0:33 ` Eric Biggers
2026-01-21 14:23 ` Andrey Albershteyn
2026-01-19 16:56 ` [PATCH v2 2/2] fsverity: add tracepoints Andrey Albershteyn
2026-01-21 0:39 ` Eric Biggers [this message]
2026-01-24 18:49 ` Eric Biggers
2026-01-26 11:38 ` Andrey Albershteyn
2026-01-29 15:02 ` Christian Brauner
-- strict thread matches above, loose matches on Subject: below --
2026-01-19 16:32 [PATCH v2 0/2] Add traces and file attributes for fs-verity Andrey Albershteyn
2026-01-19 16:32 ` [PATCH v2 2/2] fsverity: add tracepoints Andrey Albershteyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260121003917.GC12110@quark \
--to=ebiggers@kernel.org \
--cc=aalbersh@kernel.org \
--cc=djwong@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox