Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 10:06:58 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        "Russell L. Carter" <rcarter@pinyon.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: hardware performance monitoring counters
Message-ID:  <CAOtMX2gsFSW28OmsVMtExZ6iRQrDD3hFmo0EwbFFx=rJLz5AQA@mail.gmail.com>
In-Reply-To: <d70b8f0d-7936-2e7a-c8c7-9d2cfeb940c7@pinyon.org>
References:  <d70b8f0d-7936-2e7a-c8c7-9d2cfeb940c7@pinyon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 10, 2017 at 9:45 AM, Russell L. Carter <rcarter@pinyon.org> wrote:
> Greetings,
> I'd like to use the PMC capabilities, but I seem to have
> a misconfiguration:
>
> root@bruno> pmccontrol -l
> pmccontrol: Initialization of the pmc(3) library failed: No such file or
> directory
>
> In my kernel conf directory:
>
> root@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2gsFSW28OmsVMtExZ6iRQrDD3hFmo0EwbFFx=rJLz5AQA>