l.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/imc-pmu.h | 4 +
arch/powerpc/perf/imc-pmu.c| 161 -
2 files changed, 164 insertions(+), 1 deletion(-)
d
th <stew...@linux.vnet.ibm.com>
Cc: Daniel Axtens <d...@axtens.net>
Cc: Stephane Eranian <eran...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com
Stephane Eranian <eran...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/imc-pmu.h | 1 +
arch/powerpc/include/asm/opal-a
ng <mi...@neuling.org>
Cc: Stewart Smith <stew...@linux.vnet.ibm.com>
Cc: Daniel Axtens <d...@axtens.net>
Cc: Stephane Eranian <eran...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@lin
.@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/opal-api.h| 3 +-
arch/powerpc/include/asm/opal.
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/imc-pmu.h| 1 +
arch/powerpc/perf/imc-pmu.c | 121 ++
arch/powerp
ng <mi...@neuling.org>
Cc: Stewart Smith <stew...@linux.vnet.ibm.com>
Cc: Daniel Axtens <d...@axtens.net>
Cc: Stephane Eranian <eran...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vn
lt;stew...@linux.vnet.ibm.com>
Cc: Daniel Axtens <d...@axtens.net>
Cc: Stephane Eranian <eran...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com>
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>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc
...@google.com>
Cc: Balbir Singh <bsinghar...@gmail.com>
Cc: Anju T Sudhakar <a...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/imc-pmu.h | 73 ++
1 file changed, 73 insertions(+)
crea
(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 <ma...@linux.vnet.ibm.com>
Cc: Michael Ellerman <m...@ellerman.id.au>
Cc: Be
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.com>
>
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
ng <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.com>
---
arch/powerpc/perf/Makefile| 6 +-
arch/powerpc/perf/imc-pmu.
: 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>
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
<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...
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:
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
>
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
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/
: 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
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
<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
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
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-
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
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
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
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
On 01/12/2016 04:34 PM, 平松雅巳 / HIRAMATU,MASAMI wrote:
Hi Hemant,
From: Hemant Kumar [mailto:hem...@linux.vnet.ibm.com]
perf probe through debuginfo__find_probes() in util/probe-finder.c
checks for the functions' frame descriptions in either .eh_frame section
of an ELF or the .debug_frame
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 <hem...@linux.vnet.ibm.com>
---
Changes since v
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 <hem...@linux.vnet.ibm.com>
---
Chang
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
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
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
gned-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
Changelog:
v8 to v9:
- Moved the book3s specific setup into one function.
- Removed the macros (which were being used only once).
- Formatting changes.
v7 to v8:
On 10/29/2015 02:17 AM, Alexander Yarygin wrote:
Hemant Kumar writes:
Hi David,
On 10/07/2015 09:41 PM, David Ahern wrote:
On 10/6/15 8:25 PM, Hemant Kumar wrote:
@@ -358,7 +357,12 @@ static bool handle_end_event(struct
perf_kvm_stat *kvm,
time_diff = sample->time - time_be
Hi Arnaldo,
Could you please take a look at this series and pull it?
---
Thanks,
Hemant
On 10/07/2015 07:55 AM, Hemant Kumar wrote:
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
Hi David,
On 10/07/2015 09:41 PM, David Ahern wrote:
On 10/6/15 8:25 PM, Hemant Kumar wrote:
@@ -358,7 +357,12 @@ static bool handle_end_event(struct
perf_kvm_stat *kvm,
time_diff = sample->time - time_begin;
if (kvm->duration && time_diff > kvm->duration) {
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>
---
Changel
gned-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
Changelog:
v8 to v9:
- Moved the book3s specific setup into one function.
- Removed the macros (which were being used only once).
- Formatting changes.
v7 to v8:
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
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
en change KVM_ENTRY_TRACE to const char
*kvm_entry_trace and s390 and other arches can have code to set
kvm_{entry,exit}_trace at runtime.
Yeah, will change them to kvm_{entry,exit}_trace, instead.
--
Thanks,
Hemant Kumar
___
Linuxppc-dev mailing list
Hi,
Thanks for the review.
On 09/28/2015 06:30 PM, Alexander Yarygin wrote:
Hemant Kumar <hem...@linux.vnet.ibm.com> writes:
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 intr
This patch removes the "const" qualifier from kvm_events_tp declaration
to account for the fact that powerpc will need to update this variable
dynamically depending on the machine type.
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
tools/perf/arch/s390/util/kvm-stat
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
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>
---
Changes
gned-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
Changes since v7:
- Fixed a kvm stat live bug for ppc.
tools/perf/arch/powerpc/Makefile | 2 +
tools/perf/arch/powerpc/util/Build
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>
---
tool
This patch removes the "const" qualifier from kvm_events_tp declaration
to account for the fact that powerpc will need to update this variable
dynamically depending on the machine type.
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
tools/perf/arch/s390/util/kvm-stat
gned-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
Changes :
- Remooved dependency on arch/uapi
tools/perf/arch/powerpc/Makefile | 2 +
tools/perf/arch/powerpc/util/Build | 1 +
tools/perf
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
s.
To avoid this issue, we need to check both the sections (.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 Kuma
On 09/07/2015 10:40 AM, Michael Ellerman wrote:
On Fri, 2015-09-04 at 17:51 -0300, Arnaldo Carvalho de Melo wrote:
Em Tue, Sep 01, 2015 at 12:18:47PM +0530, Hemant Kumar escreveu:
Should I try to process the 5 together, applying thest two first?
Yes, this patchset needs to be applied
(cc'ing Michael Ellerman with this reply)
Hi Arnaldo,
On 09/01/2015 01:43 AM, Arnaldo Carvalho de Melo wrote:
Em Mon, Aug 31, 2015 at 12:18:00PM +0530, Hemant Kumar escreveu:
To analyze the exit events with perf, we need to export the related
tracepoints through kvm_perf.h. kvm_perf.h
quot;perf kvm stat record" is invoked to collect
guest hcall statistics.
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
arch/powerpc/include/uapi/asm/kvm_perf.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h
b/arch/powerpc/inclu
_HV has
been added to the tracepoint macros. Additionally, we also need to
define the generic macros (albeit, with null strings) suffix, because
the preprocessor looks for them in the generic code in builtin-kvm.c.
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
Changes since v5:
-
This patch removes the "const" qualifier from kvm_events_tp declaration
to account for the fact that powerpc will need to update this variable
dynamically depending on the machine type.
Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com>
---
tools/perf/arch/s390/util/kvm-stat
3us 124240.15us
3486.52us ( +- 16.81% )
H_INST_STORAGE 5 0.03% 0.00% 1.88us 3.73us
2.39us ( +- 14.20% )
Total Samples:14357, Total events handled time:1203918.42us.
Signed-off-by: Srikar Dronamraju <sri...@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hem..
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
On 07/30/2015 03:52 AM, Scott Wood wrote:
On Wed, 2015-07-29 at 16:07 +0530, Hemant Kumar wrote:
Hi Scott,
On 07/17/2015 01:40 AM, Scott Wood wrote:
On Thu, 2015-07-16 at 21:18 +0530, Hemant Kumar wrote:
To analyze the exit events with perf, we need kvm_perf.h to be added in
the arch
Hi Scott,
On 07/17/2015 01:40 AM, Scott Wood wrote:
On Thu, 2015-07-16 at 21:18 +0530, Hemant Kumar wrote:
To analyze the exit events with perf, we need kvm_perf.h to be added in
the arch/powerpc directory, where the kvm tracepoints needed to trace
the KVM exit events are defined.
This patch
to
collect guest hcall statistics.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes:
- Not exporting the hcall related codes and names through uapi compared to
previous patch.
arch/powerpc/include/uapi/asm/kvm_perf_book3s.h | 4
1 file changed, 4 insertions(+)
diff --git
:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
This patch has a direct dependency on:
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg91603.html
Changes :
- Added exit reasons definitions(unlikely to change
4.72us
3.17us ( +- 5.96% )
Total Samples:2690, Total events handled time:2896.94us.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
This patch has a direct dependency on :
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg91605.html
Changes:
- Added definitions
include
kvm_perf_book3s.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes:
- Not exporting the exit reasons compared to previous patchset (suggested by
Paul)
arch/powerpc/include/uapi/asm/kvm_perf.h| 6 ++
arch/powerpc/include/uapi/asm/kvm_perf_book3s.h | 14
Hi Arnaldo,
On 06/16/2015 09:08 PM, Arnaldo Carvalho de Melo wrote:
Em Tue, Jun 16, 2015 at 08:20:53AM +0530, Hemant Kumar escreveu:
perf kvm {record|report} is used to record and report the performance
profile of any workload on a guest. From the host, we can collect
guest kernel statistics
Hi David,
Thanks for the review.
On 06/16/2015 08:23 PM, David Ahern wrote:
On 6/15/15 8:50 PM, Hemant Kumar wrote:
+/*
+ * Get the instruction pointer from the tracepoint data
+ */
+u64 arch__get_ip(struct perf_evsel *evsel, struct perf_sample *data)
+{
+u64 tp_ip = data-ip;
+int
this (like using
a different event to profile for, etc) to profile the guest from the
host.
Thank You.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/arch/powerpc/Makefile| 1 +
tools/perf/arch/powerpc/util/parse-tp.c | 55 +
tools
Hi Paul,
On 06/15/2015 11:09 AM, Paul Mackerras wrote:
On Mon, Jun 15, 2015 at 10:26:07AM +0530, Hemant Kumar wrote:
To analyze the kvm exits with perf, we will need to map the exit codes
with the exit reasons. Such a mapping exists today in trace_book3s.h.
Currently its not exported to perf
handled time:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Patch Resend :
- Added few more people to cc list.
- Rebased it to current tip.
Changes :
- Moved the uapi related changes to arch/powerpc patchset
.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes:
- Moved the uapi related changes to arch/powerpc side patchset.
This patch has a dependency on :
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg90507.html
which export hcall reasons through uapi.
tools/perf/arch
kvm_perf_book3s.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Resend :
- Rebased to the latest tip.
- Added few people to cc list.
Changes :
- Moved the uapi related changes from the perf side patchset to this
patchset.
- Made name space changes to indicate changes specific
-to-hcall_reason from
arch/powerpc/kvm/trace_hv.h to
arch/powerpc/include/uapi/asm/trace_hcall_pseries.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes :
- Made name space changes to indicate changes related to pseries
(Suggested by Scott Wood)
arch/powerpc/include/asm
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0. Note that this is not related to any interrupt vector address, but
this is added just to make sure that perf doesn't complain if and when a
kvm exit happens with a trap code as 0x0.
Signed-off-by: Hemant Kumar hem
handled time:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes :
- Moved the uapi related changes to arch/powerpc patchset.
This patch has a dependency on :
http://www.mail-archive.com/linuxppc-dev
.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes:
- Moved the uapi related changes to arch/powerpc side patchset.
This patch has a dependency on :
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg89487.html
which export hcall reasons through uapi.
tools/perf/arch
kvm_perf_book3s.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes :
- Moved the uapi related changes from the perf side patchset to this
patchset.
- Made name space changes to indicate changes specific to book3s
(Suggested by Scott Wood)
arch/powerpc/include/uapi/asm
Hi Scott,
On 05/13/2015 08:52 AM, Scott Wood wrote:
On Tue, 2015-05-12 at 21:34 +0530, Hemant Kumar wrote:
Hi Scott,
On 05/12/2015 03:38 AM, Scott Wood wrote:
On Fri, 2015-05-08 at 06:37 +0530, Hemant Kumar wrote:
diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h
b/arch/powerpc/include
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0. Note that this is not related to any interrupt vector address, but
this is added just to make sure that perf doesn't complain if and when a
kvm exit happens with a trap code as 0x0.
Signed-off-by: Hemant Kumar hem
-to-hcall_reason from
arch/powerpc/kvm/trace_hv.h to
arch/powerpc/include/uapi/asm/trace_hcall_pseries.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes :
- Made name space changes to indicate changes related to pseries
(Suggested by Scott Wood)
arch/powerpc/include/asm
know your feedback.
Thanks,
---
Hemant Kumar (1):
perf/script: Python script to display the ganged exits count on powerpc
tools/perf/scripts/python/gang_exits.py | 65 +
1 file changed, 65 insertions(+)
create mode 100644 tools/perf/scripts/python/gang_exits.py
: 25314
===
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/scripts/python/gang_exits.py | 65 +
1 file changed, 65 insertions(+)
create mode 100644 tools/perf/scripts/python/gang_exits.py
diff --git
Hi Scott,
On 05/12/2015 03:38 AM, Scott Wood wrote:
On Fri, 2015-05-08 at 06:37 +0530, Hemant Kumar wrote:
From: Srikar Dronamraju sri...@linux.vnet.ibm.com
perf kvm can be used to analyze guest exit reasons. This support already
exists in x86. Hence, porting it to powerpc.
- To trace KVM
On 05/12/2015 03:44 AM, Scott Wood wrote:
On Fri, 2015-05-08 at 06:23 +0530, Hemant Kumar wrote:
For perf to analyze the KVM events like hcalls, we need the
hypervisor calls and their codes to be exported through uapi.
This patch moves most of the pSeries hcall codes from
arch/powerpc/include
On 05/08/2015 09:58 AM, Ingo Molnar wrote:
* Hemant Kumar hem...@linux.vnet.ibm.com wrote:
# perf kvm stat report -p 60515
Analyze events for pid(s) 60515, all VCPUs:
VM-EXITSamples Samples% Time%Min Time Max
Time Avg time
H_DATA_STORAGE
/uapi/asm/trace_book3s.h.
Accordingly change the include files in trace_hv.h and trace_pr.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Changes :
- Original patchset split into 2 patchsets now: for perf and powerpc
side changes.
arch/powerpc/include/uapi/asm/trace_book3s.h | 32
.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Patch has a dependency on https://patchwork.ozlabs.org/patch/469841/
which exports the HCALL reason codes to perf.
arch/powerpc/include/uapi/asm/kvm_perf.h | 4 +++
tools/perf/arch/powerpc/util/kvm-stat.c | 61
-to-hcall_reason from
arch/powerpc/kvm/trace_hv.h to
arch/powerpc/include/uapi/asm/trace_hcall.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 120 +--
arch/powerpc/include/uapi/asm/hcall_codes.h | 123
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/uapi/asm/trace_book3s.h
b/arch/powerpc/include
events handled time:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
Patch has a dependency on : https://patchwork.ozlabs.org/patch/469839/
which exports the exit reasons to perf through uapi.
Changes:
- Original series
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/uapi/asm/trace_book3s.h
b/arch/powerpc/include
% 2.22us 4.72us
3.17us ( +- 5.96% )
Total Samples:2690, Total events handled time:2896.94us.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/kvm_perf.h | 4 +++
tools/perf/arch/powerpc/util/kvm-stat.c | 61
2
/include/uapi/asm/trace_book3s.h.
We will also need to change the path of trace_book3s.h included in files
trace_hv.h and trace_pr.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 32
arch/powerpc/kvm
all the post processing of parsing the events captured and
classifying them according to their exit reasons (which are already
availabe in trace_book3s.h). Similar method is used with hcall
analysis.
Thanks,
Hemant Kumar
___
Linuxppc-dev mailing list
240 1.69% 0.00%0.69us 10.67us
1.33us ( +- 5.34% )
Total Samples:14182, Total events handled time:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/kvm_perf.h
hcall_code-to-hcall_reason from
arch/powerpc/kvm/trace_hv.h to
arch/powerpc/include/uapi/asm/trace_hcall.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 120 +--
arch/powerpc/include/uapi/asm/hcall_codes.h | 123
kvm stat report --event=vmexit
This should show the exit events along with the exit reasons.
The second patch in this series adds support to show the hcall events too with:
# perf kvm stat report --event=syscall
---
Hemant Kumar (1):
perf/kvm: perf-kvm-stat to report syscalls
Srikar
1 - 100 of 103 matches
Mail list logo