hardware performance monitoring counters

Alan Somers asomers at freebsd.org
Wed May 10 16:07:00 UTC 2017


On Wed, May 10, 2017 at 9:45 AM, Russell L. Carter <rcarter at pinyon.org> wrote:
> Greetings,
> I'd like to use the PMC capabilities, but I seem to have
> a misconfiguration:
>
> root at bruno> pmccontrol -l
> pmccontrol: Initialization of the pmc(3) library failed: No such file or
> directory
>
> In my kernel conf directory:
>
> root at bruno> grep -i pmc *
> [...]
> RLCBASE:options         HWPMC_HOOKS             # Necessary kernel hooks for
> hwpmc(4)
> [...]
>
> Both amd and intel systems have the same error on fresh 11/stable
> amd64 systems.  Mr. google turns up people having the same
> problem, but no solutions.
>
> Does anyone know how I might fix this?
>
> Thanks,
> Russell

You need to "kldload hwpmc" first.

-Alan


More information about the freebsd-hackers mailing list