From owner-freebsd-hackers@freebsd.org Wed May 10 16:14:51 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD4E0D67B40 for ; Wed, 10 May 2017 16:14:51 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.20.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A7151CD7; Wed, 10 May 2017 16:14:51 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by h2.pinyon.org (Postfix, from userid 58) id 99F47214EB; Wed, 10 May 2017 09:14:50 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1494432890; bh=MATzRu3XwcSPLg+d6klBTqw4+u3lB6XftsWsz+gNpK4=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=evRrb5/lky5+kGeSpKDlgQhV5gDKmKggMsS+K4Hmo8cJUfKBm87bqzXYGz0X2zdyf SEH5PQmqGGbwAJmCS7q+JcqR/3ZFFZpIPEYZAxxRJooIAGWt0dv7jQ05VFEcynTGad /M0vg8msnieg2KMHSwH+l5QJh3CMWrUFWzsUfBtU= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on h2.n1.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from [10.0.10.15] (h1.pinyon.org [65.101.20.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by h2.pinyon.org (Postfix) with ESMTPSA id A976E214D2; Wed, 10 May 2017 09:14:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1494432889; bh=MATzRu3XwcSPLg+d6klBTqw4+u3lB6XftsWsz+gNpK4=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=Gz9DyEWLY7j6OO91/kXX8wZcCzKVYsdIRKoVlE3m5IDV3tJsCXna0+hrz+ajFl5cv QPTMUN+ll597V3xTY4plVxsO1ikXAB/KLrWM7ijQVOKLVTjOol01xFQR3J7bJr3/U4 ziUFSdv3UvXezkG8FuWuxDN7epb+omurnQJ5c/CY= Subject: Re: hardware performance monitoring counters To: Alan Somers Cc: "freebsd-hackers@freebsd.org" References: From: "Russell L. Carter" Message-ID: <096686ac-a4c8-af51-2bb6-452372b37910@pinyon.org> Date: Wed, 10 May 2017 09:14:49 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 16:14:51 -0000 On 05/10/17 09:06, Alan Somers wrote: > On Wed, May 10, 2017 at 9:45 AM, Russell L. Carter 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 >