> +     /*
> +      * 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to