Messages in this thread | | | Date | Fri, 19 Oct 2012 08:49:58 -0700 | From | Andi Kleen <> | Subject | Re: [PATCH 2/2] perf: SNB exclusive PMU access for INST_RETIRED:PREC_DIST |
| |
> + /* > + * for INST_RETIRED.PREC_DIST to work correctly with PEBS, it must > + * be measured alone on SNB (exclusive PMU access) as per Intel SDM. > + */ > + if ((cfg & INTEL_ARCH_EVENT_MASK) == 0x01c0 && !event->attr.exclusive) { > + pr_info("perf: INST_RETIRED.PREC_DIST only works in exclusive mode\n"); > + return -EINVAL; > + }
Strictly you have to check for precise too, right?
-Andi
| |