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 c...@linux.vnet.ibm.com | | Enable event specification like: | | pmu/event_name,param1=0x1,param2=0x4/ | | Assuming that | | /sys/bus/event_source

[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 --- tools/perf/util/pmu.c | 26

[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-gpci

[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
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/testing/sysfs-bus-event_source-devices-events | 6

[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 Bhattiprolu Signed-off-by: Cody P

[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

[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
with 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
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-event_source

[PATCH v2 2/4] Simplify catalog_read()

2014-09-24 Thread Sukadev Bhattiprolu
the 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 Myneni CC

[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

[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

[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 c...@linux.vnet.ibm.com 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

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

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Add documentation for the event, event.scale, and event.unit files in sysfs. event.scale and event.unit were undocumented. event was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC

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

2014-09-24 Thread Sukadev Bhattiprolu
by the docs for arbitrary event file contents. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-events | 573

[PATCH v2 2/4] Simplify catalog_read()

2014-09-24 Thread Sukadev Bhattiprolu
the 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 suka...@linux.vnet.ibm.com --- arch/powerpc/perf/hv-24x7.c | 92

[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 v4 10/10] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22

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

2014-09-24 Thread Sukadev Bhattiprolu
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com Conflicts: tools/perf/util/pmu.c --- tools/perf/util/parse-events.h | 1 + tools/perf/util/pmu.c | 65 +++--- 2 files changed, 55

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

2014-09-24 Thread Sukadev Bhattiprolu
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] [Sukadev Bhattiprolu] Use PHYS and VCPU in place of PHYSICAL and VIRTUAL_PROCESSOR

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

2014-09-24 Thread Sukadev Bhattiprolu
values to cope with 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb

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

2014-09-24 Thread Sukadev Bhattiprolu
). 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c

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

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- include

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

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c

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

2014-09-24 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P

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

2014-09-24 Thread Sukadev Bhattiprolu
...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- 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 67e59b9..a05dd9d 100644 --- a/tools/perf/util/pmu.c +++ 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 c...@linux.vnet.ibm.com (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 suka

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

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 the callchain

[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 --- tools/perf/util/pmu.c | 26

[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

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

2014-09-17 Thread Sukadev Bhattiprolu
with 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
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-bus-event_source-devices-events |6

[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-gpci

[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. CC: Haren Myneni CC: Cody P

[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 Myneni CC

[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
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-event_source

[PATCH 2/4] Simplify catalog_read()

2014-09-17 Thread Sukadev Bhattiprolu
the 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

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Add documentation for the event, event.scale, and event.unit files in sysfs. event.scale and event.unit were undocumented. event was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC

[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 2/4] Simplify catalog_read()

2014-09-17 Thread Sukadev Bhattiprolu
the 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 suka...@linux.vnet.ibm.com --- arch/powerpc/perf/hv-24x7.c | 92

[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 c...@linux.vnet.ibm.com 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

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

2014-09-17 Thread Sukadev Bhattiprolu
by the docs for arbitrary event file contents. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-events | 573

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

2014-09-17 Thread Sukadev Bhattiprolu
] If the sysfs event 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. CC

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P

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

2014-09-17 Thread Sukadev Bhattiprolu
). 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c

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

2014-09-17 Thread Sukadev Bhattiprolu
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] [Sukadev Bhattiprolu] Use PHYS and VCPU in place of PHYSICAL and VIRTUAL_PROCESSOR

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

2014-09-17 Thread Sukadev Bhattiprolu
values to cope with 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 suka...@linux.vnet.ibm.com CC: Haren Myneni hb

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com (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 suka

[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 05/10] perf: add PMU_EVENT_ATTR_STRING() helper

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- include

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

2014-09-17 Thread Sukadev Bhattiprolu
...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- 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 8c7c4a1..0756917 100644 --- a/tools/perf/util/pmu.c

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

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 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 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

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:

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 an...@samba.org | --- | | Index:

[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

[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 suka...@linux.vnet.ibm.com AuthorDate: Thu, 7 Aug 2014 00:27:00 -0700 Committer: Arnaldo Carvalho de Melo a...@redhat.com CommitDate

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

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

2014-08-22 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: snip | 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
(), On 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 @@ | > |

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 v3] powerpc/perf: Implement get_cpu_str()

2014-08-18 Thread Sukadev Bhattiprolu
(), On Powerpc, we can skip the --events-file option and run: perf stat -e PM_CYC sleep 1 Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- Changelog[v3]: [Tobias Klauser]: Fix some changelog damage to patch. Changelog[v2]: [Michael Ellerman]: Use PVR instead

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

2014-08-15 Thread Sukadev Bhattiprolu
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/sysfs-bus

[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
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 --- Documentation/ABI/testing/sysfs-bus-event_source-devi

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

2014-08-15 Thread Sukadev Bhattiprolu
-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 index

[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

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

2014-08-15 Thread Sukadev Bhattiprolu
-by: 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/powerpc

[PATCH v2 13/14] powerpc/perf/{hv-gpci,hv-common}: generate requests with counters annotated

2014-08-15 Thread Sukadev Bhattiprolu
with 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: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev

[PATCH v2 08/14] tools/perf: document parameterized events and note symbolically formed events

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf/Documentation/perf-list.txt | 13 + tools/perf/Documentation/perf-record.txt | 5 + 2 files changed, 18 insertions(+) diff --git

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

2014-08-15 Thread Sukadev Bhattiprolu
kmem_cache_free() to free page allocated with kmem_cache_alloc(). CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-24x7-catalog.h | 25 ++ arch/powerpc/perf/hv-24x7-domains.h | 19 + arch/powerpc/perf/hv-24x7.c | 764

[PATCH v2 12/14] perf: add PMU_EVENT_ATTR_STRING() helper

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

[PATCH v2 11/14] powerpc/perf/hv-24x7: Documentaion for new sysfs entries which expose descriptions

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

[PATCH v2 05/14] tools/perf: annotate list_head with type info

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf/util/pmu.c | 4 ++-- tools/perf/util/pmu.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf

[PATCH v2 03/14] perf Documentation: sysfs events/ interfaces

2014-08-15 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 CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu

[PATCH v2 03/14] perf Documentation: sysfs events/ interfaces

2014-08-15 Thread Sukadev Bhattiprolu
...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-events | 60 ++ 1 file changed, 60 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source

[PATCH v2 08/14] tools/perf: document parameterized events and note symbolically formed events

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer d...@codyps.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- tools/perf/Documentation/perf-list.txt | 13 + tools

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

2014-08-15 Thread Sukadev Bhattiprolu
. - Use kmem_cache_free() to free page allocated with kmem_cache_alloc(). CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- arch/powerpc/perf/hv-24x7-catalog.h

[PATCH v2 12/14] perf: add PMU_EVENT_ATTR_STRING() helper

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer d...@codyps.com Helper for constructing static struct perf_pmu_events_attr s. CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com --- include

<    9   10   11   12   13   14   15   16   17   18   >