Em Fri, Jan 20, 2012 at 12:36:44PM -0800, Andi Kleen escreveu:From: Andi Kleen<ak@xxxxxxxxxxxxxxx>It builds, but breaks this:
The perf user space has a lot of includes with ugly .. chains. This also
makes it impossible to include any perf files from other code.
I think the original reason for this were some wrapper include files
for the kernel includes, and the explicit paths were needed to avoid
endless recursion. A better way to handle this is #include_next
- Add all the relevant directories as -I in the Makefile
- Remove (near) all the .. in include statements
- Remove unnecessary wrappers that do nothing
- Fix up some fallout
This makes the code more pleasant to read.
I did it all in one big patch to keep bisectability.