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

Kubaj, Piotr piotr.kubaj@intel.com
Fri Sep 4 14:42:04 CEST 2026


2026-08-28 (金) の 14:35 +0200 に Cyril Hrubis さんは書きました:
> 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.
OK, patch succeeded by a new series adding those two tests that need
debugfs and the commit adding debugfs handling to the framework.
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.


More information about the ltp mailing list