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:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to