Re: [PATCH] perf: Fix UAPI fallout

From: David Miller
Date: Sun Oct 14 2012 - 11:38:08 EST


From: Ingo Molnar <mingo@xxxxxxxxxx>
Date: Sun, 14 Oct 2012 10:56:17 +0200

> Find below a stab at that, lightly tested.

Thanks for doing this.

> diff --git a/tools/perf/perf.h b/tools/perf/perf.h
> index a89cbbb..2762877 100644
> --- a/tools/perf/perf.h
> +++ b/tools/perf/perf.h
> @@ -112,7 +112,7 @@ void get_term_dimensions(struct winsize *ws);
> #include <sys/types.h>
> #include <sys/syscall.h>
>
> -#include "../../include/linux/perf_event.h"
> +#include "../../include/uapi/linux/perf_event.h"
> #include "util/types.h"
> #include <stdbool.h>
>

Each arch stanza in this header will also need the asm/unistd.h header
path adjusted to the UAPI one.

In fact, that's the only thing that broke the build for me.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/