linux/tools/perf/arch
David Howells d2709c7ce4 perf: Make perf build for x86 with UAPI disintegration applied
Make perf build for x86 once the UAPI disintegration patches for that arch
have been applied by adding the appropriate -I flags - in the right order -
and then converting some #includes that use ../.. notation to find main kernel
headerfiles to use <asm/foo.h> and <linux/foo.h> instead.

Note that -Iarch/foo/include/uapi is present _before_ -Iarch/foo/include.
This makes sure we get the userspace version of the pt_regs struct.  Ideally,
we wouldn't have the latter -I flag at all, but unfortunately we want
asm/svm.h and asm/vmx.h in builtin-kvm.c and these aren't part of the UAPI -
at least not for x86.  I wonder if the bits outside of the __KERNEL__ guards
*should* be transferred there.

I note also that perf seems to do its dependency handling manually by listing
all the header files it might want to use in LIB_H in the Makefile.  Can this
be changed to use -MD?

Note that to do make this work, we need to export and UAPI disintegrate
linux/hw_breakpoint.h, which I think should've been exported previously so that
perf can access the bits.  We have to do this in the same patch to maintain
bisectability.

Signed-off-by: David Howells <dhowells@redhat.com>
2012-11-19 22:21:03 +00:00
..
arm ARM: fix perf build with uclibc toolchains 2011-08-12 15:40:20 +01:00
powerpc perf tools: Use scnprintf where applicable 2012-03-14 12:36:19 -03:00
s390 [S390] perf: add DWARF register lookup for s390 2011-01-05 12:47:31 +01:00
sh perf tools: Add DWARF register lookup for SH 2010-07-12 11:25:10 -03:00
sparc perf: Add DWARF register lookup for sparc 2010-07-14 22:59:00 -07:00
x86 perf: Make perf build for x86 with UAPI disintegration applied 2012-11-19 22:21:03 +00:00