Date: Tue, 10 Mar 2015 01:23:41 +0000 (UTC) From: Ryan Stone <rstone@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279831 - head/sys/dev/hwpmc Message-ID: <201503100123.t2A1NfZc076309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rstone Date: Tue Mar 10 01:23:40 2015 New Revision: 279831 URL: https://svnweb.freebsd.org/changeset/base/279831 Log: Fix pmc unit restrictions to match documentation A couple of pmc counters did not work because there were being restricted to the wrong PMC unit. I've verified that these counters now work and match the documented restrictions. Differential Revision: https://reviews.freebsd.org/D1586 MFC after: 1 month Sponsored by: Sandvine Inc Modified: head/sys/dev/hwpmc/hwpmc_core.c Modified: head/sys/dev/hwpmc/hwpmc_core.c ============================================================================== --- head/sys/dev/hwpmc/hwpmc_core.c Tue Mar 10 01:23:34 2015 (r279830) +++ head/sys/dev/hwpmc/hwpmc_core.c Tue Mar 10 01:23:40 2015 (r279831) @@ -1965,15 +1965,15 @@ iap_event_sb_sbx_ib_ibx_ok_on_counter(en break; /* Events valid only on counter 1. */ case PMC_EV_IAP_EVENT_C0H_01H: - mask = 0x1; + mask = 0x2; break; /* Events valid only on counter 2. */ case PMC_EV_IAP_EVENT_48H_01H: case PMC_EV_IAP_EVENT_A2H_02H: + case PMC_EV_IAP_EVENT_A3H_08H: mask = 0x4; break; /* Events valid only on counter 3. */ - case PMC_EV_IAP_EVENT_A3H_08H: case PMC_EV_IAP_EVENT_BBH_01H: case PMC_EV_IAP_EVENT_CDH_01H: case PMC_EV_IAP_EVENT_CDH_02H:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503100123.t2A1NfZc076309>