[PATCH 5/8]powerpc/perf: Define big-endian version of perf_mem_data_src

2015-06-11 Thread Madhavan Srinivasan
suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- include/uapi/linux/perf_event.h | 16 1 file changed, 16 insertions(+) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 9b79abb..b3f4099 100644

[PATCH 8/8]powerpc/perf: cleanup in perf_event_print_debug()

2015-06-11 Thread Madhavan Srinivasan
From: Janani janan...@linux.vnet.ibm.com Code cleanup/fix in perf_event_print_debug(). Performance Monitoring Unit (PMU) registers in the server side are 64bit long. Signed-off-by: Janani janan...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc

[PATCH 3/8]powerpc/perf: EVENT macro for exporting generic events

2015-06-11 Thread Madhavan Srinivasan
Adding EVENT macro for exporting Power8 generic events Reviewed-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/power8-pmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/perf/power8-pmu.c b

[PATCH 1/8]powerpc/perf: Remove PME_ prefix for power7 events

2015-06-11 Thread Madhavan Srinivasan
with their official names. Reported-by: Michael Ellerman eller...@au1.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/include/asm/perf_event_server.h | 2 +- arch/powerpc/perf/power7-pmu.c

[PATCH 7/8] powerpc/perf: Set data source value

2015-06-11 Thread Madhavan Srinivasan
perf_sample_data_init initialize the data source variable -val with PERF_MEM_NA. New value should not be ORed since the userspace perf tool will look at bitmap field when displaying the hierarchy levels. Reviewed-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan

[PATCH 4/8]powerpc/perf: Add Power8 mem_access event to sysfs

2015-06-11 Thread Madhavan Srinivasan
instruction are satisfied. Reviewed-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/power8-events-list.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/perf/power8-events-list.h b/arch/powerpc/perf

[PATCH 2/8]powerpc/perf: Export Power8 generic events in sysfs

2015-06-11 Thread Madhavan Srinivasan
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Export generic perf events for Power8 in sysfs. Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/power8-events-list.h | 20 arch

[PATCH 0/8]powerpc/perf: Export memory hierarchy level

2015-06-11 Thread Madhavan Srinivasan
% 1 L2 hit[.] _int_malloc libc-2.17.so [.] 0x3fff9090 3.03% 1 L2 hit[k] account_system_time [kernel.kallsyms] [k] 0xc003feb08088 . Madhavan Srinivasan (8): powerpc/perf

[PATCH 6/8]powerpc/perf: Export Power8 memory hierarchy info to user space

2015-06-11 Thread Madhavan Srinivasan
mem' on Power for now. Thanks to input from Stephane Eranian, Michael Ellerman and Michael Neuling. Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- Edited the commit message to fit in the new event name arch/powerpc

[PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions

2015-06-10 Thread Madhavan Srinivasan
Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 109 +++ 1 file changed, 109 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/perf/nest-pmu.c index 8fad2d9..a662c14 100644 --- a/arch/powerpc/perf/nest-pmu.c

[PATCH v2 2/7]powerpc/powernv: Add OPAL support for Nest PMU

2015-06-10 Thread Madhavan Srinivasan
Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/opal-api.h| 3 ++- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 3 files changed, 5 insertions(+), 1

[PATCH v2 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-06-10 Thread Madhavan Srinivasan
/chip is designated as new cpu to read counters. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Cc: Preeti U Murthy Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Madhavan Srinivasan

[PATCH v2 4/7]powerpc/powernv: detect supported nest pmus and its events

2015-06-10 Thread Madhavan Srinivasan
: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 129 ++- 1 file changed, 128 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/perf

[PATCH v2 3/7]powerpc/powernv: Nest PMU detection and device tree parser

2015-06-10 Thread Madhavan Srinivasan
events. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile | 2 +- arch/powerpc/perf/nest-pmu.c | 78 +

[PATCH v2 5/7]powerpc/powernv: add event attribute and group to nest pmu

2015-06-10 Thread Madhavan Srinivasan
Add code to create event attribute and attribute group for each nest pmu. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf

[PATCH v2 1/7]powerpc/powernv: Data structure and macros definition

2015-06-10 Thread Madhavan Srinivasan
9 --- /dev/null +++ b/arch/powerpc/perf/nest-pmu.h @@ -0,0 +1,53 @@ +/* + * Nest Performance Monitor counter support for POWER8 processors. + * + * Copyright (C) 2015 Madhavan Srinivasan, IBM Corporation. + * + * This program is free software; you can redistribute it and/or modify it + * under

[PATCH v2 0/7]powerpc/powernv: Nest Instrumentation support

2015-06-10 Thread Madhavan Srinivasan
dback. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan Madhavan Srinivasan (7): powerpc/powernv: Data structure and macros definition powerpc/powernv

[PATCH v2 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-06-10 Thread Madhavan Srinivasan
...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Cc: Preeti U Murthy pre...@linux.vnet.ibm.com Cc: Ingo Molnar mi...@kernel.org Cc: Peter Zijlstra pet...@infradead.org Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 153

[PATCH v2 4/7]powerpc/powernv: detect supported nest pmus and its events

2015-06-10 Thread Madhavan Srinivasan
: Paul Mackerras pau...@samba.org Cc: Anton Blanchard an...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest

[PATCH v2 3/7]powerpc/powernv: Nest PMU detection and device tree parser

2015-06-10 Thread Madhavan Srinivasan
-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/Makefile | 2 +- arch/powerpc/perf/nest-pmu.c | 78 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/perf/nest-pmu.c diff --git a/arch/powerpc/perf

[PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions

2015-06-10 Thread Madhavan Srinivasan
an...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 109 +++ 1

[PATCH v2 2/7]powerpc/powernv: Add OPAL support for Nest PMU

2015-06-10 Thread Madhavan Srinivasan
Ellerman m...@ellerman.id.au Cc: Paul Mackerras pau...@samba.org Cc: Anton Blanchard an...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com

[PATCH v2 1/7]powerpc/powernv: Data structure and macros definition

2015-06-10 Thread Madhavan Srinivasan
suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.h | 53 1 file changed, 53 insertions(+) create

[PATCH v2 0/7]powerpc/powernv: Nest Instrumentation support

2015-06-10 Thread Madhavan Srinivasan
-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com Madhavan Srinivasan (7): powerpc/powernv: Data structure and macros definition powerpc/powernv: Add OPAL support for Nest PMU powerpc/powernv: Nest PMU detection and device tree parser powerpc/powernv: detect supported nest pmus and its

[PATCH v2 5/7]powerpc/powernv: add event attribute and group to nest pmu

2015-06-10 Thread Madhavan Srinivasan
: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 55 +++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/arch

Re: [PATCH v1 7/9]powerpc/powernv: Event attr creation and PMU registration

2015-06-09 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:36 AM, Daniel Axtens wrote: > On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: >> Patch adds common event attribute function and Nest pmu registration call. >> >> Cc: Michael Ellerman >> Cc: Benjamin Herrenschmidt >> C

Re: [PATCH v1 7/9]powerpc/powernv: Event attr creation and PMU registration

2015-06-09 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:36 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds common event attribute function and Nest pmu registration call. Cc: Michael Ellerman m...@ellerman.id.au Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc

[tip:perf/core] perf tools: Remove newline char when reading event scale and unit

2015-06-04 Thread tip-bot for Madhavan Srinivasan
Commit-ID: 9ecae065f3295d7ea5e1c5492170a848ca255a46 Gitweb: http://git.kernel.org/tip/9ecae065f3295d7ea5e1c5492170a848ca255a46 Author: Madhavan Srinivasan AuthorDate: Sun, 31 May 2015 11:36:23 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 1 Jun 2015 10:26:19 -0300 perf

Re: [PATCH v1 8/9] powerpc/powernv: Add OPAL support for Nest PMU

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:24 AM, Daniel Axtens wrote: +int64_t opal_nest_ima_control(uint32_t value); If I'm understanding things correctly, you call this function in patch 3. Quoting from that patch: +static void nest_init(void *dummy) +{ +

Re: [PATCH v1 6/9]powerpc/powernv: dt parser function for nest pmu and its events

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:16 AM, Daniel Axtens wrote: +static int nest_pmu_create(struct device_node *dev, int pmu_index) +{ + struct ppc64_nest_ima_events **p8_events_arr; + struct ppc64_nest_ima_events *p8_events; + struct property *pp; + char *buf; + const

Re: [PATCH v1 5/9]powerpc/powernv: nest pmu feature detection support

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:51 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds a device tree function to detect the nest pmu support. Function will look for specific dt property "ibm,ima-chip" as a detection mechanism for th

Re: [PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:33 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds generic nest pmu functions and format attribute. I'm not sure this commit message accurately reflects the content of the patch. At any rate, please could you

Re: [PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:33 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds generic nest pmu functions and format attribute. I'm not sure this commit message accurately reflects the content of the patch. At any rate, please could you

Re: [PATCH v1 3/9]powerpc/powernv: Add cpu hotplug support

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:08 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds cpu hotplug support. First online cpu in a node is picked as designated thread to read the Nest pmu counter data, and at the time of hotplug, next online cpu from

Re: [PATCH v1 2/9]powerpc/powernv: nest pmu init function with cpumask attr

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 04:44 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch creates a file "nest-pmu-c" to contain nest pmu related functions. "nest-pmu.c" Patch adds nest pmu init function and cpumask function since Ne

Re: [PATCH v1 1/9]powerpc/powernv: Data structure and macros definition

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 04:41 AM, Daniel Axtens wrote: + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option)

[tip:perf/core] perf tools: Remove newline char when reading event scale and unit

2015-06-04 Thread tip-bot for Madhavan Srinivasan
Commit-ID: 9ecae065f3295d7ea5e1c5492170a848ca255a46 Gitweb: http://git.kernel.org/tip/9ecae065f3295d7ea5e1c5492170a848ca255a46 Author: Madhavan Srinivasan ma...@linux.vnet.ibm.com AuthorDate: Sun, 31 May 2015 11:36:23 +0530 Committer: Arnaldo Carvalho de Melo a...@redhat.com CommitDate

Re: [PATCH v1 1/9]powerpc/powernv: Data structure and macros definition

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 04:41 AM, Daniel Axtens wrote: + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option)

Re: [PATCH v1 8/9] powerpc/powernv: Add OPAL support for Nest PMU

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:24 AM, Daniel Axtens wrote: +int64_t opal_nest_ima_control(uint32_t value); If I'm understanding things correctly, you call this function in patch 3. Quoting from that patch: +static void nest_init(void *dummy) +{ +

Re: [PATCH v1 3/9]powerpc/powernv: Add cpu hotplug support

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:08 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds cpu hotplug support. First online cpu in a node is picked as designated thread to read the Nest pmu counter data, and at the time of hotplug, next online cpu from

Re: [PATCH v1 2/9]powerpc/powernv: nest pmu init function with cpumask attr

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 04:44 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch creates a file nest-pmu-c to contain nest pmu related functions. nest-pmu.c Patch adds nest pmu init function and cpumask function since Nest pmu units are per-chip

Re: [PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:33 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds generic nest pmu functions and format attribute. I'm not sure this commit message accurately reflects the content of the patch. At any rate, please could you

Re: [PATCH v1 6/9]powerpc/powernv: dt parser function for nest pmu and its events

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 06:16 AM, Daniel Axtens wrote: +static int nest_pmu_create(struct device_node *dev, int pmu_index) +{ + struct ppc64_nest_ima_events **p8_events_arr; + struct ppc64_nest_ima_events *p8_events; + struct property *pp; + char *buf; + const

Re: [PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:33 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds generic nest pmu functions and format attribute. I'm not sure this commit message accurately reflects the content of the patch. At any rate, please could you

Re: [PATCH v1 5/9]powerpc/powernv: nest pmu feature detection support

2015-06-04 Thread Madhavan Srinivasan
On Wednesday 03 June 2015 05:51 AM, Daniel Axtens wrote: On Tue, 2015-06-02 at 21:29 +0530, Madhavan Srinivasan wrote: Patch adds a device tree function to detect the nest pmu support. Function will look for specific dt property ibm,ima-chip as a detection mechanism for the nest pmu

[PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-02 Thread Madhavan Srinivasan
Patch adds generic nest pmu functions and format attribute. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 107

[PATCH v1 7/9]powerpc/powernv: Event attr creation and PMU registration

2015-06-02 Thread Madhavan Srinivasan
Patch adds common event attribute function and Nest pmu registration call. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 52

[PATCH v1 8/9] powerpc/powernv: Add OPAL support for Nest PMU

2015-06-02 Thread Madhavan Srinivasan
Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/opal-api.h| 3 ++- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v1 0/9]powerpc/powernv: Nest Instrumentation support

2015-06-02 Thread Madhavan Srinivasan
: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan Madhavan Srinivasan (9): powerpc/powernv: Data structure and macros definition powerpc/powernv: nest pmu init function with cpumask attr powerpc/powernv: Add cpu hotplug support powerpc/powernv: Add generic ne

[PATCH v1 2/9]powerpc/powernv: nest pmu init function with cpumask attr

2015-06-02 Thread Madhavan Srinivasan
ug support. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Cc: Preeti U Murthy Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-

[PATCH v1 9/9]powerpc/powernv: Makefile changes to include nest pmu

2015-06-02 Thread Madhavan Srinivasan
Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf

[PATCH v1 6/9]powerpc/powernv: dt parser function for nest pmu and its events

2015-06-02 Thread Madhavan Srinivasan
Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 141 ++- 1 file changed, 140 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/p

[PATCH v1 5/9]powerpc/powernv: nest pmu feature detection support

2015-06-02 Thread Madhavan Srinivasan
njamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c

[PATCH v1 1/9]powerpc/powernv: Data structure and macros definition

2015-06-02 Thread Madhavan Srinivasan
Patch creates a new header file "nest-pmu.h" to add the data structures and macros needed for the nest pmu support. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan

[PATCH v1 3/9]powerpc/powernv: Add cpu hotplug support

2015-06-02 Thread Madhavan Srinivasan
Cc: Anshuman Khandual Cc: Stephane Eranian Cc: Preeti U Murthy Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/nest-pmu.c | 84 1 file changed, 84 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c

[PATCH v1 8/9] powerpc/powernv: Add OPAL support for Nest PMU

2015-06-02 Thread Madhavan Srinivasan
Ellerman m...@ellerman.id.au Cc: Paul Mackerras pau...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/include/asm/opal

[PATCH v1 0/9]powerpc/powernv: Nest Instrumentation support

2015-06-02 Thread Madhavan Srinivasan
: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com Madhavan Srinivasan (9): powerpc/powernv: Data structure and macros definition powerpc/powernv: nest

[PATCH v1 5/9]powerpc/powernv: nest pmu feature detection support

2015-06-02 Thread Madhavan Srinivasan
: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc

[PATCH v1 7/9]powerpc/powernv: Event attr creation and PMU registration

2015-06-02 Thread Madhavan Srinivasan
...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 52 1 file changed, 52 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/perf/nest-pmu.c

[PATCH v1 4/9]powerpc/powernv: Add generic nest pmu ops

2015-06-02 Thread Madhavan Srinivasan
: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/perf/nest-pmu.c index 3e7010e

[PATCH v1 6/9]powerpc/powernv: dt parser function for nest pmu and its events

2015-06-02 Thread Madhavan Srinivasan
...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 141

[PATCH v1 9/9]powerpc/powernv: Makefile changes to include nest pmu

2015-06-02 Thread Madhavan Srinivasan
Cc: Michael Ellerman m...@ellerman.id.au Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan

[PATCH v1 2/9]powerpc/powernv: nest pmu init function with cpumask attr

2015-06-02 Thread Madhavan Srinivasan
...@linux.vnet.ibm.com Cc: Ingo Molnar mi...@kernel.org Cc: Peter Zijlstra pet...@infradead.org Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 70 1 file changed, 70 insertions(+) create mode 100644 arch/powerpc

[PATCH v1 3/9]powerpc/powernv: Add cpu hotplug support

2015-06-02 Thread Madhavan Srinivasan
-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.c | 84 1 file changed, 84 insertions(+) diff --git a/arch/powerpc/perf/nest-pmu.c b/arch/powerpc/perf/nest-pmu.c index d4413bb..3e7010e 100644 --- a/arch/powerpc/perf

[PATCH v1 1/9]powerpc/powernv: Data structure and macros definition

2015-06-02 Thread Madhavan Srinivasan
: Anshuman Khandual khand...@linux.vnet.ibm.com Cc: Stephane Eranian eran...@google.com Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/nest-pmu.h | 55 1 file changed, 55 insertions(+) create mode 100644 arch/powerpc

[PATCH] perf/tool: remove newline char when reading event scale and unit

2015-05-31 Thread Madhavan Srinivasan
Bhattiprolu Cc: Michael Ellerman Signed-off-by: Madhavan Srinivasan --- tools/perf/util/pmu.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 4841167..cf2cb34 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util

[PATCH] perf/tool: remove newline char when reading event scale and unit

2015-05-31 Thread Madhavan Srinivasan
Cc: Ingo Molnar mi...@kernel.org Cc: Jiri Olsa jo...@redhat.com Cc: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Cc: Michael Ellerman m...@ellerman.id.au Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- tools/perf/util/pmu.c | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH]perf/core: remove newline char in perf_event_sysfs_show

2015-05-28 Thread Madhavan Srinivasan
When a event also carries a event.unit file, having newline char will make perf userspace tool to print the event name in the next line when dumping counter data. Cc: Ingo Molnar Cc: Jiri Olsa Cc: Sukadev Bhattiprolu Cc: Michael Ellerman Signed-off-by: Madhavan Srinivasan --- kernel/events

[PATCH]perf/core: remove newline char in perf_event_sysfs_show

2015-05-28 Thread Madhavan Srinivasan
Ellerman m...@ellerman.id.au Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 1a3bf48..3b5a372 100644 --- a/kernel/events/core.c +++ b/kernel/events

[RFC PATCH 4/7]powerpc/powernv: Add OPAL support for Nest pmu

2015-03-11 Thread Madhavan Srinivasan
Nest Counters can be configured via PORE Engine and OPAL provides an interface call to it. PORE Engine also does the work of moving the counter data to memory. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/opal.h| 3 +++ arch/powerpc/platforms/powernv/opal

[RFC PATCH 2/7] powerpc/powernv: uncore foundation code

2015-03-11 Thread Madhavan Srinivasan
Patch adds the foundation code enable nest pmu. It defines various init routines and these are based on Intel's uncore framework. But it does differ since "box" structure abstraction is not implemented here. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/uncore_p

[RFC PATCH 6/7]powerpc/powernv: add support to parse dt for nest pmu

2015-03-11 Thread Madhavan Srinivasan
s generic function to creates type structure and populate events and event related information from DT. For each type structure, new pmu is registered. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/uncore_pmu_p8.c | 240 +- 1 file changed, 23

[RFC PATCH 5/7]powerpc/powernv: Add POWER8 specific nest pmu support

2015-03-11 Thread Madhavan Srinivasan
at the time of device-tree parsing. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/uncore_pmu.c| 4 + arch/powerpc/perf/uncore_pmu_p8.c | 167 ++ 2 files changed, 171 insertions(+) create mode 100644 arch/powerpc/perf/uncore_pmu_p8.c diff --git

[RFC PATCH 7/7]powerpc/powernv: enable nest pmu related file in Makefile

2015-03-11 Thread Madhavan Srinivasan
Patch to enable the nest pmu code files in Makefile. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index f9c083a..4b0bfd8 100644 --- a/arch/powerpc

[RFC PATCH 3/7] powerpc/powernv: uncore cpumask and CPU hotplug

2015-03-11 Thread Madhavan Srinivasan
Patch to add cpumask attribute for the Nest pmu to control per-chip counter values to be read by cpus. Also adds support of cpu hotplug. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/uncore_pmu.c | 152 + 1 file changed, 152 insertions(+) diff

[RFC PATCH 1/7] powerpc/powernv: Data structure and macros definition

2015-03-11 Thread Madhavan Srinivasan
Patch adds the data structures and macros needed for nest pmu support. "type" structure will hold each nest unit and sub-unit information. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/uncore_pmu.h | 89 ++ 1 file changed, 89

[RFC PATCH 0/7] powerpc/powernv: Nest Instrumentation support

2015-03-11 Thread Madhavan Srinivasan
/mcs_write/ 1.000723515 seconds time elapsed Kindly let me know you comments and feedback. Madhavan Srinivasan (7): powerpc/powernv: Data structure and macros definition powerpc/powernv: uncore foundation code powerpc/powernv: uncore cpumask and CPU hotplug powerpc/powernv: Add OP

[RFC PATCH 3/7] powerpc/powernv: uncore cpumask and CPU hotplug

2015-03-11 Thread Madhavan Srinivasan
Patch to add cpumask attribute for the Nest pmu to control per-chip counter values to be read by cpus. Also adds support of cpu hotplug. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/uncore_pmu.c | 152 + 1 file changed

[RFC PATCH 1/7] powerpc/powernv: Data structure and macros definition

2015-03-11 Thread Madhavan Srinivasan
Patch adds the data structures and macros needed for nest pmu support. type structure will hold each nest unit and sub-unit information. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/uncore_pmu.h | 89 ++ 1 file

[RFC PATCH 4/7]powerpc/powernv: Add OPAL support for Nest pmu

2015-03-11 Thread Madhavan Srinivasan
Nest Counters can be configured via PORE Engine and OPAL provides an interface call to it. PORE Engine also does the work of moving the counter data to memory. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/include/asm/opal.h| 3 +++ arch/powerpc

[RFC PATCH 2/7] powerpc/powernv: uncore foundation code

2015-03-11 Thread Madhavan Srinivasan
Patch adds the foundation code enable nest pmu. It defines various init routines and these are based on Intel's uncore framework. But it does differ since box structure abstraction is not implemented here. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf

[RFC PATCH 0/7] powerpc/powernv: Nest Instrumentation support

2015-03-11 Thread Madhavan Srinivasan
/ 1.000723515 seconds time elapsed Kindly let me know you comments and feedback. Madhavan Srinivasan (7): powerpc/powernv: Data structure and macros definition powerpc/powernv: uncore foundation code powerpc/powernv: uncore cpumask and CPU hotplug powerpc/powernv: Add OPAL support for uncore

[RFC PATCH 5/7]powerpc/powernv: Add POWER8 specific nest pmu support

2015-03-11 Thread Madhavan Srinivasan
at the time of device-tree parsing. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/uncore_pmu.c| 4 + arch/powerpc/perf/uncore_pmu_p8.c | 167 ++ 2 files changed, 171 insertions(+) create mode 100644 arch/powerpc/perf

[RFC PATCH 7/7]powerpc/powernv: enable nest pmu related file in Makefile

2015-03-11 Thread Madhavan Srinivasan
Patch to enable the nest pmu code files in Makefile. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index f9c083a..4b0bfd8

[RFC PATCH 6/7]powerpc/powernv: add support to parse dt for nest pmu

2015-03-11 Thread Madhavan Srinivasan
to creates type structure and populate events and event related information from DT. For each type structure, new pmu is registered. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- arch/powerpc/perf/uncore_pmu_p8.c | 240 +- 1 file changed, 238

Re: [PATCH] cleanup include/asm-generic/atomic.h

2014-07-21 Thread Madhavan Srinivasan
On Tuesday 22 July 2014 05:38 AM, David Rientjes wrote: > On Tue, 22 Jul 2014, Madhavan Srinivasan wrote: > >> Commit 4b358e2206 "cleanup include/asm-generic/atomic.h" added >> comments for #else/#endif, but ended up adding same comment >> "BITS_PER_LONG

[PATCH] cleanup include/asm-generic/atomic.h

2014-07-21 Thread Madhavan Srinivasan
Commit 4b358e2206 "cleanup include/asm-generic/atomic.h" added comments for #else/#endif, but ended up adding same comment "BITS_PER_LONG == 64" on both sides. This patch fixes it. Signed-off-by: Madhavan Srinivasan --- include/asm-generic/atomic-long.h | 2 +- 1 file change

[PATCH] cleanup include/asm-generic/atomic.h

2014-07-21 Thread Madhavan Srinivasan
Commit 4b358e2206 cleanup include/asm-generic/atomic.h added comments for #else/#endif, but ended up adding same comment BITS_PER_LONG == 64 on both sides. This patch fixes it. Signed-off-by: Madhavan Srinivasan ma...@linux.vnet.ibm.com --- include/asm-generic/atomic-long.h | 2 +- 1 file

Re: [PATCH] cleanup include/asm-generic/atomic.h

2014-07-21 Thread Madhavan Srinivasan
On Tuesday 22 July 2014 05:38 AM, David Rientjes wrote: On Tue, 22 Jul 2014, Madhavan Srinivasan wrote: Commit 4b358e2206 cleanup include/asm-generic/atomic.h added comments for #else/#endif, but ended up adding same comment BITS_PER_LONG == 64 on both sides. This patch fixes it. It's

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-27 Thread Madhavan Srinivasan
On Tuesday 27 May 2014 03:51 PM, Kirill A. Shutemov wrote: > Madhavan Srinivasan wrote: >> On Tuesday 20 May 2014 03:57 PM, Kirill A. Shutemov wrote: >>> Rusty Russell wrote: >>>> "Kirill A. Shutemov" writes: >>>>> Andrew Morton wrote: >&

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-27 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 03:57 PM, Kirill A. Shutemov wrote: > Rusty Russell wrote: >> "Kirill A. Shutemov" writes: >>> Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins wrote: > Shouldn't FAULT_AROUND_ORDER and fault_around_order be changed to be >

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-27 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 03:57 PM, Kirill A. Shutemov wrote: Rusty Russell wrote: Kirill A. Shutemov kirill.shute...@linux.intel.com writes: Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins hu...@google.com wrote: Shouldn't FAULT_AROUND_ORDER and fault_around_order

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-27 Thread Madhavan Srinivasan
On Tuesday 27 May 2014 03:51 PM, Kirill A. Shutemov wrote: Madhavan Srinivasan wrote: On Tuesday 20 May 2014 03:57 PM, Kirill A. Shutemov wrote: Rusty Russell wrote: Kirill A. Shutemov kirill.shute...@linux.intel.com writes: Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh

Re: [PATCH V4 2/2] powerpc/pseries: init fault_around_order for pseries

2014-05-20 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 12:58 PM, Andrew Morton wrote: > On Thu, 8 May 2014 14:58:16 +0530 Madhavan Srinivasan > wrote: > >> --- a/arch/powerpc/platforms/pseries/pseries.h >> +++ b/arch/powerpc/platforms/pseries/pseries.h >> @@ -17,6 +17,8 @@ struct d

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-20 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 01:02 PM, Andrew Morton wrote: > On Tue, 20 May 2014 15:52:07 +0930 Rusty Russell > wrote: > >> "Kirill A. Shutemov" writes: >>> Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins wrote: > Shouldn't FAULT_AROUND_ORDER and

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-20 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 01:02 PM, Andrew Morton wrote: On Tue, 20 May 2014 15:52:07 +0930 Rusty Russell ru...@rustcorp.com.au wrote: Kirill A. Shutemov kirill.shute...@linux.intel.com writes: Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins hu...@google.com

Re: [PATCH V4 2/2] powerpc/pseries: init fault_around_order for pseries

2014-05-20 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 12:58 PM, Andrew Morton wrote: On Thu, 8 May 2014 14:58:16 +0530 Madhavan Srinivasan ma...@linux.vnet.ibm.com wrote: --- a/arch/powerpc/platforms/pseries/pseries.h +++ b/arch/powerpc/platforms/pseries/pseries.h @@ -17,6 +17,8 @@ struct device_node; extern void

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 04:53 AM, Hugh Dickins wrote: > On Mon, 19 May 2014, Madhavan Srinivasan wrote: >> On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: >>> Hugh Dickins writes: >>>> On Thu, 15 May 2014, Madhavan Srinivasan wrote: >>>>> >>

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 04:53 AM, Hugh Dickins wrote: On Mon, 19 May 2014, Madhavan Srinivasan wrote: On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: Hugh Dickins hu...@google.com writes: On Thu, 15 May 2014, Madhavan Srinivasan wrote: Hi Ingo, Do you have any comments for the latest

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-18 Thread Madhavan Srinivasan
On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: > Hugh Dickins writes: >> On Thu, 15 May 2014, Madhavan Srinivasan wrote: >>> >>> Hi Ingo, >>> >>> Do you have any comments for the latest version of the patchset. If >>> not, kin

<    1   2   3   4   5   6   7   >