kernel module code coverage
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Aug 8 12:41:21 UTC 2019
--------
In message <b233b3e5-e2ac-8dce-5552-43bac9f8a5cc at FreeBSD.org>, Slava Shwartsman writes:
>Apparently, Bullseye are dropping support for FreeBSD.
>
>We are looking for an alternative for kernel module run time analysis.
>Mostly interested in code coverage (for now).
>
>Any suggestions that work for you?
Back in early days, I fixed it so that all the BB-counter blocks
in the kernel were linked into a list which could be read out through
/dev/(k)mem, and I belive I added a program to do that, named
something like "kernbb".
Today I would probably have made a subtree under sysctl where the counters
could be pulled out per source-file...
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-current
mailing list