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

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/10/17 09:06, Alan Somers wrote:
> 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.

Perfect, thanks.  Google should be able to find the answer now.

Russell

> -Alan
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?096686ac-a4c8-af51-2bb6-452372b37910>