[LTP] [PATCH v3] pmc_core: add test for pkgc_blocker_residency_show

Cyril Hrubis chrubis@suse.cz
Fri Aug 28 14:35:06 CEST 2026


Hi!
> One question: there doesn't seem to be a way to check whether debugfs
> is mounted, apart from implementing it myself. I have another test in
> the queue for LTR counters that also uses debugfs. Does it make sense
> to put that debugfs check somewhere in the framework, or do you prefer
> it to be put directly in the tests? It's about 25 LOC.

If more than one test would use it makes sense to add a library support
for mounting debugfs.

Also generally distributions are moving into not mounting debugfs by
default, since there have been security implications of exporting
internal kernel state by default. So it would make sense to add
.needs_debugfs flag to the tst_test struct that would cause the library
mount (and later umount) debugfs at .mntpoint unconditionally.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list