Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1386649
| From | Vikas Shivappa <vikas.shivappa@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] perf/x86/cqm,mbm: Store cqm,mbm count for all events when RMID is recycled |
| Date | 2016-04-25 18:30 +0200 |
| Message-ID | <rrRyA-t4-65@gated-at.bofh.it> (permalink) |
| References | <rqTCp-2k1-3@gated-at.bofh.it> <rqTCq-2k1-11@gated-at.bofh.it> <rrL06-3oi-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 25 Apr 2016, Peter Zijlstra wrote:
> On Fri, Apr 22, 2016 at 05:27:18PM -0700, Vikas Shivappa wrote:
>> During RMID recycling, when an event loses the RMID we saved the counter
>> for group leader but it was not being saved for all the events in an
>> event group. This would lead to a situation where if 2 perf instances
>> are counting the same PID one of them would not see the updated count
>> which other perf instance is seeing. This patch tries to fix the issue
>> by saving the count for all the events in the same event group.
>
>
>> @@ -486,14 +495,21 @@ static u32 intel_cqm_xchg_rmid(struct perf_event *group, u32 rmid)
>> * If our RMID is being deallocated, perform a read now.
>> */
>> if (__rmid_valid(old_rmid) && !__rmid_valid(rmid)) {
>>
>> + rr = __init_rr(old_rmid, group->attr.config, 0);
>> cqm_mask_call(&rr);
>> local64_set(&group->count, atomic64_read(&rr.value));
>> + list_for_each_entry(event, head, hw.cqm_group_entry) {
>> + if (event->hw.is_group_event) {
>> +
>> + evttype = event->attr.config;
>> + rr = __init_rr(old_rmid, evttype, 0);
>> +
>> + cqm_mask_call(&rr);
>> + local64_set(&event->count,
>> + atomic64_read(&rr.value));
>
> Randomly indent much?
Will fix. It has been added by mistake in advance for the next patch
Thanks,
Vikas
>
>> + }
>> + }
>> }
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V1 0/4] Urgent fixes for Intel CQM/MBM counting Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2016-04-23 02:30 +0200
[PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2016-04-23 02:30 +0200
Re: [PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle Peter Zijlstra <peterz@infradead.org> - 2016-04-25 11:20 +0200
Re: [PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle Vikas Shivappa <vikas.shivappa@intel.com> - 2016-04-25 20:10 +0200
Re: [PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle Peter Zijlstra <peterz@infradead.org> - 2016-04-25 22:10 +0200
Re: [PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle Vikas Shivappa <vikas.shivappa@intel.com> - 2016-04-25 23:20 +0200
[PATCH 1/4] perf/x86/cqm,mbm: Store cqm,mbm count for all events when RMID is recycled Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2016-04-23 02:30 +0200
Re: [PATCH 1/4] perf/x86/cqm,mbm: Store cqm,mbm count for all events when RMID is recycled Peter Zijlstra <peterz@infradead.org> - 2016-04-25 11:30 +0200
Re: [PATCH 1/4] perf/x86/cqm,mbm: Store cqm,mbm count for all events when RMID is recycled Vikas Shivappa <vikas.shivappa@intel.com> - 2016-04-25 18:30 +0200
csiph-web