[PATCH v3 6/6] powerpc/perf: IMC pmu cpumask and cpu hotplug support

2016-12-19 Thread Hemant Kumar
) is designated as new cpu to read counters. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch

[PATCH v3 2/6] powerpc/powernv: Autoload IMC device driver module

2016-12-19 Thread Hemant Kumar
ba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Daniel Axtens <d...@axtens.net> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.c

[PATCH v3 0/6] IMC Instrumentation Support

2016-12-19 Thread Hemant Kumar
t; Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Paul Mackerras <pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc:

[PATCH v3 1/6] powerpc/powernv: Data structure and macros definitions

2016-12-19 Thread Hemant Kumar
<pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Daniel Axtens <d...@axtens.net> Cc: Stephane Eranian <eran...

[PATCH v3 5/6] powerpc/perf: Generic imc pmu event functions

2016-12-19 Thread Hemant Kumar
> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Daniel Axtens <d...@axtens.net> Cc: Stephane Eranian <eran...@google.com> Signe

[PATCH v3 1/6] powerpc/powernv: Data structure and macros definitions

2016-12-19 Thread Hemant Kumar
Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm/imc-pmu.h | 73 ++ 1 file changed, 73 insertions(+) create mode 100644 arch/powerpc/include/asm/imc-pmu.h diff --git a/arch/powerpc/include/asm/imc-pmu.h b/arch/power

[PATCH v3 5/6] powerpc/perf: Generic imc pmu event functions

2016-12-19 Thread Hemant Kumar
Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm/imc-pmu.h| 1 + arch/powerpc/perf/imc-pmu.c | 122 ++ arch/powerpc/platforms/powernv/opal-imc.c | 29 ++- 3 files changed, 148 insertions(+), 4 deletions(-) diff --git a/arch

[PATCH v3 2/6] powerpc/powernv: Autoload IMC device driver module

2016-12-19 Thread Hemant Kumar
now, only Nest units are taken care of. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- ar

[PATCH v3 0/6] IMC Instrumentation Support

2016-12-19 Thread Hemant Kumar
events (Patch 3/6). - Fixed a Build error (for maple_defconfig) by enabling imc_pmu.o only for CONFIG_PPC_POWERNV=y (Patch 4/6) - Read from the "event-name" property instead of "name" for an event node (Patch 3/6). Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin

Re: [PATCH v2 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-21 Thread Hemant Kumar
offsets, i.e., '-' sign before the offsets, this works fine because, it takes the sign as is. So, we need to explicitly mention the offset sign. -- Thanks, Hemant Kumar $ perf probe -x test_sdt sdt_libfoo:table_diddle $ perf record -e sdt_libfoo:table_frob -e sdt_libfoo:table_diddle test_sdt $ perf sc

Re: [PATCH v2 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-21 Thread Hemant Kumar
offsets, i.e., '-' sign before the offsets, this works fine because, it takes the sign as is. So, we need to explicitly mention the offset sign. -- Thanks, Hemant Kumar $ perf probe -x test_sdt sdt_libfoo:table_diddle $ perf record -e sdt_libfoo:table_frob -e sdt_libfoo:table_diddle test_sdt $ perf sc

[PATCH v2 2/6] powerpc/powernv: Autoload IMA device driver module

2016-11-20 Thread Hemant Kumar
ba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powern

[PATCH v2 4/6] powerpc/perf: Add event attribute and group to IMA pmus

2016-11-20 Thread Hemant Kumar
ng <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- Changelog: v1 -> v2: - Changes to Makefile to only enable this feature for CONFIG_PPC_POWERNV=y arch/

[PATCH v2 2/6] powerpc/powernv: Autoload IMA device driver module

2016-11-20 Thread Hemant Kumar
now, only Nest units are taken care of. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/platfor

[PATCH v2 4/6] powerpc/perf: Add event attribute and group to IMA pmus

2016-11-20 Thread Hemant Kumar
: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- Changelog: v1 -> v2: - Changes to Makefile to only enable this feature for CONFIG_PPC_POWERNV=y arch

[PATCH v2 0/6] IMA Instrumentation Support

2016-11-20 Thread Hemant Kumar
Cc: Paul Mackerras <pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Daniel Axtens <d...@axtens.net> Cc: Stephane

[PATCH v2 5/6] powerpc/perf: Generic ima pmu event functions

2016-11-20 Thread Hemant Kumar
> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@li

[PATCH v2 3/6] powerpc/powernv: Detect supported IMA units and its events

2016-11-20 Thread Hemant Kumar
: Paul Mackerras <pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed

[PATCH v2 1/6] powerpc/powernv: Data structure and macros definitions

2016-11-20 Thread Hemant Kumar
<pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kum

[PATCH v2 0/6] IMA Instrumentation Support

2016-11-20 Thread Hemant Kumar
PC_POWERNV=y (Patch 4/6) - Read from the "event-name" property instead of "name" for an event node (Patch 3/6). Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Ste

[PATCH v2 5/6] powerpc/perf: Generic ima pmu event functions

2016-11-20 Thread Hemant Kumar
-by: Hemant Kumar --- arch/powerpc/include/asm/ima-pmu.h| 2 + arch/powerpc/perf/ima-pmu.c | 122 ++ arch/powerpc/platforms/powernv/opal-ima.c | 37 +++-- 3 files changed, 154 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/include

[PATCH v2 3/6] powerpc/powernv: Detect supported IMA units and its events

2016-11-20 Thread Hemant Kumar
c: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- Changelog : v1 -> v2: - Read from the "event-name" property instead of "name" property for an event node. - Assign scale and unit values for events for a PMU which has a common unit and scale value.

[PATCH v2 1/6] powerpc/powernv: Data structure and macros definitions

2016-11-20 Thread Hemant Kumar
: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm/ima-pmu.h | 73 ++ 1 file changed, 73 insertions(+) create mode 100644 arch/powerpc/include/asm/ima-pmu.h diff --git a/arch/powerpc/include/asm/ima-pmu.h b/arch/powerpc/include/asm/ima

[PATCH v2 6/6] powerpc/perf: IMA pmu cpumask and cpu hotplug support

2016-11-20 Thread Hemant Kumar
Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/opa

[PATCH v2 6/6] powerpc/perf: IMA pmu cpumask and cpu hotplug support

2016-11-20 Thread Hemant Kumar
) is designated as new cpu to read counters. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm

Re: [PATCH 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-17 Thread Hemant Kumar
ENAMING(esi, si), + REG_RENAMING(rsi, si), + REG_RENAMING(edi, di), + REG_RENAMING(rdi, di), + REG_RENAMING(ebp, bp), + REG_RENAMING(rbp, bp), + REG_RENAMING_END, +}; Please put the above in arch helper headers for x86, as these register names and their conversions ar

Re: [PATCH 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-17 Thread Hemant Kumar
G(rsi, si), + REG_RENAMING(edi, di), + REG_RENAMING(rdi, di), + REG_RENAMING(ebp, bp), + REG_RENAMING(rbp, bp), + REG_RENAMING_END, +}; Please put the above in arch helper headers for x86, as these register names and their conversions are specific to x86. [SNIP] -- Thanks, Hemant Kumar

[PATCH 4/6] powerpc/perf: Add event attribute and group to IMA pmus

2016-11-03 Thread Hemant Kumar
ng <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/perf/Makefile| 3 +- arch/powerpc/perf/ima-pmu.c | 96 +++

[PATCH 4/6] powerpc/perf: Add event attribute and group to IMA pmus

2016-11-03 Thread Hemant Kumar
: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/perf/Makefile| 3 +- arch/powerpc/perf/ima-pmu.c

[PATCH 2/6] powerpc/powernv: Autoload IMA device driver module

2016-11-03 Thread Hemant Kumar
ba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powern

[PATCH 6/6] powerpc/perf: IMA pmu cpumask and cpu hotplug support

2016-11-03 Thread Hemant Kumar
Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/opa

[PATCH 2/6] powerpc/powernv: Autoload IMA device driver module

2016-11-03 Thread Hemant Kumar
now, only Nest units are taken care of. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/platfor

[PATCH 6/6] powerpc/perf: IMA pmu cpumask and cpu hotplug support

2016-11-03 Thread Hemant Kumar
) is designated as new cpu to read counters. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm

[PATCH 5/6] powerpc/perf: Generic ima pmu event functions

2016-11-03 Thread Hemant Kumar
> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@li

[PATCH 3/6] powerpc/powernv: Detect supported IMA units and its events

2016-11-03 Thread Hemant Kumar
net.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powernv/opal-ima.c | 299 ++ 1 file changed, 299 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal-ima.c b/ar

[PATCH 5/6] powerpc/perf: Generic ima pmu event functions

2016-11-03 Thread Hemant Kumar
-by: Hemant Kumar --- arch/powerpc/include/asm/ima-pmu.h| 2 + arch/powerpc/perf/ima-pmu.c | 122 ++ arch/powerpc/platforms/powernv/opal-ima.c | 37 +++-- 3 files changed, 154 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/include

[PATCH 3/6] powerpc/powernv: Detect supported IMA units and its events

2016-11-03 Thread Hemant Kumar
Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/platforms/powernv/opal-ima.c | 299 ++ 1 file changed, 299 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal-i

[PATCH 0/6] IMA Instrumentation support

2016-11-03 Thread Hemant Kumar
/suggestions are welcome. Cc: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Paul Mackerras <pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev

[PATCH 1/6] powerpc/powernv: Data structure and macros definitions

2016-11-03 Thread Hemant Kumar
<pau...@samba.org> Cc: Anton Blanchard <an...@samba.org> Cc: Sukadev Bhattiprolu <suka...@linux.vnet.ibm.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: Stephane Eranian <eran...@google.com> Signed-off-by: Hemant Kum

[PATCH 0/6] IMA Instrumentation support

2016-11-03 Thread Hemant Kumar
ack/suggestions are welcome. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Michael Neuling Cc: Stewart Smith Cc: Stephane Eranian Signed-off-by: Hemant Kumar Hemant Kumar (6): powerpc/powernv: Data

[PATCH 1/6] powerpc/powernv: Data structure and macros definitions

2016-11-03 Thread Hemant Kumar
: Stephane Eranian Signed-off-by: Hemant Kumar --- arch/powerpc/include/asm/ima-pmu.h | 73 ++ 1 file changed, 73 insertions(+) create mode 100644 arch/powerpc/include/asm/ima-pmu.h diff --git a/arch/powerpc/include/asm/ima-pmu.h b/arch/powerpc/include/asm/ima

[tip:perf/core] perf sdt: ELF support for SDT

2016-07-05 Thread tip-bot for Hemant Kumar
Commit-ID: 060fa0c7a3e0bb4f1426ee79dfd38e2a4c80067a Gitweb: http://git.kernel.org/tip/060fa0c7a3e0bb4f1426ee79dfd38e2a4c80067a Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Fri, 1 Jul 2016 17:03:46 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf sdt: ELF support for SDT

2016-07-05 Thread tip-bot for Hemant Kumar
Commit-ID: 060fa0c7a3e0bb4f1426ee79dfd38e2a4c80067a Gitweb: http://git.kernel.org/tip/060fa0c7a3e0bb4f1426ee79dfd38e2a4c80067a Author: Hemant Kumar AuthorDate: Fri, 1 Jul 2016 17:03:46 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 4 Jul 2016 19:38:59 -0300 perf sdt: ELF

Re: [PATCH perf/core v9 00/16] perf-probe --cache and SDT support

2016-05-31 Thread Hemant Kumar
is here; https://lkml.org/lkml/2016/5/14/107 This version just fixes 2 points according to Hemant's comment, and split out the filename__readable() patch. Thanks for working on those Masami. For the patches not already picked up by Arnaldo, Acked-by: Hemant Kumar <hem...@linux.vnet.ibm.com&g

Re: [PATCH perf/core v9 00/16] perf-probe --cache and SDT support

2016-05-31 Thread Hemant Kumar
l.org/lkml/2016/5/14/107 This version just fixes 2 points according to Hemant's comment, and split out the filename__readable() patch. Thanks for working on those Masami. For the patches not already picked up by Arnaldo, Acked-by: Hemant Kumar Changes in v9: - [1/16,2/16] split out th

Re: [PATCH perf/core v8 00/16] perf-probe --cache and SDT support

2016-05-19 Thread Hemant Kumar
, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (15): perf buildid: Introduce DSO__NAME_KALLSYMS and DSO__NAME_KCORE perf symbol: Cleanup the code flow of dso__find_kallsyms perf-buildid-cache: Use path/to/bin/buildid/elf instead of path/to/bin

Re: [PATCH perf/core v8 00/16] perf-probe --cache and SDT support

2016-05-19 Thread Hemant Kumar
, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (15): perf buildid: Introduce DSO__NAME_KALLSYMS and DSO__NAME_KCORE perf symbol: Cleanup the code flow of dso__find_kallsyms perf-buildid-cache: Use path/to/bin/buildid/elf instead of path/to/bin

Re: [PATCH perf/core v8 12/16] perf-list: Show SDT and pre-cached events

2016-05-19 Thread Hemant Kumar
uct probe_cache_entry *probe_cache__find(struct probe_cache *pcache, struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache, const char *group, const char *event); int probe_cache__show_all_caches(struct strfilter *filter); +#else /* ! HAVE_LIBELF_SUPPORT */ +static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused) +{ + return NULL; +} +#define probe_cache__delete(pcache) do {} while(0) +#endif #endif -- Thanks, Hemant Kumar

Re: [PATCH perf/core v8 12/16] perf-list: Show SDT and pre-cached events

2016-05-19 Thread Hemant Kumar
_by_name(struct probe_cache *pcache, const char *group, const char *event); int probe_cache__show_all_caches(struct strfilter *filter); +#else /* ! HAVE_LIBELF_SUPPORT */ +static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused) +{ + return NULL; +} +#define probe_cache__delete(pcache) do {} while(0) +#endif #endif -- Thanks, Hemant Kumar

Re: [PATCH perf/core v8 07/16] perf probe: Remove caches when --cache is given

2016-05-18 Thread Hemant Kumar
*pcache, + struct strfilter *filter); struct probe_cache_entry *probe_cache__find(struct probe_cache *pcache, struct perf_probe_event *pev); struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache, -- Thanks, Hemant Kumar

Re: [PATCH perf/core v8 07/16] perf probe: Remove caches when --cache is given

2016-05-18 Thread Hemant Kumar
probe_cache *pcache, struct perf_probe_event *pev); struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache, -- Thanks, Hemant Kumar

Re: [PATCH] perf/sdt: Directly record cached SDT events

2016-05-03 Thread Hemant Kumar
On 05/03/2016 06:05 AM, Masami Hiramatsu wrote: On Tue, 03 May 2016 05:06:24 +0530 Hemant Kumar <hem...@linux.vnet.ibm.com> wrote: Hi Masami, On 04/30/2016 06:06 PM, Masami Hiramatsu wrote: Hi Hemant, On Fri, 29 Apr 2016 19:10:41 +0530 Hemant Kumar <hem...@linux.vnet.ibm.c

Re: [PATCH] perf/sdt: Directly record cached SDT events

2016-05-03 Thread Hemant Kumar
On 05/03/2016 06:05 AM, Masami Hiramatsu wrote: On Tue, 03 May 2016 05:06:24 +0530 Hemant Kumar wrote: Hi Masami, On 04/30/2016 06:06 PM, Masami Hiramatsu wrote: Hi Hemant, On Fri, 29 Apr 2016 19:10:41 +0530 Hemant Kumar wrote: This patch adds support for directly recording SDT events

[PATCH v2] perf/sdt: Directly record SDT events

2016-05-03 Thread Hemant Kumar
a list of the event names that were written to uprobe_events file. After finishing the record session, it removes the events from the uprobe_events file using the maintained name list. Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- Changes since v1: - Added support for recordi

[PATCH v2] perf/sdt: Directly record SDT events

2016-05-03 Thread Hemant Kumar
a list of the event names that were written to uprobe_events file. After finishing the record session, it removes the events from the uprobe_events file using the maintained name list. Signed-off-by: Hemant Kumar --- Changes since v1: - Added support for recording on multiple SDT events with

Re: [PATCH] perf/sdt: Directly record cached SDT events

2016-05-02 Thread Hemant Kumar
Hi Masami, On 04/30/2016 06:06 PM, Masami Hiramatsu wrote: Hi Hemant, On Fri, 29 Apr 2016 19:10:41 +0530 Hemant Kumar <hem...@linux.vnet.ibm.com> wrote: This patch adds support for directly recording SDT events which are present in the probe cache. This patch is based on curre

Re: [PATCH] perf/sdt: Directly record cached SDT events

2016-05-02 Thread Hemant Kumar
Hi Masami, On 04/30/2016 06:06 PM, Masami Hiramatsu wrote: Hi Hemant, On Fri, 29 Apr 2016 19:10:41 +0530 Hemant Kumar wrote: This patch adds support for directly recording SDT events which are present in the probe cache. This patch is based on current SDT enablement patchset (v5) by Masami

Re: [PATCH perf/core v5 00/15] perf-probe --cache and SDT support

2016-04-29 Thread Hemant Kumar
-- Thanks, Hemant Kumar - (ftrace) Support multiple SDTs on single event. Thank you, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (14): perf probe: Use strbuf for making strings perf-buildid-cache: Use path/to/bin/buildid/elf instead of path/to/b

Re: [PATCH perf/core v5 00/15] perf-probe --cache and SDT support

2016-04-29 Thread Hemant Kumar
-- Thanks, Hemant Kumar - (ftrace) Support multiple SDTs on single event. Thank you, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (14): perf probe: Use strbuf for making strings perf-buildid-cache: Use path/to/bin/buildid/elf instead of path/to/b

[PATCH] perf/sdt: Directly record cached SDT events

2016-04-29 Thread Hemant Kumar
t also maintains a list of the event names that were written to uprobe_events file. After finishing the record session, it removes the events from the uprobe_events file using the maintained name list. Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- tools/perf/builtin-probe.c

[PATCH] perf/sdt: Directly record cached SDT events

2016-04-29 Thread Hemant Kumar
t also maintains a list of the event names that were written to uprobe_events file. After finishing the record session, it removes the events from the uprobe_events file using the maintained name list. Signed-off-by: Hemant Kumar --- tools/perf/builtin-probe.c | 44 +++--- tools/perf/builtin

Re: [PATCH perf/core v5 11/15] perf probe: Accept %sdt and %cached event name

2016-04-27 Thread Hemant Kumar
Reuse the "myevent" from cache as below. # perf probe -x ./perf %myevent TODO: Wildcard is not supported yet. Signed-off-by: Masami Hiramatsu <masami.hiramatsu...@hitachi.com> Acked-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- tools/pe

Re: [PATCH perf/core v5 11/15] perf probe: Accept %sdt and %cached event name

2016-04-27 Thread Hemant Kumar
from cache as below. # perf probe -x ./perf %myevent TODO: Wildcard is not supported yet. Signed-off-by: Masami Hiramatsu Acked-by: Hemant Kumar --- tools/perf/Documentation/perf-probe.txt |3 + tools/perf/util/probe-event.c | 78 +++

Re: [PATCH perf/core v5 12/15] perf-list: Show SDT and pre-cached events

2016-04-27 Thread Hemant Kumar
tdcxx:throw@/usr/lib64/libstdc++.so.6.0.20(91c7a88fdf49) The binary path and build-id are shown in below format; :@() Signed-off-by: Masami Hiramatsu <masami.hiramatsu...@hitachi.com> Signed-off-by: Masami Hiramatsu <mhira...@kernel.org> Acked-by: Hemant Kumar <hem...@linu

Re: [PATCH perf/core v5 12/15] perf-list: Show SDT and pre-cached events

2016-04-27 Thread Hemant Kumar
.so.6.0.20(91c7a88fdf49) The binary path and build-id are shown in below format; :@() Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu Acked-by: Hemant Kumar --- Changes in v5: - Fix a build error for minimal option. Changes in v4: - Update patch description.

Re: [PATCH perf/core v5.1 14/15] perf probe: Allow wildcard for cached events

2016-04-27 Thread Hemant Kumar
-cache. Signed-off-by: Masami Hiramatsu <mhira...@kernel.org> --- Changes in v5.1: - Fix a SEGV bug when a group name is omitted. (Thanks Hemant!) Thanks for the fix. Acked-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- tools/perf/util/probe-ev

Re: [PATCH perf/core v5.1 14/15] perf probe: Allow wildcard for cached events

2016-04-27 Thread Hemant Kumar
-cache. Signed-off-by: Masami Hiramatsu --- Changes in v5.1: - Fix a SEGV bug when a group name is omitted. (Thanks Hemant!) Thanks for the fix. Acked-by: Hemant Kumar --- tools/perf/util/probe-event.c | 153 - tools/perf/util/probe-event.h |1

Re: [PATCH perf/core v5 10/15] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
opy correct group name to entries. - Fix to consolidate same-name entries. Acked-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- tools/perf/util/build-id.c | 27 +++-- tools/perf/util/probe-file.c | 67 -- tools/perf/u

Re: [PATCH perf/core v5 10/15] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
d events. Normal one starts with "#", but SDTs are starting with "%". Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v4: - Fix a bug to copy correct group name to entries. - Fix to consolidate same-name entries. Acked-by: Hemant K

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
On 04/28/2016 01:06 AM, Masami Hiramatsu wrote: On Wed, 27 Apr 2016 12:28:16 -0300 Arnaldo Carvalho de Melo <a...@kernel.org> wrote: Em Wed, Apr 27, 2016 at 08:49:08PM +0530, Hemant Kumar escreveu: On 04/26/2016 02:34 PM, Masami Hiramatsu wrote: From: Masami Hiramatsu <masami.

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
On 04/28/2016 01:06 AM, Masami Hiramatsu wrote: On Wed, 27 Apr 2016 12:28:16 -0300 Arnaldo Carvalho de Melo wrote: Em Wed, Apr 27, 2016 at 08:49:08PM +0530, Hemant Kumar escreveu: On 04/26/2016 02:34 PM, Masami Hiramatsu wrote: From: Masami Hiramatsu perf buildid-cache --add scans

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
On 04/27/2016 08:58 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 27, 2016 at 08:49:08PM +0530, Hemant Kumar escreveu: On 04/26/2016 02:34 PM, Masami Hiramatsu wrote: From: Masami Hiramatsu <masami.hiramatsu...@hitachi.com> perf buildid-cache --add scans given binary and add t

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
On 04/27/2016 08:58 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 27, 2016 at 08:49:08PM +0530, Hemant Kumar escreveu: On 04/26/2016 02:34 PM, Masami Hiramatsu wrote: From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_&qu

Re: [PATCH perf/core v4 00/19] perf-probe --cache and SDT support

2016-04-27 Thread Hemant Kumar
Removes -x option when using pre-cached events. - (perf probe) Support @FILE/@BUILDID suffix for pre-cached events. - (perf buildid-cache) Fallback to old style buildid-cache. Thank you, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (18): perf probe:

Re: [PATCH perf/core v4 00/19] perf-probe --cache and SDT support

2016-04-27 Thread Hemant Kumar
Removes -x option when using pre-cached events. - (perf probe) Support @FILE/@BUILDID suffix for pre-cached events. - (perf buildid-cache) Fallback to old style buildid-cache. Thank you, --- Hemant Kumar (1): perf/sdt: ELF support for SDT Masami Hiramatsu (18): perf probe:

Re: [PATCH perf/core v4 18/19] perf probe: Allow wildcard for cached events

2016-04-27 Thread Hemant Kumar
+++ b/tools/perf/util/probe-file.h @@ -32,6 +32,11 @@ struct probe_cache { struct list_head list; }; +int probe_cache_entry__get_event(struct probe_cache_entry *entry, + struct probe_trace_event **tevs); +#define for_each_probe_cache_entry(entry, pcache) \ + list_for_each_entry(entry, >list, list) + struct probe_cache *probe_cache__new(const char *target); int probe_cache__add_entry(struct probe_cache *pcache, struct perf_probe_event *pev, -- Thanks, Hemant Kumar

Re: [PATCH perf/core v4 18/19] perf probe: Allow wildcard for cached events

2016-04-27 Thread Hemant Kumar
le.h @@ -32,6 +32,11 @@ struct probe_cache { struct list_head list; }; +int probe_cache_entry__get_event(struct probe_cache_entry *entry, + struct probe_trace_event **tevs); +#define for_each_probe_cache_entry(entry, pcache) \ + list_for_each_entry(entry, >list, list) + struct probe_cache *probe_cache__new(const char *target); int probe_cache__add_entry(struct probe_cache *pcache, struct perf_probe_event *pev, -- Thanks, Hemant Kumar

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
struct perf_probe_event *pev, struct probe_trace_event *tevs, int ntevs); +int probe_cache__scan_sdt(struct probe_cache *pcache, const char *pathname); int probe_cache__commit(struct probe_cache *pcache); void probe_cache__delete(struct probe_cache *pcache); int probe_cache__remove_entries(struct probe_cache *pcache, -- Thanks, Hemant Kumar

Re: [PATCH perf/core v4 14/19] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Hemant Kumar
+int probe_cache__scan_sdt(struct probe_cache *pcache, const char *pathname); int probe_cache__commit(struct probe_cache *pcache); void probe_cache__delete(struct probe_cache *pcache); int probe_cache__remove_entries(struct probe_cache *pcache, -- Thanks, Hemant Kumar

[tip:perf/urgent] perf probe: Search both .eh_frame and .debug_frame sections for probe location

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Gitweb: http://git.kernel.org/tip/270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Author: Hemant Kumar AuthorDate: Tue, 2 Feb 2016 20:56:46 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 2 Feb 2016 13:30:16 -0300 perf probe

[tip:perf/core] perf kvm/{x86,s390}: Remove dependency on uapi/ kvm_perf.h

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 162607ea20fafb4a76234ebe4314cd733345482e Gitweb: http://git.kernel.org/tip/162607ea20fafb4a76234ebe4314cd733345482e Author: Hemant Kumar AuthorDate: Thu, 28 Jan 2016 12:03:04 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 29 Jan 2016 17:49:48 -0300 perf kvm/{x86

[tip:perf/core] perf kvm/powerpc: Add support for HCALL reasons

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 78e6c39b231a8e31e193534fdbe29291b7fd8f37 Gitweb: http://git.kernel.org/tip/78e6c39b231a8e31e193534fdbe29291b7fd8f37 Author: Hemant Kumar AuthorDate: Thu, 28 Jan 2016 12:03:07 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 29 Jan 2016 17:49:54 -0300 perf kvm

[tip:perf/core] perf kvm/powerpc: Port perf kvm stat to powerpc

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 066d3593e1b14690dc1131d50cacbb0b7eb3f160 Gitweb: http://git.kernel.org/tip/066d3593e1b14690dc1131d50cacbb0b7eb3f160 Author: Hemant Kumar AuthorDate: Thu, 28 Jan 2016 12:03:06 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 29 Jan 2016 17:49:54 -0300 perf kvm

[tip:perf/core] perf kvm/{x86,s390}: Remove const from kvm_events_tp

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 48deaa74fcdad516a94fe38a4af706747d9e4745 Gitweb: http://git.kernel.org/tip/48deaa74fcdad516a94fe38a4af706747d9e4745 Author: Hemant Kumar AuthorDate: Thu, 28 Jan 2016 12:03:05 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 29 Jan 2016 17:49:53 -0300 perf kvm/{x86

[tip:perf/core] perf kvm/{x86,s390}: Remove dependency on uapi/ kvm_perf.h

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 162607ea20fafb4a76234ebe4314cd733345482e Gitweb: http://git.kernel.org/tip/162607ea20fafb4a76234ebe4314cd733345482e Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Thu, 28 Jan 2016 12:03:04 +0530 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf kvm/powerpc: Add support for HCALL reasons

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 78e6c39b231a8e31e193534fdbe29291b7fd8f37 Gitweb: http://git.kernel.org/tip/78e6c39b231a8e31e193534fdbe29291b7fd8f37 Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Thu, 28 Jan 2016 12:03:07 +0530 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf kvm/powerpc: Port perf kvm stat to powerpc

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 066d3593e1b14690dc1131d50cacbb0b7eb3f160 Gitweb: http://git.kernel.org/tip/066d3593e1b14690dc1131d50cacbb0b7eb3f160 Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Thu, 28 Jan 2016 12:03:06 +0530 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf kvm/{x86,s390}: Remove const from kvm_events_tp

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 48deaa74fcdad516a94fe38a4af706747d9e4745 Gitweb: http://git.kernel.org/tip/48deaa74fcdad516a94fe38a4af706747d9e4745 Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Thu, 28 Jan 2016 12:03:05 +0530 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/urgent] perf probe: Search both .eh_frame and .debug_frame sections for probe location

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Gitweb: http://git.kernel.org/tip/270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Author: Hemant Kumar <hem...@linux.vnet.ibm.com> AuthorDate: Tue, 2 Feb 2016 20:56:46 +0530 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[PATCH v4] perf/probe: Search both .eh_frame and .debug_frame sections for probe location

2016-02-02 Thread Hemant Kumar
tions (.eh_frame and .debug_frame), which is done in this patch. Note that, we can always force everything into both .eh_frame and .debug_frame by : $ gcc bin.c -fasynchronous-unwind-tables -fno-dwarf2-cfi-asm -g -o bin Acked-by: Masami Hiramatsu Signed-off-by: Hemant Kumar --- Changes since v3

[PATCH v4] perf/probe: Search both .eh_frame and .debug_frame sections for probe location

2016-02-02 Thread Hemant Kumar
tions (.eh_frame and .debug_frame), which is done in this patch. Note that, we can always force everything into both .eh_frame and .debug_frame by : $ gcc bin.c -fasynchronous-unwind-tables -fno-dwarf2-cfi-asm -g -o bin Acked-by: Masami Hiramatsu <masami.hiramatsu...@hitachi.com> Signed-off-

[PATCH v11 1/4] perf,kvm/{x86,s390}: Remove dependency on uapi/kvm_perf.h

2016-01-27 Thread Hemant Kumar
Its better to remove the dependency on uapi/kvm_perf.h to allow dynamic discovery of kvm events (if its needed). To do this, some extern variables have been introduced with which we can keep the generic functions generic. Signed-off-by: Hemant Kumar Acked-by: Alexander Yarygin --- Changelog

[PATCH v11 4/4] perf,kvm/powerpc: Add support for HCALL reasons

2016-01-27 Thread Hemant Kumar
1.70us 0.58us ( +- 4.77% ) H_RTAS 6 0.48% 0.85% 1.10us 9.25us 2.70us ( +- 48.57% ) H_PERFMON 4 0.32% 0.12% 0.41us 0.96us 0.59us ( +- 20.92% ) Total Samples:1244, Total events handled time:1916.69us. Signed-

[PATCH v11 3/4] perf,kvm/powerpc: Port perf kvm stat to powerpc

2016-01-27 Thread Hemant Kumar
gned-off-by: Srikar Dronamraju Signed-off-by: Hemant Kumar --- Changelog: v10 to v11: - Fixed a bug related to tracepoint_error when rebasing to v4.5-rc1. v8 to v9: - Moved the book3s specific setup into one function. - Removed the macros (which were being used only once). - Formatting changes. v7

[PATCH v11 2/4] perf,kvm/{x86,s390}: Remove const from kvm_events_tp

2016-01-27 Thread Hemant Kumar
This patch removes the "const" qualifier from kvm_events_tp declaration to account for the fact that some architectures may need to update this variable dynamically. For instance, powerpc will need to update this variable dynamically depending on the machine type. Signed-off-by: He

[PATCH v11 3/4] perf,kvm/powerpc: Port perf kvm stat to powerpc

2016-01-27 Thread Hemant Kumar
gned-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> --- Changelog: v10 to v11: - Fixed a bug related to tracepoint_error when rebasing to v4.5-rc1. v8 to v9: - Moved the book3s specific setup into one function. - Removed t

[PATCH v11 4/4] perf,kvm/powerpc: Add support for HCALL reasons

2016-01-27 Thread Hemant Kumar
1.70us 0.58us ( +- 4.77% ) H_RTAS 6 0.48% 0.85% 1.10us 9.25us 2.70us ( +- 48.57% ) H_PERFMON 4 0.32% 0.12% 0.41us 0.96us 0.59us ( +- 20.92% ) Total Samples:1244, Total events handled time:1916.69us. Signed-off-b

[PATCH v11 2/4] perf,kvm/{x86,s390}: Remove const from kvm_events_tp

2016-01-27 Thread Hemant Kumar
This patch removes the "const" qualifier from kvm_events_tp declaration to account for the fact that some architectures may need to update this variable dynamically. For instance, powerpc will need to update this variable dynamically depending on the machine type. Signed-off-by: Hemant

[PATCH v11 1/4] perf,kvm/{x86,s390}: Remove dependency on uapi/kvm_perf.h

2016-01-27 Thread Hemant Kumar
Its better to remove the dependency on uapi/kvm_perf.h to allow dynamic discovery of kvm events (if its needed). To do this, some extern variables have been introduced with which we can keep the generic functions generic. Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Acked-by: Ale

[PATCH v2] perf/probe: Search both .eh_frame and .debug_frame sections for probe location

2016-01-04 Thread Hemant Kumar
tions (.eh_frame and .debug_frame), which is done in this patch. Note that, we can always force everything into both .eh_frame and .debug_frame by : $ gcc bin.c -fasynchronous-unwind-tables -fno-dwarf2-cfi-asm -g -o bin Signed-off-by: Hemant Kumar --- Changes since v1: - pf->cfi is now cached a

<    1   2   3   4   5   6   7   >