From owner-freebsd-hackers@freebsd.org Wed May 10 16:07:00 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 35B5AD677B3 for ; Wed, 10 May 2017 16:07:00 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yw0-x22a.google.com (mail-yw0-x22a.google.com [IPv6:2607:f8b0:4002:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E87FF360 for ; Wed, 10 May 2017 16:06:59 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yw0-x22a.google.com with SMTP id b68so45226ywe.3 for ; Wed, 10 May 2017 09:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UbK3ff7tkUPcHghAQTVeAf2fuJjuxHGQPDTK5XeMpGM=; b=C3ePaumKNkhm0tVXxcMXKG/3rax1T34DnGQIrC7NIzxg0xVomQc1Rb3dXc1MlJLAeW gl7f2eZ0d59ihosu6QSaCVVV2SoUeWUv22H+4AdcdsH9uE80ScsyJg88rj+r3C47N5Q4 9sCXbSO1KC5Vc309xLP4gztynnJQU+AFJUSFg/y/NOBYFtGpF3G+DUmky0Wz8QkoXO9t /bR0CXwarXuDjTM/m1+EAjpBsKEgWY3scvh28mYYlgzlVQaie0ABpQHA2eDnR9dggZ/z gheBTG00pD6ncQZDC39mo6+GmvW1QZJcclPMGKHcWbjqlR5GfBO6YjHvam39lQWURfsn c4SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UbK3ff7tkUPcHghAQTVeAf2fuJjuxHGQPDTK5XeMpGM=; b=kTcSdri3bIgJ5nt+EauDC4yCzwrZADqLVK6fXvVmFQmjztZ0iA1jtmAbyHIz/mD82h 4BShyPHmLb9vJqkhiSjY6a2+mE0KuOm8Ao1QhI6o+Aq+mO+FekZ1ahSvHl4uYQwjjWKO tZNlVB62JpecUm+qtam0OiV1fiTPAf5PvulxOGnFJ3LbQyikbRcZ9Kbphf6p8hdRtNit +OSUd8Ngg1eKNEoJ2TRoLdxGMM0nqD0iPEZk5bu/AFPQaDgm9MIcM8CZoG9nAmqrqskW pnQP7s7psBE8qoaULk8wb2FfCqhygPmh5WrVkJ7jK9TWD0eGITIZq0k6zDiWFizs49Eb FXJA== X-Gm-Message-State: AODbwcDWMwrKCr8kSQHEfqklS/hlh0LbsjILSg79RO2wNvubc997EVYd BYmwuoNUsfcuegqx5oMfPZfdafxong== X-Received: by 10.129.89.85 with SMTP id n82mr5416857ywb.94.1494432418833; Wed, 10 May 2017 09:06:58 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.129.20.214 with HTTP; Wed, 10 May 2017 09:06:58 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Wed, 10 May 2017 10:06:58 -0600 X-Google-Sender-Auth: Vs6BCwVdZXxN8ZzO2SD0kiP1B1Y Message-ID: Subject: Re: hardware performance monitoring counters To: "Russell L. Carter" Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 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:07:00 -0000 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. -Alan