Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363770
| From | Vikas Shivappa <vikas.shivappa@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group |
| Date | 2016-03-24 00:00 +0100 |
| Message-ID | <rfZUS-1Mi-9@gated-at.bofh.it> (permalink) |
| References | <rbils-5Ng-23@gated-at.bofh.it> <rf4MW-3JE-27@gated-at.bofh.it> <rf9tf-7al-1@gated-at.bofh.it> <rfcAN-Zv-13@gated-at.bofh.it> <rfXq2-b9-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 23 Mar 2016, Matt Fleming wrote:
> On Mon, 21 Mar, at 11:14:37AM, Vikas Shivappa wrote:
>>
>>
>> Before MBM , the below condition was never hit because we had only one event ?
>>
>> - if (a->hw.target == b->hw.target)
>> + if (a->hw.target == b->hw.target) {
>> + b->hw.is_group_event = true;
>>
>> We are trying to address this for cases where different MBM(local or total)
>> and cqm events are grouped into one RMID.
>
> I can't test these changes, so I'm only working from memory, but I
> seem to recall that this condition is hit if monitoring simultaneously
> from two invocations of perf. It's also possible to have pid/tid
> groups overlapping, and that needs to be handled.
Each task in a multithreaded process has an event. So it gets a different RMID.
If two perf instances invoke
the same pid then both of the instances expect to see the counters so its
reported to both of them.
>
>> Which is the case which led to duplicate values ?
>
> Good question. Try monitoring a multithread process with these changes
> and see if you get duplicate values reported.
perf starts an event for each thread even when you give -p <process id> a
process which has multiple threads).
So it sends the pid of each thread to monitor and they get all seperate RMIDs.
This should apply to the groups overlapping as well as this is dealing with only
the perf task events..
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group tip-bot for Vikas Shivappa <tipbot@zytor.com> - 2016-03-21 11:00 +0100
Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group Matt Fleming <matt@codeblueprint.co.uk> - 2016-03-21 16:00 +0100
Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2016-03-21 19:20 +0100
Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group Matt Fleming <matt@codeblueprint.co.uk> - 2016-03-23 21:20 +0100
Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2016-03-24 00:00 +0100
csiph-web