[PATCH v6 0/7] Make 24x7 and GPCI events available in sysfs

2014-12-21 Thread Sukadev Bhattiprolu
r=?' and display them via 'perf list'. Changelog[v6] [Jiri Olsa, Sukadev Bhattiprolu] Rather than display 'starting_index=$core' in perf.list and sysfs and expect user to specify a value for 'starting_index', replace 'starting_index'

[PATCH v6 3/7] perf: define EVENT_DEFINE_RANGE_FORMAT_LITE helper

2014-12-21 Thread Sukadev Bhattiprolu
Define a lite version of the EVENT_DEFINE_RANGE_FORMAT() that avoids defining helper functions for the bit-field ranges. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-common.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/perf/hv-common.h b/arch

[PATCH v6 2/7] perf: add PMU_EVENT_ATTR_STRING() helper

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/perf_event.h

[PATCH v6 6/7] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). Changelog[v6] [Jiri Olsa, Sukadev Bhattiprolu] Replace 'starting_index' with what it reall

[PATCH v6 7/7] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6] [Cody Schafer] Update Contact info to Linux on Power Developer list CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 ++ 1

[PATCH v6 4/4] tools/perf: Document parameterized and symbolic events

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf

[PATCH v6 1/4] tools/perf: support parsing parameterized events

2014-12-21 Thread Sukadev Bhattiprolu
and fix a small conflict. Changelog[v3]: [Jiri Olsa] If the sysfs event file specifies 'param=val', make the usage 'hv_24x7/event,param=123/' rather than 'hv_24x7/event,val=123/'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Sukadev Bhat

[PATCH v6 2/4] tools/perf: extend format_alias() to include event parameters

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer This causes `perf list pmu` to show parameters for parameterized events like: pmu/event_name,param1=?,param2=?/ [Kernel PMU event] An example: hv_24x7/HPM_TLBIE__PHYS_CORE,core=?/ [Kernel PMU event] Changelog[v6] [Jir Olsa, Sukadev Bhattiprolu] Drop the

[PATCH v6 0/4] Add support for parametrized events

2014-12-21 Thread Sukadev Bhattiprolu
;perf list' will be displayed with '$xyz' in them. For example: hv_24x7/HPM_THREAD_NAP_CCYC__PHYS_CORE,core=?/ This means that when provided as an event, a value for ? must also be supplied. For example: perf stat -e \ 'hv_24x7/HPM_THREA

[PATCH v6 3/4] perf Documentation: add event parameters

2014-12-21 Thread Sukadev Bhattiprolu
a hypervisor). This isn't possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. Changelog[v6] Update event description to explain how required parameters are displayed. CC: Sukadev Bh

[PATCH v6 4/7] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-12-21 Thread Sukadev Bhattiprolu
Catalog is (at the moment) only parsed on boot. It needs re-parsing when a some hypervisor events occur. At that point we'll also need to prevent old events from continuing to function (counter that is passed in via spare space in the config values?). Changelog[v6] [Jiri Olsa, Suka

[PATCH v6 5/7] powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated

2014-12-21 Thread Sukadev Bhattiprolu
event. Eg if starting_index refers to a partition_id for an event, allow user to specify a value for partition_id rather than 'starting_index'. Also use a =? to indicate required parameters: eg partition_id=? CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Sc

[PATCH v6 1/7] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-12-21 Thread Sukadev Bhattiprolu
From: Cody P Schafer (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody

Re: [PATCH 1/2] perf/powerpc/hv-24x7: Use per-cpu page buffer

2014-12-10 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: | On Tue, 2014-12-09 at 23:06 -0800, Sukadev Bhattiprolu wrote: | > From 470c16c8955672103a9529c78dffbb239e9e27b8 Mon Sep 17 00:00:00 2001 | > From: Sukadev Bhattiprolu | > Date: Tue, 9 Dec 2014 22:17:46 -0500 | > Subject: [PATCH 1/2] per

[PATCH 2/2] perf/power/hv-24x7: Use kmem_cache_free() instead of kfree

2014-12-09 Thread Sukadev Bhattiprolu
>From 982bf5a660ae33fbe2f9187187caa6752c66783d Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Wed, 10 Dec 2014 01:43:34 -0500 Subject: [PATCH 2/2] power/perf: hv-24x7: Use kmem_cache_free() instead of kfree Use kmem_cache_free() to free a buffer allocated with kmem_cache_al

[PATCH 1/2] perf/powerpc/hv-24x7: Use per-cpu page buffer

2014-12-09 Thread Sukadev Bhattiprolu
>From 470c16c8955672103a9529c78dffbb239e9e27b8 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 9 Dec 2014 22:17:46 -0500 Subject: [PATCH 1/2] perf/poweprc/hv-24x7: Use per-cpu page buffer The 24x7 counters are continuously running and not updated on an interrupt. So we record

Re: [PATCH v5 1/4] tools/perf: support parsing parameterized events

2014-12-06 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | anyway we could assign directly to the param term name as you do, | but I think we just need to mark the term as parametrized, like: | | in /sys/bus/event_source/devices/pmu/events/event_name you have: | param2=?,bar=1,param1=? I like the idea of just usin

[PATCH v5 0/4] Add support for parametrized events

2014-12-02 Thread Sukadev Bhattiprolu
Description of "event parameters" from the documentation patch: Event parameters are a basic way for partial events to be specified in sysfs with per-event names given to the fields that need to be filled in when using a particular event. It is intended for supporting cases where

[PATCH v5 2/4] tools/perf: extend format_alias() to include event parameters

2014-12-02 Thread Sukadev Bhattiprolu
Zijlstra] Use '$' to prefix parameterized events. Changelog[v4] [Jiri Olsa] If the parameter for an event in sysfs is 'param=val', have perf-list show the event as 'param=?' rather than 'val=?'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by

[PATCH v5 1/4] tools/perf: support parsing parameterized events

2014-12-02 Thread Sukadev Bhattiprolu
perf-core and fix a small conflict. Changelog[v3]: [Jiri Olsa] If the sysfs event file specifies 'param=val', make the usage 'hv_24x7/event,param=123/' rather than 'hv_24x7/event,val=123/'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Sukadev Bhat

[PATCH v5 4/4] tools/perf: Document parameterized and symbolic events

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf

[PATCH v5 3/4] perf Documentation: add event parameters

2014-12-02 Thread Sukadev Bhattiprolu
a hypervisor). This isn't possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- Documentation/ABI/test

[PATCH v5 3/6] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-12-02 Thread Sukadev Bhattiprolu
alues?). Changelog[v5] [Jiri Olsa, Peter Zijlstra] Prefix required parameters with '$' to make it easy for user to recognize. Changelog[v4] [Sukadev Bhattiprolu] Use PHYS and VCPU in place of PHYSICAL and VIRTUAL_PROCESSOR to shorten the names of the do

[PATCH v5 4/6] powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated

2014-12-02 Thread Sukadev Bhattiprolu
changes in naming). In exchange for this macro disaster, we get autogenerated event listing for GPCI in sysfs, build time field offset checking, and zero duplication of information about GPCI requests. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer

[PATCH v5 0/6]: Make 24x7 and GPCI events available in sysfs

2014-12-02 Thread Sukadev Bhattiprolu
The current support for the 24x7 and GPCI counters in the kernel requires users to specify the domain and offset of the event numerically, which is obviously hard to use: perf stat -C 0 -e \ 'hv_24x7/domain=2,offset=0xd58,starting_index=0,lpar=0x/' \ sleep 1 This pat

[PATCH v5 1/6] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody

[PATCH v5 5/6] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv

[PATCH v5 2/6] perf: add PMU_EVENT_ATTR_STRING() helper

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/perf_event.h

[PATCH v5 6/6] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source

Re: [PATCH 3.4 43/91] perf: Fix a race condition in perf_remove_from_context()

2014-12-01 Thread Sukadev Bhattiprolu
l...@kernel.org [l...@kernel.org] wrote: | From: Cong Wang | | 3.4.105-rc1 review patch. If anyone has any objections, please let me know. | | | diff --git a/kernel/events/core.c b/kernel/events/core.c | index 685ce46..c958be1 100644 | --- a/kernel/events/core.c | +++ b/kernel/events/core.c |

Re: perf: Add support for full Intel event lists v8

2014-11-24 Thread Sukadev Bhattiprolu
Andi Kleen [a...@firstfloor.org] wrote: | Since it seems the download mechanism is controversal, | I removed the downloader for now until a suitable distribution | method with kernel.org can be established. This is just | the rest of the perf JSON event code that should hopefully | not be controv

Re: [PATCH V4 1/8] elf: Add new PowerPC specifc core note sections

2014-11-18 Thread Sukadev Bhattiprolu
affecting it in any manner. | | Signed-off-by: Anshuman Khandual Except for some minor comments to one of the patches, the patchset looks good to me. I was also able to run the included selftest on a PowerVM guest. Tested-by: Sukadev Bhattiprolu | --- | include/uapi/linux/elf.h | 5 + | 1 file

Re: [PATCH V4 6/8] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-18 Thread Sukadev Bhattiprolu
Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of transactional memory related register | sets through PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing | four new powerpc specific register sets i.e REGSET_TM_SPR, REGSET_TM_CGPR, | REGSET_TM_CFPR,

Re: [PATCH v8 02/14] perf: Add AUX area to ring buffer for raw data streams

2014-11-17 Thread Sukadev Bhattiprolu
Alexander Shishkin [alexander.shish...@linux.intel.com] wrote: | From: Peter Zijlstra | | This patch introduces "AUX space" in the perf mmap buffer, intended for | exporting high bandwidth data streams to userspace, such as instruction | flow traces. | | AUX space is a ring buffer, defined by au

[tip:perf/core] perf tools powerpc: Cache the DWARF debug info

2014-10-29 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 7d073b335edc8d97af730c2e3b83ed6642bd3c27 Gitweb: http://git.kernel.org/tip/7d073b335edc8d97af730c2e3b83ed6642bd3c27 Author: Sukadev Bhattiprolu AuthorDate: Tue, 21 Oct 2014 17:09:58 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 29 Oct 2014 10:32:46 -0200 perf

Re: [PATCH 01/32] perf tools powerpc: Cache the DWARF debug info

2014-10-29 Thread Sukadev Bhattiprolu
Namhyung Kim [namhy...@kernel.org] wrote: | > + if (dwfl_report_offline(dwfl, "", dso->long_name, -1) == NULL) { | > + pr_debug("dwfl_report_offline() failed %s\n", | > + dwarf_errmsg(-1)); | > + /* | > +

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-22 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | > + goto out; | > + } | > + dso->dwfl = dwfl; | | so by this we get powerpc arch code sharing dw handle via dso object, | but we have lot of generic code too ;-) Well, this applies to powerpc... | | could you make this

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-21 Thread Sukadev Bhattiprolu
Arnaldo Carvalho de Melo [a...@kernel.org] wrote: | Em Tue, Oct 21, 2014 at 11:56:10AM -0700, Sukadev Bhattiprolu escreveu: | > >From 773a3608a0cd2daf02e244cb9ffbf5bb6a0e724e Mon Sep 17 00:00:00 2001 | > From: Sukadev Bhattiprolu | > Date: Tue, 21 Oct 2014 13:20:22 -0500 | > Subj

[PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-21 Thread Sukadev Bhattiprolu
>From 773a3608a0cd2daf02e244cb9ffbf5bb6a0e724e Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 21 Oct 2014 13:20:22 -0500 Subject: [PATCH 1/1] perf/powerpc: Cache DWARF debug info Cache the DWARF debug info for DSO so we don't have to rebuild it for each address in the

Re: [PATCH V3 3/3] powerpc, ptrace: Enable support for miscellaneous registers

2014-10-08 Thread Sukadev Bhattiprolu
Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | On 08/28/2014 03:05 AM, Sukadev Bhattiprolu wrote: | > | > I see these in arch/powerpc/include/asm/processor.h | > | > #ifdef CONFIG_PPC64 | > unsigned long dscr; | > int dscr_inherit; |

Re: [PATCH v3 0/5] powerpc/perf: Miscellaneous fixes

2014-10-06 Thread Sukadev Bhattiprolu
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote: | Miscellaenous fixes for perf and 24x7 counters in powerpc. | | Patches 1,3,4 were submitted earlier as a part of the parametrized | events for 24x7 counters. But they are not directly related to the | parametrized events. | | Patch 2

[PATCH 1/3] tools/perf: Fix error message

2014-10-02 Thread Sukadev Bhattiprolu
Sometimes, eg: with a stripped vmlinux, we can open the file but cannot load any symbols from it. Update error message accordingly so the users can better understand the error. Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/3] tools/perf: Rename variables for clarity

2014-10-02 Thread Sukadev Bhattiprolu
is hopefully easier to understand. Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/symbol.c | 50 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index be84f7a..9b66e27

[PATCH 3/3] tools/perf: Fix error reporting

2014-10-02 Thread Sukadev Bhattiprolu
e78d3afac6492dcae52cd756394247997d6 not found, continuing without symbols Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/symbol.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 9b66e27..a

[PATCH 5/5] powerpc: Update contact info in Documentation files

2014-09-30 Thread Sukadev Bhattiprolu
Cody's email address has changed. Update the contact information for the 24x7 and GPCI counters to the PowerPC developers mailing list. Signed-off-by: Sukadev Bhattiprolu --- .../ABI/testing/sysfs-bus-event_source-devices-hv_24x7 | 6 +++--- .../ABI/testing/sysfs-bus-event_source-de

[PATCH 2/5] Simplify catalog_read()

2014-09-30 Thread Sukadev Bhattiprolu
required bytes into the given buffer. Each call to catalog_read() returns at most one 4K page. Given these requirements, we should be able to simplify the catalog_read(). Signed-off-by: Sukadev Bhattiprolu --- Changelog[v3] [Michael Ellerman] offset_in_page must be based on offsetr

[PATCH 4/5] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-09-30 Thread Sukadev Bhattiprolu
arbitrary event file contents. CC: Haren Myneni Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- .../testing/sysfs-bus-event_source-devices-events | 573 - 1 file changed, 573 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devi

[PATCH 3/5] perf Documentation: sysfs events/ interfaces

2014-09-30 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add documentation for the , .scale, and .unit files in sysfs. .scale and .unit were undocumented. was previously documented only for specific powerpc pmu events. CC: Haren Myneni Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu

[PATCH v3 0/5] powerpc/perf: Miscellaneous fixes

2014-09-30 Thread Sukadev Bhattiprolu
aligned stack allocations perf Documentation: sysfs events/ interfaces perf Documentation: remove duplicated docs for powerpc cpu specific events Sukadev Bhattiprolu (2): Simplify catalog_read() powerpc: Update contact info in Documentation files .../testing/sysfs-bus-event_source

[PATCH 1/5] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-09-30 Thread Sukadev Bhattiprolu
unsie Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- Changelog [v3]: [Michael Ellerman] Cleanup code and use kmem..zalloc() arch/powerpc/perf/hv-24x7.c | 55 ++--- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a

Re: [v2,2/4] Simplify catalog_read()

2014-09-30 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: | > @@ -203,6 +125,7 @@ static ssize_t catalog_read(struct file *filp, struct kobject *kobj, | > | > page_offset = offset / 4096; | > page_count = count / 4096; | | I don't see where page_count is used. Yes, I will remove it. | | > +

Re: [PATCH v4 01/10] tools/perf: support parsing parameterized events

2014-09-25 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Wed, Sep 24, 2014 at 12:27:15PM -0700, Sukadev Bhattiprolu wrote: | > From: Cody P Schafer | > | > Enable event specification like: | > | > pmu/event_name,param1=0x1,param2=0x4/ | > | > Assuming that | > | > /sys/b

[PATCH v4 03/10] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody

[PATCH v4 02/10] tools/perf: extend format_alias() to include event parameters

2014-09-24 Thread Sukadev Bhattiprolu
] Changelog[v6] [Jir Olsa] If the parameter for an event in sysfs is 'param=val', have perf-list show the event as 'param=?' rather than 'val=?'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu -

[PATCH v4 09/10] tools/perf: Document parameterized and symbolic events

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf

[PATCH v4 07/10] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv

[PATCH v4 05/10] perf: add PMU_EVENT_ATTR_STRING() helper

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/perf_event.h

[PATCH v4 08/10] perf Documentation: add event parameters

2014-09-24 Thread Sukadev Bhattiprolu
a hypervisor). This isn't possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- Documentation/ABI/test

[PATCH v4 01/10] tools/perf: support parsing parameterized events

2014-09-24 Thread Sukadev Bhattiprolu
-core and fix a small conflict. Changelog[v3]: [Jiri Olsa] If the sysfs event file specifies 'param=val', make the usage 'hv_24x7/event,param=123/' rather than 'hv_24x7/event,val=123/'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Sukadev Bhat

[PATCH v4 04/10] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-09-24 Thread Sukadev Bhattiprolu
events occur. At that point we'll also need to prevent old events from continuing to function (counter that is passed in via spare space in the config values?). Changelog[v6] [Sukadev Bhattiprolu] Use PHYS and VCPU in place of PHYSICAL and VIRTUAL_PROCESSOR to shorten the names o

[PATCH v4 10/10] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source

[PATCH v4 06/10] powerpc/perf/{hv-gpci,hv-common}: generate requests with counters annotated

2014-09-24 Thread Sukadev Bhattiprolu
changes in naming). In exchange for this macro disaster, we get autogenerated event listing for GPCI in sysfs, build time field offset checking, and zero duplication of information about GPCI requests. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer

[PATCH v4 00/10] Add support for parameterized events from sysfs

2014-09-24 Thread Sukadev Bhattiprolu
What this patchset does: - the first patch (override sysfs in tools/perf via SYSFS_PATH) was sent out previously, but needed a resend anyhow. Having it is useful for testing the later changes to tools/perf. - the second patch is a bugfix to the powerpc hv-24x7 code which was previously

[PATCH v2 4/4] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-09-24 Thread Sukadev Bhattiprolu
arbitrary event file contents. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 573 - 1 file changed, 573 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-ev

[PATCH v2 2/4] Simplify catalog_read()

2014-09-24 Thread Sukadev Bhattiprolu
required bytes into the given buffer. Each call to catalog_read() returns at most one 4K page. Given these requirements, we should be able to simplify the catalog_read(). Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-24x7.c | 92 + 1 file

[PATCH v2 3/4] perf Documentation: sysfs events/ interfaces

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add documentation for the , .scale, and .unit files in sysfs. .scale and .unit were undocumented. was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing

[PATCH v2 1/4] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer Ian pointed out the use of __aligned(4096) caused rather large stack consumption in single_24x7_request(), so use the kmem_cache hv_page_cache (which we've already got set up for other allocations) insead of allocating locally. CC: Sukadev Bhattiprolu CC: Haren Mynen

[PATCH v2 0/4] powerpc/perf: Miscellaneous fixes

2014-09-24 Thread Sukadev Bhattiprolu
events Sukadev Bhattiprolu (1): Simplify catalog_read() .../testing/sysfs-bus-event_source-devices-events | 611 ++--- arch/powerpc/perf/hv-24x7.c| 144 ++--- 2 files changed, 96 insertions(+), 659 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list

Re: [PATCH v5 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-09-23 Thread Sukadev Bhattiprolu
Aaro Koskinen [aaro.koski...@iki.fi] wrote: | Hi, | | On Wed, Jun 25, 2014 at 08:49:03AM -0700, Sukadev Bhattiprolu wrote: | > powerpc/perf: Adjust callchain based on DWARF debug info | > | > When saving the callchain on Power, the kernel conservatively saves excess | > entries in t

[PATCH v3 05/10] perf: add PMU_EVENT_ATTR_STRING() helper

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h |7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux

[PATCH v3 02/10] tools/perf: extend format_alias() to include event parameters

2014-09-17 Thread Sukadev Bhattiprolu
] Changelog[v6] [Jir Olsa] If the parameter for an event in sysfs is 'param=val', have perf-list show the event as 'param=?' rather than 'val=?'. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu ---

[PATCH v3 03/10] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody

[PATCH v3 00/10] Add support for parameterized events from sysfs

2014-09-17 Thread Sukadev Bhattiprolu
What this patchset does: - the first patch (override sysfs in tools/perf via SYSFS_PATH) was sent out previously, but needed a resend anyhow. Having it is useful for testing the later changes to tools/perf. - the second patch is a bugfix to the powerpc hv-24x7 code which was previously

[PATCH v3 04/10] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-09-17 Thread Sukadev Bhattiprolu
events occur. At that point we'll also need to prevent old events from continuing to function (counter that is passed in via spare space in the config values?). Changelog[v6] [Sukadev Bhattiprolu] Use PHYS and VCPU in place of PHYSICAL and VIRTUAL_PROCESSOR to shorten the names o

[PATCH v3 06/10] powerpc/perf/{hv-gpci,hv-common}: generate requests with counters annotated

2014-09-17 Thread Sukadev Bhattiprolu
changes in naming). In exchange for this macro disaster, we get autogenerated event listing for GPCI in sysfs, build time field offset checking, and zero duplication of information about GPCI requests. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer

[PATCH v3 08/10] perf Documentation: add event parameters

2014-09-17 Thread Sukadev Bhattiprolu
a hypervisor). This isn't possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs

[PATCH v3 09/10] tools/perf: Document parameterized and symbolic events

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf

[PATCH v3 07/10] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv

[PATCH v3 10/10] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 1 file changed, 22 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source

[PATCH v3 01/10] tools/perf: support parsing parameterized events

2014-09-17 Thread Sukadev Bhattiprolu
file specifies 'param=val', make the usage 'hv_24x7/event,param=123/' rather than 'hv_24x7/event,val=123/'. [Sukadev Bhattiprolu] If verbose option is set, print help message if a required parameter is missing or invalid parameter is specified.

[PATCH 1/4] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer Ian pointed out the use of __aligned(4096) caused rather large stack consumption in single_24x7_request(), so use the kmem_cache hv_page_cache (which we've already got set up for other allocations) insead of allocating locally. CC: Sukadev Bhattiprolu CC: Haren Mynen

[PATCH 0/4] powerpc/perf: Miscellaneous fixes

2014-09-17 Thread Sukadev Bhattiprolu
to not read first page. Cody P Schafer (3): powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations perf Documentation: sysfs events/ interfaces perf Documentation: remove duplicated docs for powerpc cpu specific events Sukadev Bhattiprolu (1): Simplify

[PATCH 4/4] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-09-17 Thread Sukadev Bhattiprolu
arbitrary event file contents. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 573 1 file changed, 573 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-ev

[PATCH 2/4] Simplify catalog_read()

2014-09-17 Thread Sukadev Bhattiprolu
required bytes into the given buffer. Each call to catalog_read() returns at most one 4K page. Given these requirements, we should be able to simplify the catalog_read(). Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-24x7.c | 92 +-- 1 file

[PATCH 3/4] perf Documentation: sysfs events/ interfaces

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add documentation for the , .scale, and .unit files in sysfs. .scale and .unit were undocumented. was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing

Re: [PATCH V3 3/3] powerpc, ptrace: Enable support for miscellaneous registers

2014-08-27 Thread Sukadev Bhattiprolu
Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of miscellaneous registers through ptrace | PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing new powerpc | specific register set REGSET_MISC support corresponding to the new ELF | core note NT_PPC_MI

Re: [PATCH V3 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-08-27 Thread Sukadev Bhattiprolu
Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of transactional memory related register | sets through PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing | four new powerpc specific register sets i.e REGSET_TM_SPR, REGSET_TM_CGPR, | REGSET_TM_CFPR,

Re: [PATCH 1/2] perf powerpc: Skip callchain code must include util/debug.h

2014-08-25 Thread Sukadev Bhattiprolu
Anton Blanchard [an...@samba.org] wrote: | Fix a compile error, the prototype for pr_debug could not be found. | Arnaldo pushed this patch to Ingo recently. https://lkml.org/lkml/2014/8/22/393 | Signed-off-by: Anton Blanchard | --- | | Index: b/tools/perf/arch/powerpc/util/skip-callcha

[tip:perf/core] perf tools powerpc: Explicitly include util/ debug.h

2014-08-24 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: ad7e767a726dd7dffad45d7fcbf371094e7f2288 Gitweb: http://git.kernel.org/tip/ad7e767a726dd7dffad45d7fcbf371094e7f2288 Author: Sukadev Bhattiprolu AuthorDate: Thu, 7 Aug 2014 00:27:00 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 20 Aug 2014 08:29:10 -0300 perf

Re: [PATCH v2 00/14] Add support for parameterized events from sysfs

2014-08-22 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | > Description of the sysfs contents when events are parameterized (copied from an | > included patch): | > | > Examples: | > | > domain=0x1,offset=0x8,starting_index=phys_cpu | > | > In the case of the last example, a value replacing "

[PATCH v3] powerpc/perf: Implement get_cpu_str()

2014-08-18 Thread Sukadev Bhattiprolu
Powerpc, we can skip the --events-file option and run: perf stat -e PM_CYC sleep 1 Signed-off-by: Sukadev Bhattiprolu --- Changelog[v3]: [Tobias Klauser]: Fix some changelog damage to patch. Changelog[v2]: [Michael Ellerman]: Use PVR instead of AUXV variables tools/perf

Re: [PATCH] powerpc/perf: Implement get_cpu_str()

2014-08-18 Thread Sukadev Bhattiprolu
Tobias Klauser [tklau...@distanz.ch] wrote: | > diff --git a/tools/perf/arch/powerpc/util/header.c b/tools/perf/arch/powerpc/util/header.c | > index 6c1b8a7..1bb400e8 100644 | > --- a/tools/perf/arch/powerpc/util/header.c | > +++ b/tools/perf/arch/powerpc/util/header.c | > @@ -6,6 +6,7 @@ | > |

[PATCH v2 04/14] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-08-15 Thread Sukadev Bhattiprolu
arbitrary event file contents. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- .../testing/sysfs-bus-event_source-devices-events | 573 - 1 file changed, 573 deletions(-) diff --git a/Documentation/ABI/testing

[PATCH v2 09/14] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-08-15 Thread Sukadev Bhattiprolu
by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- include/linux/perf_event.h | 3 +++ kernel/events/core.c | 8 2 files changed, 11 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 707617a..cef4a56 100644 --- a/include/linux/perf_eve

[PATCH v2 07/14] tools/perf: extend format_alias() to include event parameters

2014-08-15 Thread Sukadev Bhattiprolu
] CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/pmu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index ee1c190..63ca8b4

[PATCH v2 04/14] perf Documentation: add event parameters

2014-08-15 Thread Sukadev Bhattiprolu
a hypervisor). This isn't possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- Document

[PATCH v2 01/14] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-08-15 Thread Sukadev Bhattiprolu
orted-by: Ian Munsie Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-24x7.c | 52 - 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c

[PATCH v2 00/14] Add support for parameterized events from sysfs

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer What this patchset does: - the first patch (override sysfs in tools/perf via SYSFS_PATH) was sent out previously, but needed a resend anyhow. Having it is useful for testing the later changes to tools/perf. - the second patch is a bugfix to the powerpc hv-24x7 code w

[PATCH v2 06/14] tools/perf: support parsing parameterized events

2014-08-15 Thread Sukadev Bhattiprolu
: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/parse-events.h | 1 + tools/perf/util/pmu.c | 55 ++ 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse

[PATCH v2 14/14] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- arch/po

<    2   3   4   5   6   7   8   9   >