[PATCH 04/18] perf tools: Annotate PMU related list_head members with type info

2014-08-15 Thread Arnaldo Carvalho de Melo
From: Cody P Schafer So that we can more readily understand in which list heads structs are stored into. Signed-off-by: Cody P Schafer Cc: Andi Kleen Cc: Anshuman Khandual Cc: Cody P Schafer Cc: Haren Myneni Cc: Jiri Olsa Cc: Michael Ellerman Cc: Peter Zijlstra Cc: Stephane Eranian Cc:

[GIT PULL 00/18] perf/core improvements and fixes

2014-08-15 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit f373da34282560c60f0c197690eecb1b2dc49fc0: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2014-08-14 10:38:40 +0200) are available in the git r

[GIT PULL 00/18] perf/core improvements and fixes

2014-08-15 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit f373da34282560c60f0c197690eecb1b2dc49fc0: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2014-08-14 10:38:40 +0200) are available in the git r

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

2014-08-15 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 15, 2014 at 12:26:14AM -0700, Sukadev Bhattiprolu escreveu: > From: Cody P Schafer This one can be cherry picked, done. - Arnaldo ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 2/2] fsl_ifc: Support all 8 IFC chip selects

2014-08-15 Thread Aaron Sierra
Freescale's QorIQ T Series processors support 8 IFC chip selects within a memory map backward compatible with previous P Series processors which supported only 4 chip selects. Signed-off-by: Aaron Sierra --- include/linux/fsl_ifc.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/2] fsl_ifc: Fix csor_ext position in fsl_ifc_regs

2014-08-15 Thread Aaron Sierra
According to Freescale manuals, the IFC_CSORn_EXT register is located immediately _after_ the bank's IFC_CSORn register. This patch adjusts the csor_ext member of and reserved register arrays immediately surrounding the csor_cs structure to provide proper access to this register. Signed-off-by: A

Re: [PATCH v3] arch: Kconfig: Let all architectures set endian explicitly

2014-08-15 Thread Chen Gang
On 8/15/14 6:14, Chen Gang wrote: > On 08/15/2014 02:04 AM, Ralf Baechle wrote: >> > > OK, thanks, I assumes when support both endian, the default choice is > CPU_BIG_ENDIAN, although no default value for choice (originally, I did > worry about it). > >> So I think you can just drop the MIPS se

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

2014-08-15 Thread Peter Zijlstra
On Fri, Aug 15, 2014 at 12:26:09AM -0700, Sukadev Bhattiprolu wrote: > include/linux/perf_event.h | 10 + > kernel/events/core.c | 8 + Those are patches 9 and 12 iirc, no objection to that. I've not had time to actually think about the res

[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/pe

[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/per

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer This adds (in req-gen/) a framework for defining gpci counter requests. It uses macro magic similar to ftrace. Also convert the existing hv-gpci request structures and enum values to use the new framework (and adjust old users of the structs and enum values to cope with chan

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

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

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

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer Retrieves and parses the 24x7 catalog on POWER systems that supply it (right now, only POWER 8). Events are exposed via sysfs in the standard fashion, and are all parameterized. Catalog is (at the moment) only parsed on boot. It needs re-parsing when a some hypervisor events

[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 a/tool

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer This causes `perf list pmu` to show parameters for parameterized events like follows: pmu/event_name,param1=?,param2=?/ [Kernel PMU event] An example: hv_gpci/dispatch_timebase_by_processor_processor_time_in_timebase_cycles,phys_processor_idx=?/ [Kernel PMU event] C

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer Enable event specification like: pmu/event_name,param1=0x1,param2=0x4/ Assuming that /sys/bus/event_source/devices/pmu/events/event_name Contains something like bar=param2,foo=1,baz=param1 CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody

[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/ut

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer 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 the single 'cpu' parameter is insufficient. For example, P

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

2014-08-15 Thread Sukadev Bhattiprolu
From: Cody P Schafer Listing specific events doesn't actually help us at all here because: - these events actually vary between different ppc processors, they aren't garunteed to be present. - the documentation of the (generic) file contents is now superceded by the docs for arbitrary eve

[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 01/14] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-08-15 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: Haren Myneni CC: Cody P Schafer Reported-

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