2009-10-29 00:56:32

by Paul Mackerras

[permalink] [raw]
Subject: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard

Here is a series of patches from Anton Blanchard that implement some
nice tracing and perf_event features on powerpc. One of them is
generic perf_event stuff (adding software events for alignment faults
and instruction emulation faults).

Since this touches the perf_event and tracing subsystems as well as the
powerpc architecture code, I think the best way forward is for both
Ingo and Ben to pull it into their trees. I have based it on the most
recent point in Linus' tree that Ingo had pulled into his perf
branches (as of yesterday or so).

Thanks,
Paul.

The following changes since commit a3ccf63ee643ef243cbf8918da8b3f9238f10029:
Linus Torvalds (1):
Merge branch 'for-linus' of git://git.kernel.org/.../ieee1394/linux1394-2.6

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master

Anton Blanchard (14):
powerpc: perf_event: Log invalid data addresses as all 1s
powerpc: perf_event: Enable SDAR in continous sample mode
perf_event: Add alignment-faults and emulation-faults software events
powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED
powerpc: perf_event: Add alignment-faults and emulation-faults software events
powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit
powerpc: tracing: Add powerpc tracepoints for timer entry and exit
powerpc: tracing: Add hypervisor call tracepoints
powerpc: tracing: Give hypervisor call tracepoints access to arguments
powerpc: Disable HCALL_STATS by default
powerpc: Export powerpc_debugfs_root
powerpc: perf_event: Cleanup copy_page output by hiding setup symbol
powerpc: perf_event: Hide iseries_check_pending_irqs
powerpc: perf_event: Cleanup output by adding symbols

arch/powerpc/Kconfig.debug | 2 +-
arch/powerpc/configs/pseries_defconfig | 2 +-
arch/powerpc/include/asm/emulated_ops.h | 19 ++++-
arch/powerpc/include/asm/hvcall.h | 2 +
arch/powerpc/include/asm/reg.h | 2 +
arch/powerpc/include/asm/trace.h | 133 ++++++++++++++++++++++++++
arch/powerpc/kernel/align.c | 12 +-
arch/powerpc/kernel/entry_64.S | 4 +-
arch/powerpc/kernel/exceptions-64s.S | 3 +
arch/powerpc/kernel/irq.c | 6 +
arch/powerpc/kernel/perf_event.c | 2 +-
arch/powerpc/kernel/power5+-pmu.c | 4 -
arch/powerpc/kernel/power5-pmu.c | 6 +-
arch/powerpc/kernel/power6-pmu.c | 2 +-
arch/powerpc/kernel/power7-pmu.c | 6 +-
arch/powerpc/kernel/ppc970-pmu.c | 4 -
arch/powerpc/kernel/setup-common.c | 1 +
arch/powerpc/kernel/time.c | 6 +
arch/powerpc/kernel/traps.c | 18 ++--
arch/powerpc/lib/copypage_64.S | 4 +-
arch/powerpc/platforms/pseries/hvCall.S | 132 +++++++++++++++----------
arch/powerpc/platforms/pseries/hvCall_inst.c | 38 ++++++++
arch/powerpc/platforms/pseries/lpar.c | 33 +++++++
include/linux/perf_counter.h | 2 +
include/linux/perf_event.h | 2 +
kernel/perf_event.c | 2 +
tools/perf/design.txt | 2 +
tools/perf/util/parse-events.c | 4 +
28 files changed, 357 insertions(+), 96 deletions(-)
create mode 100644 arch/powerpc/include/asm/trace.h


2009-10-29 01:47:47

by Benjamin Herrenschmidt

[permalink] [raw]
Subject: Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard

On Thu, 2009-10-29 at 11:56 +1100, Paul Mackerras wrote:
> Here is a series of patches from Anton Blanchard that implement some
> nice tracing and perf_event features on powerpc. One of them is
> generic perf_event stuff (adding software events for alignment faults
> and instruction emulation faults).
>
> Since this touches the perf_event and tracing subsystems as well as the
> powerpc architecture code, I think the best way forward is for both
> Ingo and Ben to pull it into their trees. I have based it on the most
> recent point in Linus' tree that Ingo had pulled into his perf
> branches (as of yesterday or so).

This is -next material right ?

Cheers,
Ben.

> Thanks,
> Paul.
>
> The following changes since commit a3ccf63ee643ef243cbf8918da8b3f9238f10029:
> Linus Torvalds (1):
> Merge branch 'for-linus' of git://git.kernel.org/.../ieee1394/linux1394-2.6
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master
>
> Anton Blanchard (14):
> powerpc: perf_event: Log invalid data addresses as all 1s
> powerpc: perf_event: Enable SDAR in continous sample mode
> perf_event: Add alignment-faults and emulation-faults software events
> powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED
> powerpc: perf_event: Add alignment-faults and emulation-faults software events
> powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit
> powerpc: tracing: Add powerpc tracepoints for timer entry and exit
> powerpc: tracing: Add hypervisor call tracepoints
> powerpc: tracing: Give hypervisor call tracepoints access to arguments
> powerpc: Disable HCALL_STATS by default
> powerpc: Export powerpc_debugfs_root
> powerpc: perf_event: Cleanup copy_page output by hiding setup symbol
> powerpc: perf_event: Hide iseries_check_pending_irqs
> powerpc: perf_event: Cleanup output by adding symbols
>
> arch/powerpc/Kconfig.debug | 2 +-
> arch/powerpc/configs/pseries_defconfig | 2 +-
> arch/powerpc/include/asm/emulated_ops.h | 19 ++++-
> arch/powerpc/include/asm/hvcall.h | 2 +
> arch/powerpc/include/asm/reg.h | 2 +
> arch/powerpc/include/asm/trace.h | 133 ++++++++++++++++++++++++++
> arch/powerpc/kernel/align.c | 12 +-
> arch/powerpc/kernel/entry_64.S | 4 +-
> arch/powerpc/kernel/exceptions-64s.S | 3 +
> arch/powerpc/kernel/irq.c | 6 +
> arch/powerpc/kernel/perf_event.c | 2 +-
> arch/powerpc/kernel/power5+-pmu.c | 4 -
> arch/powerpc/kernel/power5-pmu.c | 6 +-
> arch/powerpc/kernel/power6-pmu.c | 2 +-
> arch/powerpc/kernel/power7-pmu.c | 6 +-
> arch/powerpc/kernel/ppc970-pmu.c | 4 -
> arch/powerpc/kernel/setup-common.c | 1 +
> arch/powerpc/kernel/time.c | 6 +
> arch/powerpc/kernel/traps.c | 18 ++--
> arch/powerpc/lib/copypage_64.S | 4 +-
> arch/powerpc/platforms/pseries/hvCall.S | 132 +++++++++++++++----------
> arch/powerpc/platforms/pseries/hvCall_inst.c | 38 ++++++++
> arch/powerpc/platforms/pseries/lpar.c | 33 +++++++
> include/linux/perf_counter.h | 2 +
> include/linux/perf_event.h | 2 +
> kernel/perf_event.c | 2 +
> tools/perf/design.txt | 2 +
> tools/perf/util/parse-events.c | 4 +
> 28 files changed, 357 insertions(+), 96 deletions(-)
> create mode 100644 arch/powerpc/include/asm/trace.h

2009-10-29 02:43:53

by Paul Mackerras

[permalink] [raw]
Subject: Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard

Benjamin Herrenschmidt writes:

> On Thu, 2009-10-29 at 11:56 +1100, Paul Mackerras wrote:
> > Here is a series of patches from Anton Blanchard that implement some
> > nice tracing and perf_event features on powerpc. One of them is
> > generic perf_event stuff (adding software events for alignment faults
> > and instruction emulation faults).
> >
> > Since this touches the perf_event and tracing subsystems as well as the
> > powerpc architecture code, I think the best way forward is for both
> > Ingo and Ben to pull it into their trees. I have based it on the most
> > recent point in Linus' tree that Ingo had pulled into his perf
> > branches (as of yesterday or so).
>
> This is -next material right ?

Yes, please pull it into your next branch.

Thanks,
Paul.

2009-10-29 06:57:11

by Ingo Molnar

[permalink] [raw]
Subject: Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard


* Paul Mackerras <[email protected]> wrote:

> Here is a series of patches from Anton Blanchard that implement some
> nice tracing and perf_event features on powerpc. One of them is
> generic perf_event stuff (adding software events for alignment faults
> and instruction emulation faults).
>
> Since this touches the perf_event and tracing subsystems as well as
> the powerpc architecture code, I think the best way forward is for
> both Ingo and Ben to pull it into their trees. I have based it on the
> most recent point in Linus' tree that Ingo had pulled into his perf
> branches (as of yesterday or so).

The generic perf bits look good to me - can pull it if Ben OKs the
PowerPC bits.

Thanks,

Ingo

2009-10-30 06:07:37

by Benjamin Herrenschmidt

[permalink] [raw]
Subject: Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard

On Thu, 2009-10-29 at 07:55 +0100, Ingo Molnar wrote:
> * Paul Mackerras <[email protected]> wrote:
>
> > Here is a series of patches from Anton Blanchard that implement some
> > nice tracing and perf_event features on powerpc. One of them is
> > generic perf_event stuff (adding software events for alignment faults
> > and instruction emulation faults).
> >
> > Since this touches the perf_event and tracing subsystems as well as
> > the powerpc architecture code, I think the best way forward is for
> > both Ingo and Ben to pull it into their trees. I have based it on the
> > most recent point in Linus' tree that Ingo had pulled into his perf
> > branches (as of yesterday or so).
>
> The generic perf bits look good to me - can pull it if Ben OKs the
> PowerPC bits.

Yup. Just went through all of them, they look fine. I also test built on
a number of default configs and it seems to pass.

Cheers,
Ben.

2009-11-08 09:35:29

by Ingo Molnar

[permalink] [raw]
Subject: Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard


* Benjamin Herrenschmidt <[email protected]> wrote:

> On Thu, 2009-10-29 at 07:55 +0100, Ingo Molnar wrote:
> > * Paul Mackerras <[email protected]> wrote:
> >
> > > Here is a series of patches from Anton Blanchard that implement some
> > > nice tracing and perf_event features on powerpc. One of them is
> > > generic perf_event stuff (adding software events for alignment faults
> > > and instruction emulation faults).
> > >
> > > Since this touches the perf_event and tracing subsystems as well as
> > > the powerpc architecture code, I think the best way forward is for
> > > both Ingo and Ben to pull it into their trees. I have based it on the
> > > most recent point in Linus' tree that Ingo had pulled into his perf
> > > branches (as of yesterday or so).
> >
> > The generic perf bits look good to me - can pull it if Ben OKs the
> > PowerPC bits.
>
> Yup. Just went through all of them, they look fine. I also test built on
> a number of default configs and it seems to pass.

Pulled into tip:perf/powerpc (will keep it in a separate branch for a
few days then it can go into perf/core), thanks guys!

Ingo