Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-10 Thread Kanaka Juvva
On Thu, 2015-09-10 at 14:58 +0100, Matt Fleming wrote: > On Tue, 2015-09-08 at 18:06 +0100, Juvva, Kanaka D wrote: > > > > There are two aspects: > > > > 1) Programming MSRs > > 2) EVENT_ATTR_STR(llc_local_bw, intel_cqm_llc_local_bw, "event=0x04"); > > > > 1 is used for programming MSRs > >

Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-10 Thread Kanaka Juvva
On Thu, 2015-09-10 at 14:58 +0100, Matt Fleming wrote: > On Tue, 2015-09-08 at 18:06 +0100, Juvva, Kanaka D wrote: > > > > There are two aspects: > > > > 1) Programming MSRs > > 2) EVENT_ATTR_STR(llc_local_bw, intel_cqm_llc_local_bw, "event=0x04"); > > > > 1 is used for programming MSRs > >

[PATCH v3 2/2] perf,x86: skip intel_cqm_stable if CMT is not present in a CPU model

2015-08-08 Thread Kanaka Juvva
for freeing or picking an RMID. Signed-off-by: Kanaka Juvva --- arch/x86/kernel/cpu/perf_event_intel_cqm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_cqm.c b/arch/x86/kernel/cpu/perf_event_intel_cqm.c index 63eb68b..7aa3bc0

[PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-08 Thread Kanaka Juvva
y perf, perf event codes are in powers of 2 version3: Improved readbility of code Incorporated upstream comments for Patch v2 Signed-off-by: Kanaka Juvva --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86/kernel/cpu/common.c | 4 +- arch/x86/kern

[PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-08 Thread Kanaka Juvva
, perf event codes are in powers of 2 version3: Improved readbility of code Incorporated upstream comments for Patch v2 Signed-off-by: Kanaka Juvva kanaka.d.ju...@linux.intel.com --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86/kernel/cpu/common.c

[PATCH v3 2/2] perf,x86: skip intel_cqm_stable if CMT is not present in a CPU model

2015-08-08 Thread Kanaka Juvva
for freeing or picking an RMID. Signed-off-by: Kanaka Juvva kanaka.d.ju...@linux.intel.com --- arch/x86/kernel/cpu/perf_event_intel_cqm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_cqm.c b/arch/x86/kernel/cpu

[PATCH v2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-07-21 Thread Kanaka Juvva
once in a second. Overflow is detected and handled. Running average value is calculated for each bandwidth type upon reading a new value from the MSR. Sliding window stores the values read from MSR. Sliding window size is configurable. Signed-off-by: Kanaka Juvva --- arch/x86/include/asm

[PATCH v2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-07-21 Thread Kanaka Juvva
once in a second. Overflow is detected and handled. Running average value is calculated for each bandwidth type upon reading a new value from the MSR. Sliding window stores the values read from MSR. Sliding window size is configurable. Signed-off-by: Kanaka Juvva kanaka.d.ju...@linux.intel.com

[PATCH v1 2/2] x86, perf,cqm: handle CPU hotplug

2015-06-18 Thread Kanaka Juvva
Added lock in event reader function. The cqm_pick_event_reader() function accesses cqm_cpumask and it is critical section between this and cqm_stable(). This situation is true when a CPU is hotplugged. Mutex is used to protect the critical section. Signed-off-by: Kanaka Juvva --- arch/x86

[PATCH v1 2/2] x86, perf,cqm: handle CPU hotplug

2015-06-18 Thread Kanaka Juvva
Added lock in event reader function. The cqm_pick_event_reader() function accesses cqm_cpumask and it is critical section between this and cqm_stable(). This situation is true when a CPU is hotplugged. Mutex is used to protect the critical section. Signed-off-by: Kanaka Juvva kanaka.d.ju

[PATCH v1 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-06-16 Thread Kanaka Juvva
be read atleast once in a second. Overflow is detected and handled. Cumulative average value is calculated for each bandwidth type upon reading a new value from the MSR. Signed-off-by: Kanaka Juvva --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86/kernel/cpu/common.c

[PATCH v1 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-06-16 Thread Kanaka Juvva
be read atleast once in a second. Overflow is detected and handled. Cumulative average value is calculated for each bandwidth type upon reading a new value from the MSR. Signed-off-by: Kanaka Juvva kanaka.d.ju...@linux.intel.com --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86

[PATCH v1 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-06-12 Thread Kanaka Juvva
be read atleast once in a second. Overflow is detected and handled. Cumulative average value is calculated for each bandwidth type upon reading a new value from the MSR. Signed-off-by: Kanaka Juvva --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86/kernel/cpu/common.c

[PATCH v1 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-06-12 Thread Kanaka Juvva
be read atleast once in a second. Overflow is detected and handled. Cumulative average value is calculated for each bandwidth type upon reading a new value from the MSR. Signed-off-by: Kanaka Juvva kanaka.d.ju...@linux.intel.com --- arch/x86/include/asm/cpufeature.h | 2 + arch/x86