All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] perf: Split out arch specific code & improve PowerPC perf probe support
@ 2010-04-20  6:58 ` Ian Munsie
  0 siblings, 0 replies; 12+ messages in thread
From: Ian Munsie @ 2010-04-20  6:58 UTC (permalink / raw)
  To: linux-kernel, linuxppc-dev
  Cc: benh, Masami Hiramatsu, Heiko Carstens, Paul Mackerras

Here's the 4th version of the perf probe PowerPC support and perf arch specific
infrastructure patches rebased on top of tip/perf/core.


Changelog V4:
* Rebased on top of tip/perf/core (with powerpc/next merged) and resolved merge
  conflicts.
* Move the check for DWARF support prior to the inclusion of the arch
  specific Makefile so that the arch specific Makefile can include the relevant
  files in the build only if DWARF support is available.
* Fix NO_DWARF build on x86 and PowerPC

Changelog V3:
  From Masami Hiramatsu's feedback DWARF support is disabled altogether if the
  architecture specific Makefile does not define PERF_HAVE_DWARF_REGS - ie,
  DWARF register mappings are missing for the architecture. A message
  indicating this is printed out during compilation.

Changelog V2:
  From Masami Hiramatsu's suggestion, I added a check in the Makefile for if
  the arch specific Makefile defines PERF_HAVE_DWARF_REGS, printing a message
  during build if it has not. This simplifies the code removing the odd macro
  from the previous version and the need for an arch specific
  arch_dwarf-regs.h.  I have not entirely disabled DWARF support for
  architectures that don't implement the register mappings, so that they can
  still add a probe based on a line number (they will be missing the ability to
  capture the value of a variable from a register).

These patches add the required mappings to use perf probe on PowerPC.

Part 1 of the patch series moves the arch dependent x86 32 and 64 bit DWARF
register number mappings out into a separate arch directory and adds the
necessary Makefile foo to use it.

Part 2 of the patch series adds the PowerPC mappings -
Functionality wise it requires the patch titled "powerpc: Add kprobe-based
event tracer" from the powerpc-next tree to provide the
HAVE_REGS_AND_STACK_ACCESS_API required for CONFIG_KPROBE_EVENT. The code will
still compile cleanly without it and will fail gracefully at runtime on the
missing CONFIG_KPROBE_EVENT support as before as well as printing a warning
message during compilation.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-04-20 17:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20  6:58 [PATCH v4] perf: Split out arch specific code & improve PowerPC perf probe support Ian Munsie
2010-04-20  6:58 ` Ian Munsie
2010-04-20  6:58 ` [PATCH v4 1/2] perf: Move arch specific code into separate arch directory Ian Munsie
2010-04-20  6:58   ` Ian Munsie
2010-04-20  6:58   ` [PATCH v4 2/2] perf probe: Add PowerPC DWARF register number mappings Ian Munsie
2010-04-20  6:58     ` Ian Munsie
2010-04-20 16:35     ` Masami Hiramatsu
2010-04-20 16:35       ` Masami Hiramatsu
2010-04-20 16:34   ` [PATCH v4 1/2] perf: Move arch specific code into separate arch directory Masami Hiramatsu
2010-04-20 16:34     ` Masami Hiramatsu
2010-04-20  7:36 ` [PATCH v4] perf: Split out arch specific code & improve PowerPC perf probe support Ian Munsie
2010-04-20  7:36   ` Ian Munsie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.