On Fri, Feb 23, 2024 at 02:23:52PM +0100, Andrey Albershteyn wrote: > On 2024-02-22 21:31:56, Eric Biggers wrote: > > On Mon, Feb 12, 2024 at 05:58:06PM +0100, Andrey Albershteyn wrote: > > > fs-verity previously had debug printk but it was removed. This patch > > > adds trace points to the same places where printk were used (with a > > > few additional ones). > > > > Are all of these actually useful? There's a maintenance cost to adding all of > > these. > > > > Well, they were useful for me while testing/working on this > patchset. Especially combining -e xfs -e fsverity was quite good for > checking correctness and debugging with xfstests tests. They're > probably could be handy if something breaks. > > Or you mean if each of them is useful? The ones which I added to > signature verification probably aren't as useful as other; my > intention adding them was to also cover these code paths. Well, I'll have to maintain all of these, including reviewing them, keeping them working as code gets refactored, and fixing any bugs that exist or may get introduced later in them. They also increase the icache footprint of the code. I'd like to make sure that it will be worthwhile. The pr_debug messages that I had put in fs/verity/ originally were slightly useful when writing fs/verity/ originally, but after that I never really used them. Instead I found they actually made patching fs/verity/ a bit harder, since I had to make sure to keep all the pr_debug statements updated as code changed around them. Maybe I am an outlier and other people really do like having these tracepoints around. But I'd like to see a bit more feedback along those lines first. If we could keep them to a more minimal set, that would also be helpful. - Eric