On Thu, Dec 03, 2015 at 01:22:20PM -0800, Andi Kleen wrote:
> +             /*
> +              * On some CPUs the PEBS status can be zero when PEBS is
> +              * racing with clearing of GLOBAL_STATUS.
> +              *
> +              * Normally we would drop that record, but in the
> +              * case when there is only a single active PEBS event
> +              * we can assume it's for that event.
> +              */
> +             if (!pebs_status && cpuc->pebs_enabled &&
> +                     !(cpuc->pebs_enabled & (cpuc->pebs_enabled-1)))
> +                     pebs_status = cpuc->pebs_enabled;
> +
>               bit = find_first_bit((unsigned long *)&pebs_status,
>                                       x86_pmu.max_pebs_events);
>               if (bit >= x86_pmu.max_pebs_events)


Ah! I think this is the comment I just asked for.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
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