Re: How can I measure code coverage for a device driver?

From: Warner Losh <imp_at_bsdimp.com>
Date: Thu, 07 Aug 2025 03:44:20 UTC
I think KCOV will work better than GCOV for this, but it's been a
while since I've used either.

Warner

On Wed, Aug 6, 2025 at 6:19 PM Jaeyoon Choi <j_yoon.choi@samsung.com> wrote:
>
> Hi,
>
> I'd like to measure line/branch coverage while testing UFSHCI device driver
> on FreeBSD.
> Which tools or workflow do you recommend for collecting coverage data from
> a device driver module?
>
> I've seen references to GCOV and KCOV, but I’m not sure which is the best fit
> for a device driver scenario.
>
> Thanks in advance,
> Jaeyoon Choi
>
>