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
This commit is contained in:
parent
d444c14119
commit
89d0633b86
@ -1965,15 +1965,15 @@ iap_event_sb_sbx_ib_ibx_ok_on_counter(enum pmc_event pe, int ri)
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user