Re: [PATCH 5/9] perf/x86/intel: Add Intel Cache QoS Monitoring support

2015-01-25 Thread Matt Fleming
On Sun, 25 Jan, at 07:34:55PM, Jiri Olsa wrote: > On Fri, Jan 23, 2015 at 06:45:44PM +, Matt Fleming wrote: > > SNIP > > > + int phys_id = topology_physical_package_id(cpu); > > + int i; > > + > > + for_each_cpu(i, &cqm_cpumask) { > > + if (phys_id == topology_physical_package

Re: [PATCH 5/9] perf/x86/intel: Add Intel Cache QoS Monitoring support

2015-01-25 Thread Jiri Olsa
On Fri, Jan 23, 2015 at 06:45:44PM +, Matt Fleming wrote: SNIP > + int phys_id = topology_physical_package_id(cpu); > + int i; > + > + for_each_cpu(i, &cqm_cpumask) { > + if (phys_id == topology_physical_package_id(i)) > + return; /* already got rea

[PATCH 5/9] perf/x86/intel: Add Intel Cache QoS Monitoring support

2015-01-23 Thread Matt Fleming
From: Matt Fleming Future Intel Xeon processors support a Cache QoS Monitoring feature that allows tracking of the LLC occupancy for a task or task group, i.e. the amount of data in pulled into the LLC for the task (group). Currently the PMU only supports per-cpu events. We create an event for e