Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1283402
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] x86, perf: Allow zero PEBS status with only single active event |
| Date | 2015-12-03 22:30 +0100 |
| Message-ID | <qBJBV-22d-25@gated-at.bofh.it> (permalink) |
| References | <qBJBU-22d-3@gated-at.bofh.it> <qBJBT-22d-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 2/2] x86, perf: Allow zero PEBS status with only single active event Andi Kleen <andi@firstfloor.org> - 2015-12-03 22:30 +0100 Re: [PATCH 2/2] x86, perf: Allow zero PEBS status with only single active event Peter Zijlstra <peterz@infradead.org> - 2015-12-03 22:30 +0100
csiph-web